author | mickeyl <mickeyl> | 2004-11-16 19:14:18 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-11-16 19:14:18 (UTC) |
commit | ea3945a9bd8f9830f70b1efa133f9df13b19362f (patch) (unidiff) | |
tree | f2ea22cc50e9aa8aa73ee7dea148f41c563c9666 /libopie/pim/opimresolver.h | |
parent | 1c6f490e8541626f68422e0a3a7c7281d7f5b7d3 (diff) | |
download | opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.zip opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.gz opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.bz2 |
libopie1 goes into unsupported
-rw-r--r-- | libopie/pim/opimresolver.h | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/libopie/pim/opimresolver.h b/libopie/pim/opimresolver.h deleted file mode 100644 index 1ce1619..0000000 --- a/libopie/pim/opimresolver.h +++ b/dev/null | |||
@@ -1,90 +0,0 @@ | |||
1 | #ifndef OPIE_PIM_RESOLVER | ||
2 | #define OPIE_PIM_RESOLVER | ||
3 | |||
4 | #include <qstring.h> | ||
5 | #include <qvaluelist.h> | ||
6 | |||
7 | #include <opie/otemplatebase.h> | ||
8 | |||
9 | /** | ||
10 | * OPimResolver is a MetaClass to access | ||
11 | * available backends read only. | ||
12 | * It will be used to resolve uids + app names | ||
13 | * to full informations | ||
14 | * to traverse through a list of alarms, reminders | ||
15 | * to get access to built in PIM functionality | ||
16 | * and to more stuff | ||
17 | * THE PERFORMANCE will depend on THE BACKEND | ||
18 | * USING XML is a waste of memory!!!!! | ||
19 | */ | ||
20 | class OPimResolver { | ||
21 | public: | ||
22 | enum BuiltIn { TodoList = 0, | ||
23 | DateBook, | ||
24 | AddressBook | ||
25 | }; | ||
26 | static OPimResolver* self(); | ||
27 | |||
28 | |||
29 | /** | ||
30 | * return a record for a uid | ||
31 | * and an service | ||
32 | * You've THE OWNERSHIP NOW! | ||
33 | */ | ||
34 | OPimRecord *record( const QString& service, int uid ); | ||
35 | |||
36 | /** | ||
37 | * return the QCopChannel for service | ||
38 | * When we will use Qtopia Services it will be used here | ||
39 | */ | ||
40 | QCString qcopChannel( enum BuiltIn& )const; | ||
41 | QCString qcopChannel( const QString& service )const; | ||
42 | |||
43 | /** | ||
44 | * The Application channel (QPE/Application/name) | ||
45 | */ | ||
46 | QCString applicationChannel( enum BuiltIn& )const; | ||
47 | QCString applicationChannel( const QString& service )const; | ||
48 | |||
49 | /** | ||
50 | * return a list of available services | ||
51 | */ | ||
52 | QStringList services()const; | ||
53 | inline QString serviceName(int rrti )const; | ||
54 | int serviceId( const QString& Service); | ||
55 | /** | ||
56 | * add a record to a service... ;) | ||
57 | */ | ||
58 | bool add( const QString& service, const OPimRecord& ); | ||
59 | |||
60 | |||
61 | /** | ||
62 | * record returns an empty record for a given service. | ||
63 | * Be sure to delete it!!! | ||
64 | * | ||
65 | */ | ||
66 | OPimRecord* record( const QString& service ); | ||
67 | OPimRecord* record( int rtti ); | ||
68 | |||
69 | /** | ||
70 | * you can cast to your | ||
71 | */ | ||
72 | OPimBase* backend( const QString& service ); | ||
73 | OPimBase* backend( int rtti ); | ||
74 | private: | ||
75 | OPimResolver(); | ||
76 | void loadData(); | ||
77 | inline bool isBuiltIn( const QString& )const; | ||
78 | OPimRecord* recordExtern( const QString&, int ); | ||
79 | OPimRecord* recordExtern( const QString& ); | ||
80 | |||
81 | static OPimResolver* m_self; | ||
82 | struct Data; | ||
83 | class Private; | ||
84 | |||
85 | Data* data; | ||
86 | Private* d; | ||
87 | QStringList m_builtIns; | ||
88 | }; | ||
89 | |||
90 | #endif | ||