summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/abtable.h
Unidiff
Diffstat (limited to 'core/pim/addressbook/abtable.h') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/addressbook/abtable.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/core/pim/addressbook/abtable.h b/core/pim/addressbook/abtable.h
index b9ebe27..927a5a9 100644
--- a/core/pim/addressbook/abtable.h
+++ b/core/pim/addressbook/abtable.h
@@ -13,27 +13,28 @@
13** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 13** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
14** 14**
15** See http://www.trolltech.com/gpl/ for GPL licensing information. 15** See http://www.trolltech.com/gpl/ for GPL licensing information.
16** 16**
17** Contact info@trolltech.com if any conditions of this licensing are 17** Contact info@trolltech.com if any conditions of this licensing are
18** not clear to you. 18** not clear to you.
19** 19**
20**********************************************************************/ 20**********************************************************************/
21 21
22#ifndef ABTABLE_H 22#ifndef ABTABLE_H
23#define ABTABLE_H 23#define ABTABLE_H
24 24
25#include <opie2/opimcontact.h>
26#include <opie2/ocontactaccess.h>
27
25#include <qpe/categories.h> 28#include <qpe/categories.h>
26#include <opie/ocontact.h>
27#include <opie/ocontactaccess.h>
28 29
29#include <qmap.h> 30#include <qmap.h>
30#include <qtable.h> 31#include <qtable.h>
31#include <qstringlist.h> 32#include <qstringlist.h>
32#include <qcombobox.h> 33#include <qcombobox.h>
33#include <qpixmap.h> 34#include <qpixmap.h>
34 35
35#if 0 36#if 0
36class AbTableItem : public QTableItem 37class AbTableItem : public QTableItem
37{ 38{
38public: 39public:
39 AbTableItem( QTable *t, EditType et, const QString &s, 40 AbTableItem( QTable *t, EditType et, const QString &s,
@@ -74,39 +75,39 @@ private:
74 75
75#endif 76#endif
76 77
77class AbTable : public QTable 78class AbTable : public QTable
78{ 79{
79 Q_OBJECT 80 Q_OBJECT
80 81
81public: 82public:
82 AbTable( const QValueList<int> ordered, QWidget *parent, const char *name=0 ); 83 AbTable( const QValueList<int> ordered, QWidget *parent, const char *name=0 );
83 ~AbTable(); 84 ~AbTable();
84 85
85 // Set the contacts shown in the table 86 // Set the contacts shown in the table
86 void setContacts( const OContactAccess::List& viewList ); 87 void setContacts( const Opie::OPimContactAccess::List& viewList );
87 88
88 // Set the list for primary contacts 89 // Set the list for primary contacts
89 void setOrderedList( const QValueList<int> ordered ); 90 void setOrderedList( const QValueList<int> ordered );
90 91
91 // Selects a contact of a specific UID 92 // Selects a contact of a specific UID
92 bool selectContact( int UID ); 93 bool selectContact( int UID );
93 94
94 // Get the current selected entry 95 // Get the current selected entry
95 OContact currentEntry(); 96 Opie::OPimContact currentEntry();
96 97
97 // Get the UID of the current selected Entry 98 // Get the UID of the current selected Entry
98 int currentEntry_UID(); 99 int currentEntry_UID();
99 100
100 // QString findContactName( const OContact &entry ); 101 // QString findContactName( const Opie::OPimContact &entry );
101 102
102 void init(); 103 void init();
103 void clear(); 104 void clear();
104 void refresh(); 105 void refresh();
105 106
106 void show(); 107 void show();
107 void setPaintingEnabled( bool e ); 108 void setPaintingEnabled( bool e );
108 void viewportPaintEvent( QPaintEvent* e); 109 void viewportPaintEvent( QPaintEvent* e);
109 void paintCell(QPainter* p, int row, int col, const QRect&, bool ); 110 void paintCell(QPainter* p, int row, int col, const QRect&, bool );
110 111
111 // addresspicker mode (What's that ? se) 112 // addresspicker mode (What's that ? se)
112 // void setChoiceNames( const QStringList& list); 113 // void setChoiceNames( const QStringList& list);
@@ -126,33 +127,33 @@ protected:
126// int rowHeight( int ) const; 127// int rowHeight( int ) const;
127// int rowPos( int row ) const; 128// int rowPos( int row ) const;
128// virtual int rowAt( int pos ) const; 129// virtual int rowAt( int pos ) const;
129 130
130 131
131protected slots: 132protected slots:
132 void moveTo( char ); 133 void moveTo( char );
133 virtual void columnClicked( int col ); 134 virtual void columnClicked( int col );
134 void itemClicked(int,int col); 135 void itemClicked(int,int col);
135 void rowHeightChanged( int row ); 136 void rowHeightChanged( int row );
136 137
137private: 138private:
138 // void insertIntoTable( const OContact &cnt, int row ); 139 // void insertIntoTable( const Opie::OPimContact &cnt, int row );
139 ContactItem findContactContact( const OContact &entry, int row ); 140 ContactItem findContactContact( const Opie::OPimContact &entry, int row );
140 void fitColumns(); 141 void fitColumns();
141 void resizeRows(); 142 void resizeRows();
142 void realignTable(); 143 void realignTable();
143 void resort(); 144 void resort();
144 void updateVisible(); 145 void updateVisible();
145 146
146 int lastSortCol; 147 int lastSortCol;
147 bool asc; 148 bool asc;
148 // QMap<AbTableItem*, OContact> contactList; 149 // QMap<AbTableItem*, Opie::OPimContact> contactList;
149 QValueList<int> intFields; 150 QValueList<int> intFields;
150 QStringList choicenames; 151 QStringList choicenames;
151 bool enablePainting; 152 bool enablePainting;
152 bool columnVisible; 153 bool columnVisible;
153 int countNested; 154 int countNested;
154 155
155 OContactAccess::List m_viewList; 156 Opie::OPimContactAccess::List m_viewList;
156 157
157}; 158};
158#endif // ABTABLE_H 159#endif // ABTABLE_H