• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.9.1 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • ContactGroupEditorDialog
Public Types | Signals | Public Member Functions | Protected Slots
Akonadi::ContactGroupEditorDialog Class Reference

#include <contactgroupeditordialog.h>

Inherits KDialog.

List of all members.

Public Types

enum  Mode { CreateMode, EditMode }

Signals

void contactGroupStored (const Akonadi::Item &group)

Public Member Functions

 ContactGroupEditorDialog (Mode mode, QWidget *parent=0)
 ~ContactGroupEditorDialog ()
ContactGroupEditor * editor () const
void setContactGroup (const Akonadi::Item &group)
void setDefaultAddressBook (const Akonadi::Collection &addressbook)

Protected Slots

virtual void slotButtonClicked (int button)

Detailed Description

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:

using namespace Akonadi;
ContactGroupEditorDialog *dlg = new ContactGroupEditorDialog( ContactGroupEditorDialog::CreateMode, this );
connect( dlg, SIGNAL( contactGroupStored( const Akonadi::Item& ) ),
this, SLOT( contactGroupStored( const Akonadi::Item& ) ) );
dlg->show();

Example for editing an existing contact group:

using namespace Akonadi;
const Item contactGroup = ...;
ContactGroupEditorDialog *dlg = new ContactGroupEditorDialog( ContactGroupEditorDialog::EditMode, this );
connect( dlg, SIGNAL( contactGroupStored( const Akonadi::Item& ) ),
this, SLOT( contactGroupStored( const Akonadi::Item& ) ) );
dlg->setContactGroup( contactGroup );
dlg->show();
Author:
Tobias Koenig tokoe.nosp@m.@kde.nosp@m..org
Since:
4.4

Definition at line 75 of file contactgroupeditordialog.h.


Member Enumeration Documentation

enum Akonadi::ContactGroupEditorDialog::Mode

Describes the mode of the contact group editor.

Enumerator:
CreateMode 

Creates a new contact group.

EditMode 

Edits an existing contact group.

Definition at line 83 of file contactgroupeditordialog.h.


Constructor & Destructor Documentation

Akonadi::ContactGroupEditorDialog::ContactGroupEditorDialog ( Mode  mode,
QWidget *  parent = 0 
)
explicit

Creates a new contact group editor dialog.

Parameters:
modeThe mode of the dialog.
parentThe parent widget of the dialog.
Akonadi::ContactGroupEditorDialog::~ContactGroupEditorDialog ( )

Destroys the contact group editor dialog.


Member Function Documentation

void Akonadi::ContactGroupEditorDialog::contactGroupStored ( const Akonadi::Item &  group)
signal

This signal is emitted whenever a contact group was updated or stored.

Parameters:
groupThe contact group.
ContactGroupEditor* Akonadi::ContactGroupEditorDialog::editor ( ) const

Returns the ContactGroupEditor that is used by the dialog.

void Akonadi::ContactGroupEditorDialog::setContactGroup ( const Akonadi::Item &  group)

Sets the contact group to edit when in EditMode.

void Akonadi::ContactGroupEditorDialog::setDefaultAddressBook ( const Akonadi::Collection &  addressbook)

Sets the addressbook that shall be selected as default for storage in create mode.


The documentation for this class was generated from the following file:
  • contactgroupeditordialog.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:06:30 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs-4.9.1 API Reference

Skip menu "kdepimlibs-4.9.1 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal