author | ulf69 <ulf69> | 2004-10-07 01:10:30 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-10-07 01:10:30 (UTC) |
commit | f434ef382b60c1a420dd0e037d119d082e478491 (patch) (unidiff) | |
tree | c68247486b6f714d0d8e01d8b503a4d36c9325e3 /kaddressbook/kabcore.h | |
parent | 3338b7239dc2e5cdff95ebc76b6905e6385a5833 (diff) | |
download | kdepimpi-f434ef382b60c1a420dd0e037d119d082e478491.zip kdepimpi-f434ef382b60c1a420dd0e037d119d082e478491.tar.gz kdepimpi-f434ef382b60c1a420dd0e037d119d082e478491.tar.bz2 |
added methods to collect birthday data via QCop (from kopi)
-rw-r--r-- | kaddressbook/kabcore.h | 1 |
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 | |||
@@ -242,192 +242,193 @@ class KABCore : public QWidget, public KSyncInterface | |||
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 | ||