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

Todo::TodoManager Class Reference

#include </home/clem/local/src/opie/core/pim/todo/todomanager.h>

Collaboration diagram for Todo::TodoManager:

Collaboration graph
[legend]
List of all members.

Public Slots

void add (const OPimTodo &)
void update (int uid, const SmallTodo &)
void update (int uid, const OPimTodo &)
bool remove (int uid)
void remove (const QArray< int > &)
void removeCompleted ()
void removeAll ()
void reload ()
void save ()

Signals

void update ()
void updateCategories ()

Public Member Functions

bool isLoaded () const
void load ()
 TodoManager (QObject *obj=0)
 ~TodoManager ()
QStringList categories ()
int catId (const QString &)
OPimTodo event (int uid)
void updateList ()
OPimTodoAccess::List list () const
OPimTodoAccess::List sorted (bool asc, int so, int f, int cat)
OPimTodoAccess::List::Iterator overDue ()
OPimTodoAccess::List::Iterator fromTo (const QDate &start, const QDate &end)
OPimTodoAccess::List::Iterator query (const OPimTodo &ev, int query)
void setCategory (bool sort, int category=-1)
void setShowOverDue (bool show)
void setSortOrder (int sortOrder)
void setSortASC (bool)
void sort ()
OPimTodoAccess * todoDB ()
bool saveAll ()

Private Attributes

OPimTodoAccessm_db
OPimTodoAccess::List m_list
OPimTodoAccess::List::Iterator m_it
OPimTodoAccess::List m_sorted
Categories m_cat
int m_ca
bool m_shCat
int m_sortOrder
bool m_asc

Constructor & Destructor Documentation

TodoManager::TodoManager QObject *  obj = 0  ) 
 

Definition at line 39 of file todomanager.cpp.

References categoryFileName(), l, Categories::load(), m_cat, and m_db.

TodoManager::~TodoManager  ) 
 

Definition at line 44 of file todomanager.cpp.

References m_db.


Member Function Documentation

void TodoManager::add const OPimTodo &   )  [slot]
 

Definition at line 79 of file todomanager.cpp.

References m_db.

QStringList TodoManager::categories  ) 
 

Definition at line 106 of file todomanager.cpp.

References categoryFileName(), Categories::labels(), Categories::load(), and m_cat.

int TodoManager::catId const QString  ) 
 

Definition at line 113 of file todomanager.cpp.

References Categories::id(), and m_cat.

OPimTodo TodoManager::event int  uid  ) 
 

Definition at line 47 of file todomanager.cpp.

References m_db.

OPimTodoAccess::List::Iterator TodoManager::fromTo const QDate start,
const QDate end
 

Definition at line 65 of file todomanager.cpp.

References m_db, m_it, and m_list.

bool TodoManager::isLoaded  )  const
 

Definition at line 120 of file todomanager.cpp.

References m_db.

OPimTodoAccess::List TodoManager::list  )  const
 

returns the iterator sorted if set sorted

Definition at line 53 of file todomanager.cpp.

References m_list.

void TodoManager::load  ) 
 

Definition at line 123 of file todomanager.cpp.

References m_db.

OPimTodoAccess::List::Iterator TodoManager::overDue  ) 
 

Definition at line 59 of file todomanager.cpp.

References Opie::OPimBase::FilterCategory, m_asc, m_ca, m_db, m_it, m_list, m_sortOrder, and Opie::OPimTodoAccess::OnlyOverDue.

OPimTodoAccess::List::Iterator TodoManager::query const OPimTodo &  ev,
int  query
 

Definition at line 71 of file todomanager.cpp.

References m_db, m_it, and m_list.

void TodoManager::reload  )  [slot]
 

Definition at line 103 of file todomanager.cpp.

References m_db.

void TodoManager::remove const QArray< int > &   )  [slot]
 

Definition at line 116 of file todomanager.cpp.

References i, and remove().

bool TodoManager::remove int  uid  )  [slot]
 

Definition at line 88 of file todomanager.cpp.

References m_db.

Referenced by Todo::TodoView::remove(), and remove().

void TodoManager::removeAll  )  [slot]
 

Definition at line 91 of file todomanager.cpp.

References m_db.

void TodoManager::removeCompleted  )  [slot]
 

remove all completed

Definition at line 94 of file todomanager.cpp.

References m_db.

void TodoManager::save  )  [slot]
 

Definition at line 97 of file todomanager.cpp.

References m_db.

bool TodoManager::saveAll  ) 
 

Definition at line 100 of file todomanager.cpp.

References m_db.

void Todo::TodoManager::setCategory bool  sort,
int  category = -1
 

void Todo::TodoManager::setShowOverDue bool  show  ) 
 

void Todo::TodoManager::setSortASC bool   ) 
 

void Todo::TodoManager::setSortOrder int  sortOrder  ) 
 

void Todo::TodoManager::sort  ) 
 

OPimTodoAccess::List TodoManager::sorted bool  asc,
int  so,
int  f,
int  cat
 

Definition at line 56 of file todomanager.cpp.

References m_db.

OPimTodoAccess * TodoManager::todoDB  ) 
 

Definition at line 76 of file todomanager.cpp.

References m_db.

void TodoManager::update int  uid,
const OPimTodo & 
[slot]
 

Definition at line 85 of file todomanager.cpp.

References m_db.

void TodoManager::update int  uid,
const SmallTodo
[slot]
 

Definition at line 82 of file todomanager.cpp.

void Todo::TodoManager::update  )  [signal]
 

void Todo::TodoManager::updateCategories  )  [signal]
 

void TodoManager::updateList  ) 
 

Definition at line 50 of file todomanager.cpp.

References m_db, and m_list.


Member Data Documentation

bool Todo::TodoManager::m_asc [private]
 

Definition at line 110 of file todomanager.h.

Referenced by overDue().

int Todo::TodoManager::m_ca [private]
 

Definition at line 106 of file todomanager.h.

Referenced by overDue().

Categories Todo::TodoManager::m_cat [private]
 

Definition at line 105 of file todomanager.h.

Referenced by categories(), catId(), and TodoManager().

OPimTodoAccess* Todo::TodoManager::m_db [private]
 

Definition at line 101 of file todomanager.h.

Referenced by add(), event(), fromTo(), isLoaded(), load(), overDue(), query(), reload(), remove(), removeAll(), removeCompleted(), save(), saveAll(), sorted(), todoDB(), TodoManager(), update(), updateList(), and ~TodoManager().

OPimTodoAccess::List::Iterator Todo::TodoManager::m_it [private]
 

Definition at line 103 of file todomanager.h.

Referenced by fromTo(), overDue(), and query().

OPimTodoAccess::List Todo::TodoManager::m_list [private]
 

Definition at line 102 of file todomanager.h.

Referenced by fromTo(), list(), overDue(), query(), and updateList().

bool Todo::TodoManager::m_shCat [private]
 

Definition at line 108 of file todomanager.h.

OPimTodoAccess::List Todo::TodoManager::m_sorted [private]
 

Definition at line 104 of file todomanager.h.

int Todo::TodoManager::m_sortOrder [private]
 

Definition at line 109 of file todomanager.h.

Referenced by overDue().


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