Diffstat (limited to 'libopie2/opiepim/backend/ocontactaccessbackend_vcard.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/backend/ocontactaccessbackend_vcard.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.h b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.h index c1422b0..177ec24 100644 --- a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.h +++ b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.h | |||
@@ -1,26 +1,30 @@ | |||
1 | /* | 1 | /* |
2 | * VCard Backend for the OPIE-Contact Database. | 2 | * VCard Backend for the OPIE-Contact Database. |
3 | * | 3 | * |
4 | * Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
4 | * Copyright (c) 2002 by Stefan Eilers (Eilers.Stefan@epost.de) | 5 | * Copyright (c) 2002 by Stefan Eilers (Eilers.Stefan@epost.de) |
5 | * | 6 | * |
6 | * ===================================================================== | 7 | * ===================================================================== |
7 | *This program is free software; you can redistribute it and/or | 8 | *This program is free software; you can redistribute it and/or |
8 | *modify it under the terms of the GNU Library General Public | 9 | *modify it under the terms of the GNU Library General Public |
9 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
10 | * version 2 of the License, or (at your option) any later version. | 11 | * version 2 of the License, or (at your option) any later version. |
11 | * ===================================================================== | 12 | * ===================================================================== |
12 | * ToDo: | 13 | * ToDo: |
13 | * | 14 | * |
14 | * ===================================================================== | 15 | * ===================================================================== |
15 | * Version: $Id$ | 16 | * Version: $Id$ |
16 | * ===================================================================== | 17 | * ===================================================================== |
17 | * History: | 18 | * History: |
18 | * $Log$ | 19 | * $Log$ |
20 | * Revision 1.2 2002/11/10 15:41:53 eilers | ||
21 | * Bugfixes.. | ||
22 | * | ||
19 | * Revision 1.1 2002/11/09 14:34:52 eilers | 23 | * Revision 1.1 2002/11/09 14:34:52 eilers |
20 | * Added VCard Backend. | 24 | * Added VCard Backend. |
21 | * | 25 | * |
22 | */ | 26 | */ |
23 | #ifndef __OCONTACTACCESSBACKEND_VCARD_H_ | 27 | #ifndef __OCONTACTACCESSBACKEND_VCARD_H_ |
24 | #define __OCONTACTACCESSBACKEND_VCARD_H_ | 28 | #define __OCONTACTACCESSBACKEND_VCARD_H_ |
25 | 29 | ||
26 | #include <opie/ocontact.h> | 30 | #include <opie/ocontact.h> |
@@ -44,16 +48,17 @@ class OContactAccessBackend_VCard : public OContactAccessBackend { | |||
44 | 48 | ||
45 | OContact find ( int uid ) const; | 49 | OContact find ( int uid ) const; |
46 | QArray<int> allRecords() const; | 50 | QArray<int> allRecords() const; |
47 | QArray<int> queryByExample ( const OContact &query, int settings ); | 51 | QArray<int> queryByExample ( const OContact &query, int settings ); |
48 | QArray<int> matchRegexp( const QRegExp &r ) const; | 52 | QArray<int> matchRegexp( const QRegExp &r ) const; |
49 | 53 | ||
50 | const uint querySettings(); | 54 | const uint querySettings(); |
51 | bool hasQuerySettings (uint querySettings) const; | 55 | bool hasQuerySettings (uint querySettings) const; |
56 | bool wasChangedExternally(); | ||
52 | 57 | ||
53 | private: | 58 | private: |
54 | OContact parseVObject( VObject* obj ); | 59 | OContact parseVObject( VObject* obj ); |
55 | VObject* createVObject( const OContact& c ); | 60 | VObject* createVObject( const OContact& c ); |
56 | QDate convVCardDateToDate( const QString& datestr ); | 61 | QDate convVCardDateToDate( const QString& datestr ); |
57 | VObject *safeAddPropValue( VObject *o, const char* prop, const QString& value ); | 62 | VObject *safeAddPropValue( VObject *o, const char* prop, const QString& value ); |
58 | VObject *safeAddProp( VObject* o, const char* prop); | 63 | VObject *safeAddProp( VObject* o, const char* prop); |
59 | 64 | ||