summaryrefslogtreecommitdiffabout
path: root/kaddressbook/kabcore.h
Unidiff
Diffstat (limited to 'kaddressbook/kabcore.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabcore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h
index e6f286b..c9c0d38 100644
--- a/kaddressbook/kabcore.h
+++ b/kaddressbook/kabcore.h
@@ -146,338 +146,339 @@ class KABCore : public QWidget, public KSyncInterface
146 void statusMessage(QString, int time = 0 ); 146 void statusMessage(QString, int time = 0 );
147 void showLicence(); 147 void showLicence();
148 void faq(); 148 void faq();
149 149
150 /** 150 /**
151 Is called whenever a contact is selected in the view. 151 Is called whenever a contact is selected in the view.
152 */ 152 */
153 void setContactSelected( const QString &uid ); 153 void setContactSelected( const QString &uid );
154 154
155 /** 155 /**
156 Opens the preferred mail composer with all selected contacts as 156 Opens the preferred mail composer with all selected contacts as
157 arguments. 157 arguments.
158 */ 158 */
159 void sendMail(); 159 void sendMail();
160 160
161 /** 161 /**
162 Opens the preferred mail composer with the given contacts as 162 Opens the preferred mail composer with the given contacts as
163 arguments. 163 arguments.
164 */ 164 */
165 void sendMail( const QString& email ); 165 void sendMail( const QString& email );
166 166
167 167
168 void mailVCard(); 168 void mailVCard();
169 void mailVCard(const QStringList& uids); 169 void mailVCard(const QStringList& uids);
170 170
171 /** 171 /**
172 Beams the "WhoAmI contact. 172 Beams the "WhoAmI contact.
173 */ 173 */
174 void beamMySelf(); 174 void beamMySelf();
175 175
176 void beamVCard(); 176 void beamVCard();
177 void export2phone(); 177 void export2phone();
178 void beamVCard(const QStringList& uids); 178 void beamVCard(const QStringList& uids);
179 void beamDone( Ir *ir ); 179 void beamDone( Ir *ir );
180 180
181 181
182 /** 182 /**
183 Starts the preferred web browser with the given URL as argument. 183 Starts the preferred web browser with the given URL as argument.
184 */ 184 */
185 void browse( const QString& url ); 185 void browse( const QString& url );
186 186
187 /** 187 /**
188 Select all contacts in the view. 188 Select all contacts in the view.
189 */ 189 */
190 void selectAllContacts(); 190 void selectAllContacts();
191 191
192 /** 192 /**
193 Deletes all selected contacts from the address book. 193 Deletes all selected contacts from the address book.
194 */ 194 */
195 void deleteContacts(); 195 void deleteContacts();
196 196
197 /** 197 /**
198 Deletes given contacts from the address book. 198 Deletes given contacts from the address book.
199 199
200 @param uids The uids of the contacts, which shall be deleted. 200 @param uids The uids of the contacts, which shall be deleted.
201 */ 201 */
202 void deleteContacts( const QStringList &uids ); 202 void deleteContacts( const QStringList &uids );
203 203
204 /** 204 /**
205 Copys the selected contacts into clipboard for later pasting. 205 Copys the selected contacts into clipboard for later pasting.
206 */ 206 */
207 void copyContacts(); 207 void copyContacts();
208 208
209 /** 209 /**
210 Cuts the selected contacts and stores them for later pasting. 210 Cuts the selected contacts and stores them for later pasting.
211 */ 211 */
212 void cutContacts(); 212 void cutContacts();
213 213
214 /** 214 /**
215 Paste contacts from clipboard into the address book. 215 Paste contacts from clipboard into the address book.
216 */ 216 */
217 void pasteContacts(); 217 void pasteContacts();
218 218
219 /** 219 /**
220 Paste given contacts into the address book. 220 Paste given contacts into the address book.
221 221
222 @param list The list of addressee, which shall be pasted. 222 @param list The list of addressee, which shall be pasted.
223 */ 223 */
224 void pasteContacts( KABC::Addressee::List &list ); 224 void pasteContacts( KABC::Addressee::List &list );
225 225
226 /** 226 /**
227 Sets the whoAmI contact, that is used by many other programs to 227 Sets the whoAmI contact, that is used by many other programs to
228 get personal information about the current user. 228 get personal information about the current user.
229 */ 229 */
230 void setWhoAmI(); 230 void setWhoAmI();
231 231
232 /** 232 /**
233 Displays the category dialog and applies the result to all 233 Displays the category dialog and applies the result to all
234 selected contacts. 234 selected contacts.
235 */ 235 */
236 void setCategories(); 236 void setCategories();
237 237
238 /** 238 /**
239 Sets the field list of the Incremental Search Widget. 239 Sets the field list of the Incremental Search Widget.
240 */ 240 */
241 void setSearchFields( const KABC::Field::List &fields ); 241 void setSearchFields( const KABC::Field::List &fields );
242 242
243 /** 243 /**
244 Search with the current search field for a contact, that matches 244 Search with the current search field for a contact, that matches
245 the given text, and selects it in the view. 245 the given text, and selects it in the view.
246 */ 246 */
247 void incrementalSearch( const QString& text ); 247 void incrementalSearch( const QString& text );
248 248
249 /** 249 /**
250 Marks the address book as modified. 250 Marks the address book as modified.
251 */ 251 */
252 void setModified(); 252 void setModified();
253 /** 253 /**
254 Marks the address book as modified without refreshing the view. 254 Marks the address book as modified without refreshing the view.
255 */ 255 */
256 void setModifiedWOrefresh(); 256 void setModifiedWOrefresh();
257 257
258 /** 258 /**
259 Marks the address book as modified concerning the argument. 259 Marks the address book as modified concerning the argument.
260 */ 260 */
261 void setModified( bool modified ); 261 void setModified( bool modified );
262 262
263 /** 263 /**
264 Returns whether the address book is modified. 264 Returns whether the address book is modified.
265 */ 265 */
266 bool modified() const; 266 bool modified() const;
267 267
268 /** 268 /**
269 Called whenever an contact is modified in the contact editor 269 Called whenever an contact is modified in the contact editor
270 dialog or the quick edit. 270 dialog or the quick edit.
271 */ 271 */
272 void contactModified( const KABC::Addressee &addr ); 272 void contactModified( const KABC::Addressee &addr );
273 273
274 /** 274 /**
275 DCOP METHODS. 275 DCOP METHODS.
276 */ 276 */
277 void addEmail( QString addr ); 277 void addEmail( QString addr );
278 void importVCard( const KURL& url, bool showPreview ); 278 void importVCard( const KURL& url, bool showPreview );
279 void importVCard( const QString& vCard, bool showPreview ); 279 void importVCard( const QString& vCard, bool showPreview );
280 void newContact(); 280 void newContact();
281 QString getNameByPhone( const QString& phone ); 281 QString getNameByPhone( const QString& phone );
282 /** 282 /**
283 END DCOP METHODS 283 END DCOP METHODS
284 */ 284 */
285 285
286 /** 286 /**
287 Saves the contents of the AddressBook back to disk. 287 Saves the contents of the AddressBook back to disk.
288 */ 288 */
289 void save(); 289 void save();
290 290
291 /** 291 /**
292 Undos the last command using the undo stack. 292 Undos the last command using the undo stack.
293 */ 293 */
294 void undo(); 294 void undo();
295 295
296 /** 296 /**
297 Redos the last command that was undone, using the redo stack. 297 Redos the last command that was undone, using the redo stack.
298 */ 298 */
299 void redo(); 299 void redo();
300 300
301 /** 301 /**
302 Shows the edit dialog for the given uid. If the uid is QString::null, 302 Shows the edit dialog for the given uid. If the uid is QString::null,
303 the method will try to find a selected addressee in the view. 303 the method will try to find a selected addressee in the view.
304 */ 304 */
305 void editContact( const QString &uid /*US = QString::null*/ ); 305 void editContact( const QString &uid /*US = QString::null*/ );
306//US added a second method without defaultparameter 306//US added a second method without defaultparameter
307 void editContact2(); 307 void editContact2();
308 308
309 /** 309 /**
310 Shows or edits the detail view for the given uid. If the uid is QString::null, 310 Shows or edits the detail view for the given uid. If the uid is QString::null,
311 the method will try to find a selected addressee in the view. 311 the method will try to find a selected addressee in the view.
312 */ 312 */
313 void executeContact( const QString &uid /*US = QString::null*/ ); 313 void executeContact( const QString &uid /*US = QString::null*/ );
314 314
315 /** 315 /**
316 Launches the configuration dialog. 316 Launches the configuration dialog.
317 */ 317 */
318 void openConfigDialog(); 318 void openConfigDialog();
319 319
320 /** 320 /**
321 Launches the ldap search dialog. 321 Launches the ldap search dialog.
322 */ 322 */
323 void openLDAPDialog(); 323 void openLDAPDialog();
324 324
325 /** 325 /**
326 Creates a KAddressBookPrinter, which will display the print 326 Creates a KAddressBookPrinter, which will display the print
327 dialog and do the printing. 327 dialog and do the printing.
328 */ 328 */
329 void print(); 329 void print();
330 330
331 /** 331 /**
332 Registers a new GUI client, so plugins can register its actions. 332 Registers a new GUI client, so plugins can register its actions.
333 */ 333 */
334 void addGUIClient( KXMLGUIClient *client ); 334 void addGUIClient( KXMLGUIClient *client );
335 335
336 void requestForNameEmailUidList(const QString& sourceChannel, const QString& sessionuid); 336 void requestForNameEmailUidList(const QString& sourceChannel, const QString& sessionuid);
337 void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid); 337 void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid);
338 void requestForBirthdayList(const QString& sourceChannel, const QString& sessionuid);
338 339
339 340
340 signals: 341 signals:
341 void contactSelected( const QString &name ); 342 void contactSelected( const QString &name );
342 void contactSelected( const QPixmap &pixmap ); 343 void contactSelected( const QPixmap &pixmap );
343 public slots: 344 public slots:
344 void setDetailsVisible( bool visible ); 345 void setDetailsVisible( bool visible );
345 void setDetailsToState(); 346 void setDetailsToState();
346 // void slotSyncMenu( int ); 347 // void slotSyncMenu( int );
347 private slots: 348 private slots:
348 void setJumpButtonBarVisible( bool visible ); 349 void setJumpButtonBarVisible( bool visible );
349 void importFromOL(); 350 void importFromOL();
350 void extensionModified( const KABC::Addressee::List &list ); 351 void extensionModified( const KABC::Addressee::List &list );
351 void extensionChanged( int id ); 352 void extensionChanged( int id );
352 void clipboardDataChanged(); 353 void clipboardDataChanged();
353 void updateActionMenu(); 354 void updateActionMenu();
354 void configureKeyBindings(); 355 void configureKeyBindings();
355 void removeVoice(); 356 void removeVoice();
356#ifdef KAB_EMBEDDED 357#ifdef KAB_EMBEDDED
357 void configureResources(); 358 void configureResources();
358#endif //KAB_EMBEDDED 359#endif //KAB_EMBEDDED
359 360
360 void slotEditorDestroyed( const QString &uid ); 361 void slotEditorDestroyed( const QString &uid );
361 void configurationChanged(); 362 void configurationChanged();
362 void addressBookChanged(); 363 void addressBookChanged();
363 364
364 private: 365 private:
365 void initGUI(); 366 void initGUI();
366 void initActions(); 367 void initActions();
367 368
368 AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent, 369 AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent,
369 const char *name = 0 ); 370 const char *name = 0 );
370 371
371 KXMLGUIClient *mGUIClient; 372 KXMLGUIClient *mGUIClient;
372 373
373 KABC::AddressBook *mAddressBook; 374 KABC::AddressBook *mAddressBook;
374 375
375 ViewManager *mViewManager; 376 ViewManager *mViewManager;
376 // QSplitter *mDetailsSplitter; 377 // QSplitter *mDetailsSplitter;
377 KDGanttMinimizeSplitter *mExtensionBarSplitter; 378 KDGanttMinimizeSplitter *mExtensionBarSplitter;
378 ViewContainer *mDetails; 379 ViewContainer *mDetails;
379 KDGanttMinimizeSplitter* mMiniSplitter; 380 KDGanttMinimizeSplitter* mMiniSplitter;
380 XXPortManager *mXXPortManager; 381 XXPortManager *mXXPortManager;
381 JumpButtonBar *mJumpButtonBar; 382 JumpButtonBar *mJumpButtonBar;
382 IncSearchWidget *mIncSearchWidget; 383 IncSearchWidget *mIncSearchWidget;
383 ExtensionManager *mExtensionManager; 384 ExtensionManager *mExtensionManager;
384 385
385 KCMultiDialog *mConfigureDialog; 386 KCMultiDialog *mConfigureDialog;
386 387
387#ifndef KAB_EMBEDDED 388#ifndef KAB_EMBEDDED
388 LDAPSearchDialog *mLdapSearchDialog; 389 LDAPSearchDialog *mLdapSearchDialog;
389#endif //KAB_EMBEDDED 390#endif //KAB_EMBEDDED
390 // QDict<AddresseeEditorDialog> mEditorDict; 391 // QDict<AddresseeEditorDialog> mEditorDict;
391 AddresseeEditorDialog *mEditorDialog; 392 AddresseeEditorDialog *mEditorDialog;
392 bool mReadWrite; 393 bool mReadWrite;
393 bool mModified; 394 bool mModified;
394 bool mIsPart; 395 bool mIsPart;
395 bool mMultipleViewsAtOnce; 396 bool mMultipleViewsAtOnce;
396 397
397 398
398 //US file menu 399 //US file menu
399 KAction *mActionMail; 400 KAction *mActionMail;
400 KAction *mActionBeam; 401 KAction *mActionBeam;
401 KAction *mActionExport2phone; 402 KAction *mActionExport2phone;
402 KAction* mActionPrint; 403 KAction* mActionPrint;
403 KAction* mActionNewContact; 404 KAction* mActionNewContact;
404 KAction *mActionSave; 405 KAction *mActionSave;
405 KAction *mActionEditAddressee; 406 KAction *mActionEditAddressee;
406 KAction *mActionMailVCard; 407 KAction *mActionMailVCard;
407 KAction *mActionBeamVCard; 408 KAction *mActionBeamVCard;
408 409
409 KAction *mActionQuit; 410 KAction *mActionQuit;
410 411
411 //US edit menu 412 //US edit menu
412 KAction *mActionCopy; 413 KAction *mActionCopy;
413 KAction *mActionCut; 414 KAction *mActionCut;
414 KAction *mActionPaste; 415 KAction *mActionPaste;
415 KAction *mActionSelectAll; 416 KAction *mActionSelectAll;
416 KAction *mActionUndo; 417 KAction *mActionUndo;
417 KAction *mActionRedo; 418 KAction *mActionRedo;
418 KAction *mActionDelete; 419 KAction *mActionDelete;
419 420
420 //US settings menu 421 //US settings menu
421 KAction *mActionConfigResources; 422 KAction *mActionConfigResources;
422 KAction *mActionConfigKAddressbook; 423 KAction *mActionConfigKAddressbook;
423 KAction *mActionConfigShortcuts; 424 KAction *mActionConfigShortcuts;
424 KAction *mActionConfigureToolbars; 425 KAction *mActionConfigureToolbars;
425 KAction *mActionKeyBindings; 426 KAction *mActionKeyBindings;
426 KToggleAction *mActionJumpBar; 427 KToggleAction *mActionJumpBar;
427 KToggleAction *mActionDetails; 428 KToggleAction *mActionDetails;
428 KAction *mActionWhoAmI; 429 KAction *mActionWhoAmI;
429 KAction *mActionCategories; 430 KAction *mActionCategories;
430 KAction *mActionAboutKAddressbook; 431 KAction *mActionAboutKAddressbook;
431 KAction *mActionLicence; 432 KAction *mActionLicence;
432 KAction *mActionFaq; 433 KAction *mActionFaq;
433 434
434 KAction *mActionDeleteView; 435 KAction *mActionDeleteView;
435 436
436 QPopupMenu *viewMenu; 437 QPopupMenu *viewMenu;
437 QPopupMenu *filterMenu; 438 QPopupMenu *filterMenu;
438 QPopupMenu *settingsMenu; 439 QPopupMenu *settingsMenu;
439 QPopupMenu *changeMenu; 440 QPopupMenu *changeMenu;
440//US QAction *mActionSave; 441//US QAction *mActionSave;
441 QPopupMenu *ImportMenu; 442 QPopupMenu *ImportMenu;
442 QPopupMenu *ExportMenu; 443 QPopupMenu *ExportMenu;
443 //LR additional methods 444 //LR additional methods
444 KAction *mActionRemoveVoice; 445 KAction *mActionRemoveVoice;
445 KAction * mActionImportOL; 446 KAction * mActionImportOL;
446 447
447#ifndef KAB_EMBEDDED 448#ifndef KAB_EMBEDDED
448 KAddressBookService *mAddressBookService; 449 KAddressBookService *mAddressBookService;
449#endif //KAB_EMBEDDED 450#endif //KAB_EMBEDDED
450 451
451 class KABCorePrivate; 452 class KABCorePrivate;
452 KABCorePrivate *d; 453 KABCorePrivate *d;
453 //US bool mBlockSaveFlag; 454 //US bool mBlockSaveFlag;
454 455
455#ifdef KAB_EMBEDDED 456#ifdef KAB_EMBEDDED
456 KAddressBookMain *mMainWindow; // should be the same like mGUIClient 457 KAddressBookMain *mMainWindow; // should be the same like mGUIClient
457#endif //KAB_EMBEDDED 458#endif //KAB_EMBEDDED
458 459
459 //this are the overwritten callbackmethods from the syncinterface 460 //this are the overwritten callbackmethods from the syncinterface
460 virtual bool sync(KSyncManager* manager, QString filename, int mode); 461 virtual bool sync(KSyncManager* manager, QString filename, int mode);
461 virtual bool syncExternal(KSyncManager* manager, QString resource); 462 virtual bool syncExternal(KSyncManager* manager, QString resource);
462 463
463 //called by the syncmanager to indicate that the work has to marked as dirty. 464 //called by the syncmanager to indicate that the work has to marked as dirty.
464 virtual void sync_setModified(); 465 virtual void sync_setModified();
465 //called by the syncmanager to ask if the dirty flag is set. 466 //called by the syncmanager to ask if the dirty flag is set.
466 virtual bool sync_isModified(); 467 virtual bool sync_isModified();
467 //called by the syncmanager to indicate that the work has to be saved. 468 //called by the syncmanager to indicate that the work has to be saved.
468 virtual void sync_save(); 469 virtual void sync_save();
469 470
470 // LR ******************************* 471 // LR *******************************
471 // sync stuff! 472 // sync stuff!
472 QPopupMenu *syncMenu; 473 QPopupMenu *syncMenu;
473 KSyncManager* syncManager; 474 KSyncManager* syncManager;
474 int mGlobalSyncMode; 475 int mGlobalSyncMode;
475 bool synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBook* remote,int mode); 476 bool synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBook* remote,int mode);
476 KABC::Addressee getLastSyncAddressee(); 477 KABC::Addressee getLastSyncAddressee();
477 QDateTime mLastAddressbookSync; 478 QDateTime mLastAddressbookSync;
478 int takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, int mode , bool full ); 479 int takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, int mode , bool full );
479 // ********************* 480 // *********************
480 481
481}; 482};
482 483
483#endif 484#endif