summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/core/opimstate.h
authormickeyl <mickeyl>2004-02-21 12:25:50 (UTC)
committer mickeyl <mickeyl>2004-02-21 12:25:50 (UTC)
commit6155f1be5c19fc51a4929c9e173f9e5a24d193e6 (patch) (unidiff)
treec18ca863f82a559c60728f922519ac696387ec53 /libopie2/opiepim/core/opimstate.h
parenta570c2824fcecaf1c278e1b5a592fa14cc0647f8 (diff)
downloadopie-6155f1be5c19fc51a4929c9e173f9e5a24d193e6.zip
opie-6155f1be5c19fc51a4929c9e173f9e5a24d193e6.tar.gz
opie-6155f1be5c19fc51a4929c9e173f9e5a24d193e6.tar.bz2
the usual cosmetics
Diffstat (limited to 'libopie2/opiepim/core/opimstate.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/core/opimstate.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/libopie2/opiepim/core/opimstate.h b/libopie2/opiepim/core/opimstate.h
index 78e8cd0..8336b3e 100644
--- a/libopie2/opiepim/core/opimstate.h
+++ b/libopie2/opiepim/core/opimstate.h
@@ -25,11 +25,12 @@
25 If not, write to the Free Software Foundation, 25 If not, write to the Free Software Foundation,
26 Inc., 59 Temple Place - Suite 330, 26 Inc., 59 Temple Place - Suite 330,
27 Boston, MA 02111-1307, USA. 27 Boston, MA 02111-1307, USA.
28*/ 28*/
29#ifndef OPIE_PIM_STATE_H 29#ifndef OPIMSTATE_H
30#define OPIE_PIM_STATE_H 30#define OPIMSTATE_H
31 31
32/* QT */
32#include <qstring.h> 33#include <qstring.h>
33 34
34namespace Opie { 35namespace Opie {
35/** 36/**
@@ -43,9 +44,10 @@ namespace Opie {
43 * g_do_some_thing( state_t* ); 44 * g_do_some_thing( state_t* );
44 * ;) 45 * ;)
45 */ 46 */
46class OPimState { 47class OPimState {
47public: 48
49 public:
48 enum State { 50 enum State {
49 Started = 0, 51 Started = 0,
50 Postponed, 52 Postponed,
51 Finished, 53 Finished,
@@ -59,9 +61,10 @@ public:
59 bool operator==( const OPimState& ); 61 bool operator==( const OPimState& );
60 OPimState &operator=( const OPimState& ); 62 OPimState &operator=( const OPimState& );
61 void setState( int state); 63 void setState( int state);
62 int state()const; 64 int state()const;
63private: 65
66 private:
64 void deref(); 67 void deref();
65 inline void copyInternally(); 68 inline void copyInternally();
66 69
67 struct Data; 70 struct Data;