-rw-r--r-- | kaddressbook/viewmanager.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/viewmanager.h b/kaddressbook/viewmanager.h index 272e1b0..dff9998 100644 --- a/kaddressbook/viewmanager.h +++ b/kaddressbook/viewmanager.h | |||
@@ -24,96 +24,97 @@ | |||
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 | #include "filter.h" |
32 | 32 | ||
33 | class KAction; | 33 | class KAction; |
34 | class KSelectAction; | 34 | class KSelectAction; |
35 | 35 | ||
36 | class KABCore; | 36 | class KABCore; |
37 | class QWidgetStack; | 37 | class QWidgetStack; |
38 | class QDropEvent; | 38 | class QDropEvent; |
39 | 39 | ||
40 | namespace KABC { class AddressBook; } | 40 | namespace KABC { class AddressBook; } |
41 | 41 | ||
42 | /** | 42 | /** |
43 | 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 |
44 | 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 |
45 | make one active. | 45 | make one active. |
46 | 46 | ||
47 | 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 |
48 | views (ie: AddView, ConfigureView, DeleteView, etc). | 48 | views (ie: AddView, ConfigureView, DeleteView, etc). |
49 | */ | 49 | */ |
50 | class ViewManager : public QWidget | 50 | class ViewManager : public QWidget |
51 | { | 51 | { |
52 | Q_OBJECT | 52 | Q_OBJECT |
53 | public: | 53 | public: |
54 | ViewManager( KABCore *core, QWidget *parent, const char *name = 0 ); | 54 | ViewManager( KABCore *core, QWidget *parent, const char *name = 0 ); |
55 | ~ViewManager(); | 55 | ~ViewManager(); |
56 | 56 | ||
57 | void restoreSettings(); | 57 | void restoreSettings(); |
58 | void saveSettings(); | 58 | void saveSettings(); |
59 | void doSearch( const QString& s ,KABC::Field *field ); | 59 | void doSearch( const QString& s ,KABC::Field *field ); |
60 | 60 | ||
61 | void unloadViews(); | 61 | void unloadViews(); |
62 | KSelectAction * getFilterAction() { return mActionSelectFilter; } | 62 | KSelectAction * getFilterAction() { return mActionSelectFilter; } |
63 | Filter getFilterByName( const QString &name ) const; | 63 | Filter getFilterByName( const QString &name ) const; |
64 | 64 | ||
65 | QStringList selectedUids() const; | 65 | QStringList selectedUids() const; |
66 | QStringList selectedEmails() const; | 66 | QStringList selectedEmails() const; |
67 | KABC::Addressee::List selectedAddressees() const; | 67 | KABC::Addressee::List selectedAddressees() const; |
68 | void setListSelected(QStringList); | 68 | void setListSelected(QStringList); |
69 | void setFocusAV(); | 69 | void setFocusAV(); |
70 | 70 | ||
71 | public slots: | 71 | public slots: |
72 | void printView() { if (mActiveView) mActiveView->printMyView() ;} | ||
72 | void scrollUP(); | 73 | void scrollUP(); |
73 | void scrollDOWN(); | 74 | void scrollDOWN(); |
74 | 75 | ||
75 | //US void setSelected( const QString &uid = QString::null, bool selected = true ); | 76 | //US void setSelected( const QString &uid = QString::null, bool selected = true ); |
76 | void setSelected( const QString &uid, bool); | 77 | void setSelected( const QString &uid, bool); |
77 | //US added another method with no parameter, since my moc compiler does not support default parameters. | 78 | //US added another method with no parameter, since my moc compiler does not support default parameters. |
78 | void setSelected(); | 79 | void setSelected(); |
79 | 80 | ||
80 | 81 | ||
81 | 82 | ||
82 | //US added another method with no parameter, since my moc compiler does not support default parameters. | 83 | //US added another method with no parameter, since my moc compiler does not support default parameters. |
83 | void refreshView(); | 84 | void refreshView(); |
84 | void refreshView( const QString &uid); | 85 | void refreshView( const QString &uid); |
85 | 86 | ||
86 | void editView(); | 87 | void editView(); |
87 | void deleteView(); | 88 | void deleteView(); |
88 | void addView(); | 89 | void addView(); |
89 | 90 | ||
90 | protected slots: | 91 | protected slots: |
91 | /** | 92 | /** |
92 | Called whenever the user drops something in the active view. | 93 | Called whenever the user drops something in the active view. |
93 | This method will try to decode what was dropped, and if it was | 94 | This method will try to decode what was dropped, and if it was |
94 | a valid addressee, add it to the addressbook. | 95 | a valid addressee, add it to the addressbook. |
95 | */ | 96 | */ |
96 | void dropped( QDropEvent* ); | 97 | void dropped( QDropEvent* ); |
97 | 98 | ||
98 | /** | 99 | /** |
99 | Called whenever the user attempts to start a drag in the view. | 100 | Called whenever the user attempts to start a drag in the view. |
100 | This method will convert all the selected addressees into text (vcard) | 101 | This method will convert all the selected addressees into text (vcard) |
101 | and create a drag object. | 102 | and create a drag object. |
102 | */ | 103 | */ |
103 | void startDrag(); | 104 | void startDrag(); |
104 | 105 | ||
105 | signals: | 106 | signals: |
106 | /** | 107 | /** |
107 | Emitted whenever the user selects an entry in the view. | 108 | Emitted whenever the user selects an entry in the view. |
108 | */ | 109 | */ |
109 | void selected( const QString &uid ); | 110 | void selected( const QString &uid ); |
110 | void deleteRequest( ); | 111 | void deleteRequest( ); |
111 | 112 | ||
112 | /** | 113 | /** |
113 | Emitted whenever the user activates an entry in the view. | 114 | Emitted whenever the user activates an entry in the view. |
114 | */ | 115 | */ |
115 | void executed( const QString &uid ); | 116 | void executed( const QString &uid ); |
116 | 117 | ||
117 | /** | 118 | /** |
118 | Emitted whenever the address book is modified in some way. | 119 | Emitted whenever the address book is modified in some way. |
119 | */ | 120 | */ |