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

OPimState Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/opimstate.h>

Collaboration diagram for OPimState:

Collaboration graph
[legend]
List of all members.

Public Types

enum  State {
  Started = 0, Postponed, Finished, NotStarted,
  Undefined
}

Public Member Functions

 OPimState (int state=Undefined)
 OPimState (const OPimState &)
 ~OPimState ()
bool operator== (const OPimState &)
OPimStateoperator= (const OPimState &)
void setState (int state)
int state () const

Private Member Functions

void deref ()
void copyInternally ()

Private Attributes

Datadata
Private * d

Classes

struct  Data

Detailed Description

The State of a Task This class encapsules the state of a todo and it's shared too

Definition at line 17 of file opimstate.h.


Member Enumeration Documentation

enum OPimState::State
 

Enumeration values:
Started 
Postponed 
Finished 
NotStarted 
Undefined 

Definition at line 19 of file opimstate.h.


Constructor & Destructor Documentation

OPimState::OPimState int  state = Undefined  ) 
 

Definition at line 16 of file opimstate.cpp.

References data, and OPimState::Data::state.

OPimState::OPimState const OPimState  ) 
 

Definition at line 20 of file opimstate.cpp.

References data, and QShared::ref().

OPimState::~OPimState  ) 
 

Definition at line 25 of file opimstate.cpp.

References data, and QShared::deref().


Member Function Documentation

void OPimState::copyInternally  )  [inline, private]
 

Definition at line 56 of file opimstate.cpp.

References QShared::count, data, QShared::deref(), and OPimState::Data::state.

Referenced by setState(), and Opie::OPimState::setState().

void OPimState::deref  )  [private]
 

Definition at line 50 of file opimstate.cpp.

References data, QShared::deref(), and l.

Referenced by operator=(), and Opie::OPimState::operator=().

OPimState & OPimState::operator= const OPimState  ) 
 

Definition at line 36 of file opimstate.cpp.

References data, deref(), and QShared::ref().

bool OPimState::operator== const OPimState  ) 
 

Definition at line 31 of file opimstate.cpp.

References data, and OPimState::Data::state.

void OPimState::setState int  state  ) 
 

Definition at line 43 of file opimstate.cpp.

References copyInternally(), data, and OPimState::Data::state.

Referenced by OTodoAccessBackendSQL::todo().

int OPimState::state  )  const
 

Definition at line 47 of file opimstate.cpp.

References data, and OPimState::Data::state.

Referenced by OTodo::hasState().


Member Data Documentation

Private* OPimState::d [private]
 

Definition at line 41 of file opimstate.h.

Data* OPimState::data [private]
 

Definition at line 38 of file opimstate.h.

Referenced by copyInternally(), Opie::OPimState::copyInternally(), deref(), Opie::OPimState::deref(), operator=(), Opie::OPimState::operator=(), operator==(), Opie::OPimState::operator==(), OPimState(), Opie::OPimState::OPimState(), setState(), Opie::OPimState::setState(), state(), Opie::OPimState::state(), ~OPimState(), and Opie::OPimState::~OPimState().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:43:19 2005 for OPIE by  doxygen 1.4.2