author | zecke <zecke> | 2002-11-30 11:28:47 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-11-30 11:28:47 (UTC) |
commit | 9b8b30fa6cbdf1424b29cde21fae112e8bf96e6d (patch) (unidiff) | |
tree | 896dd858dc2ec2f0b7e1b265cae66ccceecc82da /libopie/pim/opimresolver.h | |
parent | 599c58c6ab2ab936890cbbfa4e6299493c141f8a (diff) | |
download | opie-9b8b30fa6cbdf1424b29cde21fae112e8bf96e6d.zip opie-9b8b30fa6cbdf1424b29cde21fae112e8bf96e6d.tar.gz opie-9b8b30fa6cbdf1424b29cde21fae112e8bf96e6d.tar.bz2 |
More infrastructure
ORecur has now the nextOccurence function
exceptions
We've now Notifers like Alarms and DatebookEntries
we may add to execute applications...
AppName replaced with service cause it is a service
Add rtti to OPimRecord as a static function
This is used inside the BackEnd classes to static_cast...
added removeAllCompleted to the todobackends...
add a common Opie PIM mainwindow which takes care of some simple
scripting enchangements..
much more
-rw-r--r-- | libopie/pim/opimresolver.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/libopie/pim/opimresolver.h b/libopie/pim/opimresolver.h new file mode 100644 index 0000000..86ae3eb --- a/dev/null +++ b/libopie/pim/opimresolver.h | |||
@@ -0,0 +1,56 @@ | |||
1 | #ifndef OPIE_PIM_RESOLVER | ||
2 | #define OPIE_PIM_RESOLVER | ||
3 | |||
4 | #include <qstring.h> | ||
5 | #include <qvaluelist.h> | ||
6 | |||
7 | /** | ||
8 | * OPimResolver is a MetaClass to access | ||
9 | * available backends read only. | ||
10 | * It will be used to resolve uids + app names | ||
11 | * to full informations | ||
12 | * to traverse through a list of alarms, reminders | ||
13 | * to get access to built in PIM functionality | ||
14 | * and to more stuff | ||
15 | * THE PERFORMANCE will depend on THE BACKEND | ||
16 | * USING XML is a waste of memory!!!!! | ||
17 | */ | ||
18 | class OPimResolver : public QObject { | ||
19 | public: | ||
20 | enum BuiltIn { TodoList = 0, | ||
21 | DateBook, | ||
22 | AddressBook | ||
23 | }; | ||
24 | static OPimResolver* self(); | ||
25 | |||
26 | |||
27 | /* | ||
28 | * return a record for a uid | ||
29 | * and an app | ||
30 | */ | ||
31 | OPimRecord &record( const QString& service, int uid ); | ||
32 | |||
33 | /** | ||
34 | * return the QCopChannel for service | ||
35 | * When we will use Qtopia Services it will be used here | ||
36 | */ | ||
37 | QString qcopChannel( enum BuiltIn& )const; | ||
38 | QString qcopChannel( const QString& service ); | ||
39 | |||
40 | /** | ||
41 | * return a list of available services | ||
42 | */ | ||
43 | QStringList services()const; | ||
44 | |||
45 | /** | ||
46 | * add a record to a service... ;) | ||
47 | */ | ||
48 | bool add( const QString& service, const OPimRecord& ); | ||
49 | |||
50 | private: | ||
51 | OPimResolver(); | ||
52 | OPimRecord *m_last; | ||
53 | |||
54 | }: | ||
55 | |||
56 | #endif | ||