From 47fc358e914aecd13c4cb3d9cb4b3f2ca1a93b6c Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 22 Feb 2003 22:59:37 +0000 Subject: import the new layout/design of datebook sorry this was not put into a branch and once its done it'll replace datebook and be put into that subdir. but currently I want both versions available so I can test... So by design it'll feature Showing BirthDays Showing Due and OVerDue Todos Better AllDay handling Pinning Events to TimeZones Exceptions to Recurrence --- (limited to 'core/pim/datebook2/managertemplate.h') diff --git a/core/pim/datebook2/managertemplate.h b/core/pim/datebook2/managertemplate.h new file mode 100644 index 0000000..668fda7 --- a/dev/null +++ b/core/pim/datebook2/managertemplate.h @@ -0,0 +1,36 @@ +#ifndef OPIE_DATE_BOOK_MANAGER_TEMPLATE_H +#define OPIE_DATE_BOOK_MANAGER_TEMPLATE_H + +#include +#include + +namespace Datebook { + /** + * ManagerTemplate is a template which manages + * all kind of managers :) + */ + template + class ManagerTemplate { + public: + ManagerTemplate(); + ~ManagerTemplate(); + + virtual void add( const QString&, const T& t ); + void remove( const QString& ); + bool load(); + bool save(); + + QStringList names(); + T value(const QString&)const; + + protected: + QMap m_map; + + private: + virtual bool doSave() = 0; + virtual bool doLoad() = 0; + + }; +} + +#endif -- cgit v0.9.0.2