summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/abtable.h
Side-by-side diff
Diffstat (limited to 'core/pim/addressbook/abtable.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/abtable.h36
1 files changed, 23 insertions, 13 deletions
diff --git a/core/pim/addressbook/abtable.h b/core/pim/addressbook/abtable.h
index d5ff279..84aef1e 100644
--- a/core/pim/addressbook/abtable.h
+++ b/core/pim/addressbook/abtable.h
@@ -19,19 +19,21 @@
**********************************************************************/
#ifndef ABTABLE_H
#define ABTABLE_H
#include <qpe/categories.h>
-#include <qpe/contact.h>
+#include <opie/ocontact.h>
#include <qmap.h>
#include <qtable.h>
#include <qstringlist.h>
#include <qcombobox.h>
+#include <opie/ocontactaccess.h>
+
class AbTableItem : public QTableItem
{
public:
AbTableItem( QTable *t, EditType et, const QString &s,
const QString &secondSortKey);
QString entryKey() const;
@@ -61,15 +63,15 @@ class AbTable : public QTable
Q_OBJECT
public:
AbTable( const QValueList<int> *ordered, QWidget *parent, const char *name=0 );
~AbTable();
// NEW
- void addEntry( const Contact &newContact );
- Contact currentEntry();
- void replaceCurrentEntry( const Contact &newContact );
+ void addEntry( const OContact &newContact );
+ OContact currentEntry();
+ void replaceCurrentEntry( const OContact &newContact );
void init();
void deleteCurrentEntry();
void clear();
void clearFindRow() { currFindRow = -2; }
@@ -80,21 +82,24 @@ public:
// addresspicker mode
void setChoiceNames( const QStringList& list);
QStringList choiceNames() const;
void setChoiceSelection(int index, const QStringList& list);
QStringList choiceSelection(int index) const;
- void setShowCategory( const QString &c );
+ void setShowCategory( const QString &b, const QString &c );
void setShowByLetter( char c );
QString showCategory() const;
QStringList categories();
- void resizeRows( int size );
+
+ void resizeRows();
void show();
void setPaintingEnabled( bool e );
+ QString showBook() const;
+
public slots:
void slotDoFind( const QString &str, bool caseSensitive, bool backwards,
int category );
signals:
void empty( bool );
void details();
@@ -116,28 +121,33 @@ protected slots:
void rowHeightChanged( int row );
private:
void loadFile( const QString &strFile, bool journalFile );
void fitColumns();
void resort();
- void updateJournal( const Contact &contact, Contact::journal_action action,
+ void updateJournal( const OContact &contact, OContact::journal_action action,
int row = -1 );
- void insertIntoTable( const Contact &contact, int row );
- void internalAddEntries( QList<Contact> &list );
- QString findContactName( const Contact &entry );
- QString findContactContact( const Contact &entry );
- void journalFreeReplace( const Contact &cnt, int row );
+ void insertIntoTable( const OContact &contact, int row );
+ QString findContactName( const OContact &entry );
+ QString findContactContact( const OContact &entry, int row );
+ void journalFreeReplace( const OContact &cnt, int row );
void journalFreeRemove( int row );
void realignTable( int );
void updateVisible();
int lastSortCol;
bool asc;
char showChar;
- QMap<AbTableItem*, Contact> contactList;
+ QMap<AbTableItem*, OContact> contactList;
const QValueList<int> *intFields;
int currFindRow;
QString showCat;
QStringList choicenames;
bool enablePainting;
Categories mCat;
+
+ QString showBk;
+ bool columnVisible;
+
+ OContactAccess m_contactdb;
+
};
#endif // ABTABLE_H