-rw-r--r-- | kabc/resource.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/kabc/resource.h b/kabc/resource.h index db806a6..7d42f81 100644 --- a/kabc/resource.h +++ b/kabc/resource.h | |||
@@ -108,59 +108,48 @@ public: | |||
108 | * Load all addressees to the addressbook | 108 | * Load all addressees to the addressbook |
109 | */ | 109 | */ |
110 | virtual bool load(); | 110 | virtual bool load(); |
111 | 111 | ||
112 | /** | 112 | /** |
113 | * Save all addressees to the addressbook. | 113 | * Save all addressees to the addressbook. |
114 | * | 114 | * |
115 | * @param ticket The ticket you get by @ref requestSaveTicket() | 115 | * @param ticket The ticket you get by @ref requestSaveTicket() |
116 | */ | 116 | */ |
117 | virtual bool save( Ticket *ticket ); | 117 | virtual bool save( Ticket *ticket ); |
118 | 118 | ||
119 | /** | 119 | /** |
120 | * Removes a addressee from resource. This method is mainly | 120 | * Removes a addressee from resource. This method is mainly |
121 | * used by record-based resources like LDAP or SQL. | 121 | * used by record-based resources like LDAP or SQL. |
122 | */ | 122 | */ |
123 | virtual void removeAddressee( const Addressee& addr ); | 123 | virtual void removeAddressee( const Addressee& addr ); |
124 | 124 | ||
125 | 125 | ||
126 | /** | 126 | /** |
127 | * This method is called by an error handler if the application | 127 | * This method is called by an error handler if the application |
128 | * crashed | 128 | * crashed |
129 | */ | 129 | */ |
130 | virtual void cleanUp(); | 130 | virtual void cleanUp(); |
131 | 131 | ||
132 | |||
133 | /** | ||
134 | * This method returns the number of elements that are currently in the resource. | ||
135 | */ | ||
136 | virtual int count() const; | ||
137 | |||
138 | /** | ||
139 | * This method removes all elements from the resource!! (Not from the addressbook) | ||
140 | */ | ||
141 | virtual bool clear(); | ||
142 | |||
143 | /** | 132 | /** |
144 | * Set name of file to be used for saving. | 133 | * Set name of file to be used for saving. |
145 | */ | 134 | */ |
146 | virtual void setFileName( const QString & ); | 135 | virtual void setFileName( const QString & ); |
147 | 136 | ||
148 | /** | 137 | /** |
149 | * Return name of file used for loading and saving the address book. | 138 | * Return name of file used for loading and saving the address book. |
150 | */ | 139 | */ |
151 | virtual QString fileName() const; | 140 | virtual QString fileName() const; |
152 | 141 | ||
153 | 142 | ||
154 | virtual bool isSyncable() const; | 143 | virtual bool isSyncable() const; |
155 | 144 | ||
156 | /** | 145 | /** |
157 | * Set the name of resource.You can override this method, | 146 | * Set the name of resource.You can override this method, |
158 | * but also remember to call Resource::setResourceName(). | 147 | * but also remember to call Resource::setResourceName(). |
159 | */ | 148 | */ |
160 | virtual void setResourceName( const QString &name ); | 149 | virtual void setResourceName( const QString &name ); |
161 | 150 | ||
162 | 151 | ||
163 | 152 | ||
164 | protected: | 153 | protected: |
165 | Ticket *createTicket( Resource * ); | 154 | Ticket *createTicket( Resource * ); |
166 | virtual void doClose(); | 155 | virtual void doClose(); |