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/ocontactaccessbackend_vcard.h | |
parent | 1c6f490e8541626f68422e0a3a7c7281d7f5b7d3 (diff) | |
download | opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.zip opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.gz opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.bz2 |
libopie1 goes into unsupported
Diffstat (limited to 'libopie/pim/ocontactaccessbackend_vcard.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/pim/ocontactaccessbackend_vcard.h | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/libopie/pim/ocontactaccessbackend_vcard.h b/libopie/pim/ocontactaccessbackend_vcard.h deleted file mode 100644 index 712d769..0000000 --- a/libopie/pim/ocontactaccessbackend_vcard.h +++ b/dev/null | |||
@@ -1,96 +0,0 @@ | |||
1 | /* | ||
2 | * VCard Backend for the OPIE-Contact Database. | ||
3 | * | ||
4 | * Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
5 | * Copyright (c) 2002 by Stefan Eilers (Eilers.Stefan@epost.de) | ||
6 | * | ||
7 | * ===================================================================== | ||
8 | *This program is free software; you can redistribute it and/or | ||
9 | *modify it under the terms of the GNU Library General Public | ||
10 | * License as published by the Free Software Foundation; either | ||
11 | * version 2 of the License, or (at your option) any later version. | ||
12 | * ===================================================================== | ||
13 | * ToDo: | ||
14 | * | ||
15 | * ===================================================================== | ||
16 | * Version: $Id$ | ||
17 | * ===================================================================== | ||
18 | * History: | ||
19 | * $Log$ | ||
20 | * Revision 1.6 2003/04/13 18:07:10 zecke | ||
21 | * More API doc | ||
22 | * QString -> const QString& | ||
23 | * QString = 0l -> QString::null | ||
24 | * | ||
25 | * Revision 1.5 2003/03/21 10:33:09 eilers | ||
26 | * Merged speed optimized xml backend for contacts to main. | ||
27 | * Added QDateTime to querybyexample. For instance, it is now possible to get | ||
28 | * all Birthdays/Anniversaries between two dates. This should be used | ||
29 | * to show all birthdays in the datebook.. | ||
30 | * This change is sourcecode backward compatible but you have to upgrade | ||
31 | * the binaries for today-addressbook. | ||
32 | * | ||
33 | * Revision 1.4 2002/12/07 13:26:22 eilers | ||
34 | * Fixing bug in storing anniversary.. | ||
35 | * | ||
36 | * Revision 1.3 2002/11/13 14:14:51 eilers | ||
37 | * Added sorted for Contacts.. | ||
38 | * | ||
39 | * Revision 1.2 2002/11/10 15:41:53 eilers | ||
40 | * Bugfixes.. | ||
41 | * | ||
42 | * Revision 1.1 2002/11/09 14:34:52 eilers | ||
43 | * Added VCard Backend. | ||
44 | * | ||
45 | */ | ||
46 | #ifndef __OCONTACTACCESSBACKEND_VCARD_H_ | ||
47 | #define __OCONTACTACCESSBACKEND_VCARD_H_ | ||
48 | |||
49 | #include <opie/ocontact.h> | ||
50 | |||
51 | #include "ocontactaccessbackend.h" | ||
52 | |||
53 | class VObject; | ||
54 | |||
55 | /** | ||
56 | * This is the vCard 2.1 implementation of the Contact Storage | ||
57 | * @see OContactAccessBackend_XML | ||
58 | * @see OPimAccessBackend | ||
59 | */ | ||
60 | class OContactAccessBackend_VCard : public OContactAccessBackend { | ||
61 | public: | ||
62 | OContactAccessBackend_VCard ( const QString& appname, const QString& filename = QString::null ); | ||
63 | |||
64 | bool load (); | ||
65 | bool reload(); | ||
66 | bool save(); | ||
67 | void clear (); | ||
68 | |||
69 | bool add ( const OContact& newcontact ); | ||
70 | bool remove ( int uid ); | ||
71 | bool replace ( const OContact& contact ); | ||
72 | |||
73 | OContact find ( int uid ) const; | ||
74 | QArray<int> allRecords() const; | ||
75 | QArray<int> queryByExample ( const OContact &query, int settings, const QDateTime& d = QDateTime() ); | ||
76 | QArray<int> matchRegexp( const QRegExp &r ) const; | ||
77 | |||
78 | const uint querySettings(); | ||
79 | bool hasQuerySettings (uint querySettings) const; | ||
80 | QArray<int> sorted( bool ascending, int sortOrder, int sortFilter, int cat ); | ||
81 | bool wasChangedExternally(); | ||
82 | |||
83 | private: | ||
84 | OContact parseVObject( VObject* obj ); | ||
85 | VObject* createVObject( const OContact& c ); | ||
86 | QString convDateToVCardDate( const QDate& c ) const; | ||
87 | QDate convVCardDateToDate( const QString& datestr ); | ||
88 | VObject *safeAddPropValue( VObject *o, const char* prop, const QString& value ); | ||
89 | VObject *safeAddProp( VObject* o, const char* prop); | ||
90 | |||
91 | bool m_dirty : 1; | ||
92 | QString m_file; | ||
93 | QMap<int, OContact> m_map; | ||
94 | }; | ||
95 | |||
96 | #endif | ||