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

Opie::OPimState Class Reference

#include </home/clem/local/src/opie/libopie2/opiepim/core/opimstate.h>

Collaboration diagram for Opie::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 41 of file opimstate.h.


Member Enumeration Documentation

enum Opie::OPimState::State
 

Enumeration values:
Started 
Postponed 
Finished 
NotStarted 
Undefined 

Definition at line 44 of file opimstate.h.


Constructor & Destructor Documentation

Opie::OPimState::OPimState int  state = Undefined  ) 
 

Definition at line 46 of file opimstate.cpp.

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

Opie::OPimState::OPimState const OPimState  ) 
 

Definition at line 50 of file opimstate.cpp.

References data, and QShared::ref().

Opie::OPimState::~OPimState  ) 
 

Definition at line 55 of file opimstate.cpp.

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


Member Function Documentation

void Opie::OPimState::copyInternally  )  [inline, private]
 

Definition at line 86 of file opimstate.cpp.

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

void Opie::OPimState::deref  )  [private]
 

Definition at line 80 of file opimstate.cpp.

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

OPimState & Opie::OPimState::operator= const OPimState  ) 
 

Definition at line 66 of file opimstate.cpp.

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

bool Opie::OPimState::operator== const OPimState  ) 
 

Definition at line 61 of file opimstate.cpp.

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

void Opie::OPimState::setState int  state  ) 
 

Definition at line 73 of file opimstate.cpp.

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

int Opie::OPimState::state  )  const
 

Definition at line 77 of file opimstate.cpp.

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

Referenced by Opie::OPimTodo::hasState().


Member Data Documentation

Private* Opie::OPimState::d [private]
 

Definition at line 67 of file opimstate.h.

Data* Opie::OPimState::data [private]
 

Definition at line 64 of file opimstate.h.

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


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