-rw-r--r-- | kabc/resource.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kabc/resource.h b/kabc/resource.h index 7d42f81..2024d2d 100644 --- a/kabc/resource.h +++ b/kabc/resource.h | |||
@@ -113,57 +113,59 @@ public: | |||
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 | /** | 132 | /** |
133 | * Set name of file to be used for saving. | 133 | * Set name of file to be used for saving. |
134 | */ | 134 | */ |
135 | virtual void setFileName( const QString & ); | 135 | virtual void setFileName( const QString & ); |
136 | 136 | ||
137 | /** | 137 | /** |
138 | * 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. |
139 | */ | 139 | */ |
140 | virtual QString fileName() const; | 140 | virtual QString fileName() const; |
141 | 141 | ||
142 | 142 | ||
143 | virtual bool isSyncable() const; | 143 | virtual bool isSyncable() const; |
144 | 144 | ||
145 | virtual KSyncProfile* getSyncProfile(); | ||
146 | |||
145 | /** | 147 | /** |
146 | * Set the name of resource.You can override this method, | 148 | * Set the name of resource.You can override this method, |
147 | * but also remember to call Resource::setResourceName(). | 149 | * but also remember to call Resource::setResourceName(). |
148 | */ | 150 | */ |
149 | virtual void setResourceName( const QString &name ); | 151 | virtual void setResourceName( const QString &name ); |
150 | 152 | ||
151 | 153 | ||
152 | 154 | ||
153 | protected: | 155 | protected: |
154 | Ticket *createTicket( Resource * ); | 156 | Ticket *createTicket( Resource * ); |
155 | virtual void doClose(); | 157 | virtual void doClose(); |
156 | 158 | ||
157 | private: | 159 | private: |
158 | AddressBook *mAddressBook; | 160 | AddressBook *mAddressBook; |
159 | KSyncProfile *mSyncProfile; | 161 | KSyncProfile *mSyncProfile; |
160 | QString mFileName; | 162 | QString mFileName; |
161 | 163 | ||
162 | }; | 164 | }; |
163 | 165 | ||
164 | 166 | ||
165 | } | 167 | } |
166 | 168 | ||
167 | 169 | ||
168 | 170 | ||
169 | #endif | 171 | #endif |