Diffstat (limited to 'pluginopiekabc/opieaddressbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pluginopiekabc/opieaddressbook.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pluginopiekabc/opieaddressbook.h b/pluginopiekabc/opieaddressbook.h new file mode 100644 index 0000000..d2a3b38 --- a/dev/null +++ b/pluginopiekabc/opieaddressbook.h | |||
@@ -0,0 +1,63 @@ | |||
1 | /* | ||
2 | This file is part of libkabc. | ||
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | ||
4 | |||
5 | This library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Library General Public | ||
7 | License as published by the Free Software Foundation; either | ||
8 | version 2 of the License, or (at your option) any later version. | ||
9 | |||
10 | This library is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Library General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Library General Public License | ||
16 | along with this library; see the file COPYING.LIB. If not, write to | ||
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
18 | Boston, MA 02111-1307, USA. | ||
19 | */ | ||
20 | |||
21 | #ifndef KABC_STDADDRESSBOOK_H | ||
22 | #define KABC_STDADDRESSBOOK_H | ||
23 | |||
24 | #include <opie/ocontactaccess.h> | ||
25 | #include "opieaddressee.h" | ||
26 | #include "opieaddress.h" | ||
27 | |||
28 | namespace KABC { | ||
29 | |||
30 | class AddressBook { | ||
31 | |||
32 | public: | ||
33 | AddressBook(); | ||
34 | ~AddressBook(); | ||
35 | Addressee::List findByEmail( const QString & ); | ||
36 | |||
37 | protected: | ||
38 | OContactAccess *access; | ||
39 | }; | ||
40 | |||
41 | |||
42 | class StdAddressBook : public AddressBook | ||
43 | { | ||
44 | public: | ||
45 | /** | ||
46 | Return the standard addressbook object. | ||
47 | */ | ||
48 | static AddressBook *self(); | ||
49 | |||
50 | |||
51 | protected: | ||
52 | StdAddressBook(); | ||
53 | ~StdAddressBook(); | ||
54 | |||
55 | void init( bool onlyFastResources ); | ||
56 | |||
57 | private: | ||
58 | static AddressBook *mSelf; | ||
59 | static bool mAutomaticSave; | ||
60 | }; | ||
61 | |||
62 | } | ||
63 | #endif | ||