Diffstat (limited to 'core/pim/addressbook/abtable.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/abtable.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/pim/addressbook/abtable.h b/core/pim/addressbook/abtable.h index b445874..35a1e9e 100644 --- a/core/pim/addressbook/abtable.h +++ b/core/pim/addressbook/abtable.h | |||
@@ -89,32 +89,37 @@ public: | |||
89 | void setShowCategory( const QString &b, const QString &c ); | 89 | void setShowCategory( const QString &b, const QString &c ); |
90 | void setShowByLetter( char c ); | 90 | void setShowByLetter( char c ); |
91 | QString showCategory() const; | 91 | QString showCategory() const; |
92 | QStringList categories(); | 92 | QStringList categories(); |
93 | 93 | ||
94 | void resizeRows(); | 94 | void resizeRows(); |
95 | 95 | ||
96 | void show(); | 96 | void show(); |
97 | void setPaintingEnabled( bool e ); | 97 | void setPaintingEnabled( bool e ); |
98 | 98 | ||
99 | QString showBook() const; | 99 | QString showBook() const; |
100 | 100 | ||
101 | void inSearch() { m_inSearch = true; } | ||
102 | void offSearch() { m_inSearch = false; } | ||
103 | |||
101 | public slots: | 104 | public slots: |
102 | void slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, bool backwards, | 105 | void slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, bool backwards, |
103 | QString category = QString::null ); | 106 | QString category = QString::null ); |
104 | signals: | 107 | signals: |
105 | void empty( bool ); | 108 | void empty( bool ); |
106 | void details(); | 109 | void details(); |
107 | void signalNotFound(); | 110 | void signalNotFound(); |
108 | void signalWrapAround(); | 111 | void signalWrapAround(); |
112 | void signalSearchBackward(); // Signalled if backward search is requested | ||
113 | void signalSearchNext(); // Singalled if forward search is requested | ||
109 | 114 | ||
110 | protected: | 115 | protected: |
111 | virtual void keyPressEvent( QKeyEvent *e ); | 116 | virtual void keyPressEvent( QKeyEvent *e ); |
112 | 117 | ||
113 | // int rowHeight( int ) const; | 118 | // int rowHeight( int ) const; |
114 | // int rowPos( int row ) const; | 119 | // int rowPos( int row ) const; |
115 | // virtual int rowAt( int pos ) const; | 120 | // virtual int rowAt( int pos ) const; |
116 | 121 | ||
117 | 122 | ||
118 | protected slots: | 123 | protected slots: |
119 | void moveTo( char ); | 124 | void moveTo( char ); |
120 | virtual void columnClicked( int col ); | 125 | virtual void columnClicked( int col ); |
@@ -139,16 +144,18 @@ private: | |||
139 | char showChar; | 144 | char showChar; |
140 | QMap<AbTableItem*, OContact> contactList; | 145 | QMap<AbTableItem*, OContact> contactList; |
141 | const QValueList<int> *intFields; | 146 | const QValueList<int> *intFields; |
142 | int currFindRow; | 147 | int currFindRow; |
143 | QString showCat; | 148 | QString showCat; |
144 | QStringList choicenames; | 149 | QStringList choicenames; |
145 | bool enablePainting; | 150 | bool enablePainting; |
146 | Categories mCat; | 151 | Categories mCat; |
147 | 152 | ||
148 | QString showBk; | 153 | QString showBk; |
149 | bool columnVisible; | 154 | bool columnVisible; |
150 | 155 | ||
156 | bool m_inSearch; | ||
157 | |||
151 | OContactAccess m_contactdb; | 158 | OContactAccess m_contactdb; |
152 | 159 | ||
153 | }; | 160 | }; |
154 | #endif // ABTABLE_H | 161 | #endif // ABTABLE_H |