Diffstat (limited to 'kaddressbook/kaddressbookview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/kaddressbookview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/kaddressbookview.h b/kaddressbook/kaddressbookview.h index c134e96..2e91cbc 100644 --- a/kaddressbook/kaddressbookview.h +++ b/kaddressbook/kaddressbookview.h | |||
@@ -46,48 +46,49 @@ namespace KABC { class AddressBook; } | |||
46 | 46 | ||
47 | To implement a specific view (table, card, etc), just inherit from | 47 | To implement a specific view (table, card, etc), just inherit from |
48 | this class and implement all the pure virtuals. | 48 | this class and implement all the pure virtuals. |
49 | 49 | ||
50 | @author Mike Pilone <mpilone@slac.com> | 50 | @author Mike Pilone <mpilone@slac.com> |
51 | */ | 51 | */ |
52 | class KAddressBookView : public QWidget | 52 | class KAddressBookView : public QWidget |
53 | { | 53 | { |
54 | Q_OBJECT | 54 | Q_OBJECT |
55 | 55 | ||
56 | public: | 56 | public: |
57 | enum DefaultFilterType { None = 0, Active = 1, Specific = 2 }; | 57 | enum DefaultFilterType { None = 0, Active = 1, Specific = 2 }; |
58 | 58 | ||
59 | KAddressBookView( KABC::AddressBook *ab, QWidget *parent, const char *name ); | 59 | KAddressBookView( KABC::AddressBook *ab, QWidget *parent, const char *name ); |
60 | virtual ~KAddressBookView(); | 60 | virtual ~KAddressBookView(); |
61 | 61 | ||
62 | /** | 62 | /** |
63 | Must be overloaded in subclasses. Should return a list of | 63 | Must be overloaded in subclasses. Should return a list of |
64 | all the uids of selected contacts. | 64 | all the uids of selected contacts. |
65 | */ | 65 | */ |
66 | virtual QStringList selectedUids() = 0; | 66 | virtual QStringList selectedUids() = 0; |
67 | virtual void doSearch( const QString& s ,KABC::Field *field ) = 0; | 67 | virtual void doSearch( const QString& s ,KABC::Field *field ) = 0; |
68 | virtual void scrollUP() = 0; | 68 | virtual void scrollUP() = 0; |
69 | virtual void scrollDOWN() = 0; | 69 | virtual void scrollDOWN() = 0; |
70 | virtual void setFocusAV() = 0; | ||
70 | 71 | ||
71 | /** | 72 | /** |
72 | Called whenever this view should read the config. This can be used | 73 | Called whenever this view should read the config. This can be used |
73 | as a sign that the config has changed, therefore the view should | 74 | as a sign that the config has changed, therefore the view should |
74 | assume the worst and rebuild itself if necessary. For example, | 75 | assume the worst and rebuild itself if necessary. For example, |
75 | in a table view this method may be called when the user adds or | 76 | in a table view this method may be called when the user adds or |
76 | removes columns from the view. | 77 | removes columns from the view. |
77 | 78 | ||
78 | If overloaded in the subclass, do not forget to call super class's | 79 | If overloaded in the subclass, do not forget to call super class's |
79 | method. | 80 | method. |
80 | 81 | ||
81 | @param config The KConfig object to read from. The group will already | 82 | @param config The KConfig object to read from. The group will already |
82 | be set, so do not change the group. | 83 | be set, so do not change the group. |
83 | */ | 84 | */ |
84 | virtual void readConfig( KConfig *config ); | 85 | virtual void readConfig( KConfig *config ); |
85 | 86 | ||
86 | /** | 87 | /** |
87 | Called whenever this view should write the config. The view should not | 88 | Called whenever this view should write the config. The view should not |
88 | write out information handled by the application, such as which fields | 89 | write out information handled by the application, such as which fields |
89 | are visible. The view should only write out information specific | 90 | are visible. The view should only write out information specific |
90 | to itself (i.e.: All information in the ViewConfigWidget) | 91 | to itself (i.e.: All information in the ViewConfigWidget) |
91 | 92 | ||
92 | If overloaded in the subclass, do not forget to call the super class's | 93 | If overloaded in the subclass, do not forget to call the super class's |
93 | method. | 94 | method. |