Diffstat (limited to 'noncore/net/mailit/addresslist.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mailit/addresslist.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/net/mailit/addresslist.h b/noncore/net/mailit/addresslist.h index b46d467..763b6d4 100644 --- a/noncore/net/mailit/addresslist.h +++ b/noncore/net/mailit/addresslist.h | |||
@@ -20,13 +20,13 @@ | |||
20 | #ifndef ADDRESSLIST_H | 20 | #ifndef ADDRESSLIST_H |
21 | #define ADDRESSLIST_H | 21 | #define ADDRESSLIST_H |
22 | 22 | ||
23 | #include <qobject.h> | 23 | #include <qobject.h> |
24 | #include <qlist.h> | 24 | #include <qlist.h> |
25 | 25 | ||
26 | struct Contact | 26 | struct AContact |
27 | { | 27 | { |
28 | QString email; | 28 | QString email; |
29 | QString name; | 29 | QString name; |
30 | }; | 30 | }; |
31 | 31 | ||
32 | class AddressList : public QObject | 32 | class AddressList : public QObject |
@@ -38,21 +38,21 @@ public: | |||
38 | ~AddressList(); | 38 | ~AddressList(); |
39 | void addContact(const QString &email, const QString &name); | 39 | void addContact(const QString &email, const QString &name); |
40 | bool containsEmail(const QString &email); | 40 | bool containsEmail(const QString &email); |
41 | bool containsName(const QString &name); | 41 | bool containsName(const QString &name); |
42 | QString getNameByEmail(const QString &email); | 42 | QString getNameByEmail(const QString &email); |
43 | QString getEmailByName(const QString &name); | 43 | QString getEmailByName(const QString &name); |
44 | QList<Contact>* getContactList(); | 44 | QList<AContact>* getContactList(); |
45 | 45 | ||
46 | private: | 46 | private: |
47 | int getEmailRef(const QString &email); | 47 | int getEmailRef(const QString &email); |
48 | int getNameRef(const QString &name); | 48 | int getNameRef(const QString &name); |
49 | QString getRightString(const QString &in); | 49 | QString getRightString(const QString &in); |
50 | void read(); | 50 | void read(); |
51 | 51 | ||
52 | private: | 52 | private: |
53 | QList<Contact> addresses; | 53 | QList<AContact> addresses; |
54 | QString filename; | 54 | QString filename; |
55 | bool dirty; | 55 | bool dirty; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | #endif | 58 | #endif |