Diffstat (limited to 'noncore/net/mailit/addresslist.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mailit/addresslist.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/noncore/net/mailit/addresslist.h b/noncore/net/mailit/addresslist.h deleted file mode 100644 index 763b6d4..0000000 --- a/noncore/net/mailit/addresslist.h +++ b/dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2001 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qt Palmtop Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #ifndef ADDRESSLIST_H | ||
21 | #define ADDRESSLIST_H | ||
22 | |||
23 | #include <qobject.h> | ||
24 | #include <qlist.h> | ||
25 | |||
26 | struct AContact | ||
27 | { | ||
28 | QString email; | ||
29 | QString name; | ||
30 | }; | ||
31 | |||
32 | class AddressList : public QObject | ||
33 | { | ||
34 | Q_OBJECT | ||
35 | |||
36 | public: | ||
37 | AddressList(); | ||
38 | ~AddressList(); | ||
39 | void addContact(const QString &email, const QString &name); | ||
40 | bool containsEmail(const QString &email); | ||
41 | bool containsName(const QString &name); | ||
42 | QString getNameByEmail(const QString &email); | ||
43 | QString getEmailByName(const QString &name); | ||
44 | QList<AContact>* getContactList(); | ||
45 | |||
46 | private: | ||
47 | int getEmailRef(const QString &email); | ||
48 | int getNameRef(const QString &name); | ||
49 | QString getRightString(const QString &in); | ||
50 | void read(); | ||
51 | |||
52 | private: | ||
53 | QList<AContact> addresses; | ||
54 | QString filename; | ||
55 | bool dirty; | ||
56 | }; | ||
57 | |||
58 | #endif | ||