75 |
75 |
76 private: |
76 private: |
77 |
77 |
78 quint32 getNextEntryIndex(); |
78 quint32 getNextEntryIndex(); |
79 |
79 |
80 bool writeCenRep(qint32 index, QString value); |
80 bool writeCenRep(qint32 index, const QString &value); |
81 |
81 |
82 QString readCenRep(qint32 index); |
82 QString readCenRep(qint32 index); |
83 |
83 |
84 qint32 searchForAddress(QString address); |
84 qint32 searchForAddress(const QString &address); |
85 |
85 |
86 static qint32 entryIndex(qint32 crKey); |
86 static qint32 entryIndex(qint32 crKey); |
87 |
87 |
88 static qint32 addressKeyByEntryIndex(qint32 entryIndex); |
88 static qint32 addressKeyByEntryIndex(qint32 entryIndex); |
89 |
89 |
90 static qint32 nameKeyByEntryIndex(qint32 entryIndex); |
90 static qint32 nameKeyByEntryIndex(qint32 entryIndex); |
91 |
91 |
92 void moveEntry(qint32 oldEntryIndex, qint32 newEntryIndex); |
92 void moveEntry(qint32 oldEntryIndex, qint32 newEntryIndex); |
93 |
93 |
94 bool writeEntry(qint32 entryIndex, QString displayName, QString emailAddress); |
94 bool writeEntry(qint32 entryIndex, const QString &displayName, const QString &emailAddress); |
95 |
95 |
96 bool updateEntry(qint32 entryIndex, QString newDisplayName); |
96 bool updateEntry(qint32 entryIndex, const QString &newDisplayName); |
97 |
97 |
98 private: |
98 private: |
99 |
99 |
100 /*! |
100 /*! |
101 Points to the latest saved entry |
101 Points to the latest saved entry |