Diffstat (limited to 'libopie2/opiepim/core/opimstate.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimstate.h | 7 |
1 files changed, 5 insertions, 2 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 | |||
@@ -21,50 +21,53 @@ | |||
21 | : = ...= . :.=- | 21 | : = ...= . :.=- |
22 | -. .:....=;==+<; You should have received a copy of the GNU | 22 | -. .:....=;==+<; You should have received a copy of the GNU |
23 | -_. . . )=. = Library General Public License along with | 23 | -_. . . )=. = Library General Public License along with |
24 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
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 | ||
34 | namespace Opie { | 35 | namespace Opie { |
35 | /** | 36 | /** |
36 | * The State of a Task | 37 | * The State of a Task |
37 | * This class encapsules the state of a todo | 38 | * This class encapsules the state of a todo |
38 | * and it's shared too | 39 | * and it's shared too |
39 | */ | 40 | */ |
40 | /* | 41 | /* |
41 | * in c a simple struct would be enough ;) | 42 | * in c a simple struct would be enough ;) |
42 | * g_new_state(); | 43 | * g_new_state(); |
43 | * g_do_some_thing( state_t* ); | 44 | * g_do_some_thing( state_t* ); |
44 | * ;) | 45 | * ;) |
45 | */ | 46 | */ |
46 | class OPimState { | 47 | class OPimState { |
48 | |||
47 | public: | 49 | public: |
48 | enum State { | 50 | enum State { |
49 | Started = 0, | 51 | Started = 0, |
50 | Postponed, | 52 | Postponed, |
51 | Finished, | 53 | Finished, |
52 | NotStarted, | 54 | NotStarted, |
53 | Undefined | 55 | Undefined |
54 | }; | 56 | }; |
55 | OPimState( int state = Undefined ); | 57 | OPimState( int state = Undefined ); |
56 | OPimState( const OPimState& ); | 58 | OPimState( const OPimState& ); |
57 | ~OPimState(); | 59 | ~OPimState(); |
58 | 60 | ||
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; |
65 | |||
63 | private: | 66 | private: |
64 | void deref(); | 67 | void deref(); |
65 | inline void copyInternally(); | 68 | inline void copyInternally(); |
66 | 69 | ||
67 | struct Data; | 70 | struct Data; |
68 | Data* data; | 71 | Data* data; |
69 | 72 | ||
70 | class Private; | 73 | class Private; |