Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Akonadi Contacts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
Akonadi Contacts
Commits
a6fa5ca0
Commit
a6fa5ca0
authored
Sep 09, 2009
by
Tobias Koenig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend apidocs by examples
svn path=/trunk/KDE/kdepimlibs/; revision=1021506
parent
b6c39858
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
213 additions
and
2 deletions
+213
-2
akonadi/contact/addressbookcombobox.h
akonadi/contact/addressbookcombobox.h
+20
-0
akonadi/contact/addressbookselectiondialog.h
akonadi/contact/addressbookselectiondialog.h
+19
-0
akonadi/contact/contacteditor.h
akonadi/contact/contacteditor.h
+38
-0
akonadi/contact/contactgroupeditor.h
akonadi/contact/contactgroupeditor.h
+39
-1
akonadi/contact/contactgroupeditordialog.h
akonadi/contact/contactgroupeditordialog.h
+35
-1
akonadi/contact/contactgroupviewer.h
akonadi/contact/contactgroupviewer.h
+16
-0
akonadi/contact/contactgroupviewerdialog.h
akonadi/contact/contactgroupviewerdialog.h
+15
-0
akonadi/contact/contactviewer.h
akonadi/contact/contactviewer.h
+16
-0
akonadi/contact/contactviewerdialog.h
akonadi/contact/contactviewerdialog.h
+15
-0
No files found.
akonadi/contact/addressbookcombobox.h
View file @
a6fa5ca0
...
...
@@ -35,6 +35,26 @@ namespace Akonadi {
/**
* @short A combobox for selecting an Akonadi address book.
*
* This widget provides a combobox to select an address book
* collection from the Akonadi storage.
* The available address books can be filtered to show only
* address books that can contain contacts, contact groups or both.
*
* Example:
*
* @code
*
* using namespace Akonadi;
*
* AddressBookComboBox *box = new AddressBookComboBox( AddressBookComboBox::All,
* AddressBookComboBox::Readable, this );
*
* ...
*
* const Collection addressBook = box->selectedAddressBook();
*
* @endcode
*
* @author Tobias Koenig <tokoe@kde.org>
* @since 4.4
*/
...
...
akonadi/contact/addressbookselectiondialog.h
View file @
a6fa5ca0
...
...
@@ -34,6 +34,25 @@ class Collection;
/**
* @short A dialog to select an address book in Akonadi.
*
* This dialog provides a combobox to select an address book
* collection from the Akonadi storage.
* The available address books can be filtered to show only
* address books that can contain contacts, contact groups or both.
*
* Example:
*
* @code
*
* using namespace Akonadi;
*
* AddressBookSelectionDialog dlg( AddressBookSelectionDialog::All, this );
* if ( dlg.exec() ) {
* const Collection addressBook = dlg.selectedAddressBook();
* ...
* }
*
* @endcode
*
* @author Tobias Koenig <tokoe@kde.org>
* @since 4.4
*/
...
...
akonadi/contact/contacteditor.h
View file @
a6fa5ca0
...
...
@@ -35,6 +35,44 @@ class Item;
/**
* @short An widget to edit contacts in Akonadi.
*
* This widget provides a way to create a new contact or edit
* an existing contact in Akonadi.
*
* Example for creating a new contact:
*
* @code
*
* using namespace Akonadi;
*
* ContactEditor *editor = new ContactEditor( Akonadi::ContactEditor::CreateMode, this );
*
* ...
*
* if ( !editor->saveContact() ) {
* qDebug() << "Unable to save new contact to storage";
* return;
* }
*
* @endcode
*
* Example for editing an existing contact:
*
* @code
*
* const Akonadi::Item contact = ...;
*
* ContactEditor *editor = new ContactEditor( Akonadi::ContactEditor::EditMode, this );
* editor->loadContact( contact );
*
* ...
*
* if ( !editor->saveContact() ) {
* qDebug() << "Unable to save changed contact to storage";
* return;
* }
*
* @endcode
*
* @author Tobias Koenig <tokoe@kde.org>
* @since 4.4
*/
...
...
akonadi/contact/contactgroupeditor.h
View file @
a6fa5ca0
...
...
@@ -32,7 +32,45 @@ class Collection;
class
Item
;
/**
* @short An editor for contact groups.
* @short An widget to edit contact groups in Akonadi.
*
* This widget provides a way to create a new contact group or edit
* an existing contact group in Akonadi.
*
* Example for creating a new contact group:
*
* @code
*
* using namespace Akonadi;
*
* ContactGroupEditor *editor = new ContactGroupEditor( Akonadi::ContactGroupEditor::CreateMode, this );
*
* ...
*
* if ( !editor->saveContactGroup() ) {
* qDebug() << "Unable to save new contact group to storage";
* return;
* }
*
* @endcode
*
* Example for editing an existing contact group:
*
* @code
*
* const Akonadi::Item contactGroup = ...;
*
* ContactGroupEditor *editor = new ContactGroupEditor( Akonadi::ContactGroupEditor::EditMode, this );
* editor->loadContactGroup( contactGroup );
*
* ...
*
* if ( !editor->saveContactGroup() ) {
* qDebug() << "Unable to save changed contact group to storage";
* return;
* }
*
* @endcode
*
* @author Tobias Koenig <tokoe@kde.org>
* @since 4.4
...
...
akonadi/contact/contactgroupeditordialog.h
View file @
a6fa5ca0
...
...
@@ -34,7 +34,41 @@ class Item;
class
ContactGroupEditor
;
/**
* @short A dialog for editing a contact group.
* @short A dialog for creating or editing a contact group in Akonadi.
*
* This dialog provides a way to create a new contact group or edit
* an existing contact group in Akonadi.
*
* Example for creating a new contact group:
*
* @code
*
* Akonadi::ContactGroupEditorDialog dlg( Akonadi::ContactGroupEditorDialog::CreateMode, this );
*
* if ( dlg.exec() ) {
* qDebug() << "New contact group has been added to the address book";
* } else {
* qDebug() << "User has canceled operation";
* }
*
* @endcode
*
* Example for editing an existing contact group:
*
* @code
*
* const Akonadi::Item contactGroup = ...;
*
* Akonadi::ContactGroupEditorDialog dlg( Akonadi::ContactGroupEditorDialog::EditMode, this );
* dlg.setContactGroup( contactGroup );
*
* if ( dlg.exec() ) {
* qDebug() << "Contact group has been edited";
* } else {
* qDebug() << "User has canceled operation";
* }
*
* @endcode
*
* @author Tobias Koenig <tokoe@kde.org>
* @since 4.4
...
...
akonadi/contact/contactgroupviewer.h
View file @
a6fa5ca0
...
...
@@ -33,6 +33,22 @@ namespace Akonadi {
/**
* @short A viewer component for contact groups in Akonadi.
*
* This widgets provides a way to show a contact group from the
* Akonadi storage.
*
* Example:
*
* @code
*
* using namespace Akonadi;
*
* const Item group = ...
*
* ContactGroupViewer *viewer = new ContactGroupViewer( this );
* viewer->setContactGroup( group );
*
* @endcode
*
* @author Tobias Koenig <tokoe@kde.org>
* @since 4.4
*/
...
...
akonadi/contact/contactgroupviewerdialog.h
View file @
a6fa5ca0
...
...
@@ -33,6 +33,21 @@ class Item;
/**
* @short A dialog for displaying a contact group in Akonadi.
*
* This dialog provides a way to show a contact group from the
* Akonadi storage.
*
* Example:
*
* @code
*
* const Akonadi::Item group = ...
*
* Akonadi::ContactGroupViewerDialog dlg( this );
* dlg.setContactGroup( group );
* dlg.exec();
*
* @endcode
*
* @author Tobias Koenig <tokoe@kde.org>
* @since 4.4
*/
...
...
akonadi/contact/contactviewer.h
View file @
a6fa5ca0
...
...
@@ -33,6 +33,22 @@ namespace Akonadi {
/**
* @short A viewer component for contacts in Akonadi.
*
* This widgets provides a way to show a contact from the
* Akonadi storage.
*
* Example:
*
* @code
*
* using namespace Akonadi;
*
* const Item contact = ...
*
* ContactViewer *viewer = new ContactViewer( this );
* viewer->setContact( contact );
*
* @endcode
*
* @author Tobias Koenig <tokoe@kde.org>
* @since 4.4
*/
...
...
akonadi/contact/contactviewerdialog.h
View file @
a6fa5ca0
...
...
@@ -33,6 +33,21 @@ class Item;
/**
* @short A dialog for displaying a contact in Akonadi.
*
* This dialog provides a way to show a contact from the
* Akonadi storage.
*
* Example:
*
* @code
*
* const Akonadi::Item contact = ...
*
* Akonadi::ContactViewerDialog dlg( this );
* dlg.setContact( contact );
* dlg.exec();
*
* @endcode
*
* @author Tobias Koenig <tokoe@kde.org>
* @since 4.4
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment