Project stdui: "Simple Type Dialog User-Interface"

|
Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ctimer.hxx

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Serge Lussier   *
00003  *   serge.lussier@videotron.ca   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef controlctimer_hxx
00021 #define controlctimer_hxx
00022 
00023 #include <ccontrol.hxx>
00024 #include <stdobject.h>
00025 
00026 namespace control {
00027 
00031 class ctimer : public ccontrol
00032 {
00033 public:
00034     ctimer(const std::string& nameid, const sigc::slot< bool >& exec_hook);
00035 
00036     ctimer();
00037 
00038     virtual ~ctimer();
00039     bool pause();
00040     virtual bool start( unsigned long delay, bool once=false);
00041 
00042     bool resume();
00043     void stop();
00044     virtual bool controller_loop();
00045 
00046 protected:
00047     unsigned long _duration;
00048     bool _single_shot;
00049 };
00050 
00051 }
00052 
00053 #endif

API Documentation Generated by:  doxygen 1.4.0
About the author | Site started with trial version of DreamWeaver MX 2004 | Finalizing with  | Contact | ©2005, Serge Lussier ( Bretzel )