-rw-r--r-- | kaddressbook/viewmanager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kaddressbook/viewmanager.h b/kaddressbook/viewmanager.h index a03a83f..272e1b0 100644 --- a/kaddressbook/viewmanager.h +++ b/kaddressbook/viewmanager.h | |||
@@ -7,79 +7,81 @@ | |||
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #ifndef VIEWMANAGER_H | 24 | #ifndef VIEWMANAGER_H |
25 | #define VIEWMANAGER_H | 25 | #define VIEWMANAGER_H |
26 | 26 | ||
27 | #include <qwidget.h> | 27 | #include <qwidget.h> |
28 | #include <qstringlist.h> | 28 | #include <qstringlist.h> |
29 | #include <kaddressbookview.h> | 29 | #include <kaddressbookview.h> |
30 | #include <qdict.h> | 30 | #include <qdict.h> |
31 | #include "filter.h" | ||
31 | 32 | ||
32 | class KAction; | 33 | class KAction; |
33 | class KSelectAction; | 34 | class KSelectAction; |
34 | 35 | ||
35 | class KABCore; | 36 | class KABCore; |
36 | class QWidgetStack; | 37 | class QWidgetStack; |
37 | class QDropEvent; | 38 | class QDropEvent; |
38 | 39 | ||
39 | namespace KABC { class AddressBook; } | 40 | namespace KABC { class AddressBook; } |
40 | 41 | ||
41 | /** | 42 | /** |
42 | The view manager manages the views and everything related to them. The | 43 | The view manager manages the views and everything related to them. The |
43 | manager will load the views at startup and display a view when told to | 44 | manager will load the views at startup and display a view when told to |
44 | make one active. | 45 | make one active. |
45 | 46 | ||
46 | The view manager will also create and manage all dialogs directly related to | 47 | The view manager will also create and manage all dialogs directly related to |
47 | views (ie: AddView, ConfigureView, DeleteView, etc). | 48 | views (ie: AddView, ConfigureView, DeleteView, etc). |
48 | */ | 49 | */ |
49 | class ViewManager : public QWidget | 50 | class ViewManager : public QWidget |
50 | { | 51 | { |
51 | Q_OBJECT | 52 | Q_OBJECT |
52 | public: | 53 | public: |
53 | ViewManager( KABCore *core, QWidget *parent, const char *name = 0 ); | 54 | ViewManager( KABCore *core, QWidget *parent, const char *name = 0 ); |
54 | ~ViewManager(); | 55 | ~ViewManager(); |
55 | 56 | ||
56 | void restoreSettings(); | 57 | void restoreSettings(); |
57 | void saveSettings(); | 58 | void saveSettings(); |
58 | void doSearch( const QString& s ,KABC::Field *field ); | 59 | void doSearch( const QString& s ,KABC::Field *field ); |
59 | 60 | ||
60 | void unloadViews(); | 61 | void unloadViews(); |
61 | KSelectAction * getFilterAction() { return mActionSelectFilter; } | 62 | KSelectAction * getFilterAction() { return mActionSelectFilter; } |
63 | Filter getFilterByName( const QString &name ) const; | ||
62 | 64 | ||
63 | QStringList selectedUids() const; | 65 | QStringList selectedUids() const; |
64 | QStringList selectedEmails() const; | 66 | QStringList selectedEmails() const; |
65 | KABC::Addressee::List selectedAddressees() const; | 67 | KABC::Addressee::List selectedAddressees() const; |
66 | void setListSelected(QStringList); | 68 | void setListSelected(QStringList); |
67 | void setFocusAV(); | 69 | void setFocusAV(); |
68 | 70 | ||
69 | public slots: | 71 | public slots: |
70 | void scrollUP(); | 72 | void scrollUP(); |
71 | void scrollDOWN(); | 73 | void scrollDOWN(); |
72 | 74 | ||
73 | //US void setSelected( const QString &uid = QString::null, bool selected = true ); | 75 | //US void setSelected( const QString &uid = QString::null, bool selected = true ); |
74 | void setSelected( const QString &uid, bool); | 76 | void setSelected( const QString &uid, bool); |
75 | //US added another method with no parameter, since my moc compiler does not support default parameters. | 77 | //US added another method with no parameter, since my moc compiler does not support default parameters. |
76 | void setSelected(); | 78 | void setSelected(); |
77 | 79 | ||
78 | 80 | ||
79 | 81 | ||
80 | //US added another method with no parameter, since my moc compiler does not support default parameters. | 82 | //US added another method with no parameter, since my moc compiler does not support default parameters. |
81 | void refreshView(); | 83 | void refreshView(); |
82 | void refreshView( const QString &uid); | 84 | void refreshView( const QString &uid); |
83 | 85 | ||
84 | void editView(); | 86 | void editView(); |
85 | void deleteView(); | 87 | void deleteView(); |