• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

akonadi/contact

  • Akonadi
  • ContactGroupViewer
Public Slots | Signals | Public Member Functions

Akonadi::ContactGroupViewer Class Reference

A viewer component for contact groups in Akonadi. More...

#include <contactgroupviewer.h>

Inherits QWidget, and Akonadi::ItemMonitor.

List of all members.

Public Slots

void setContactGroup (const Akonadi::Item &group)

Signals

void emailClicked (const QString &name, const QString &email)

Public Member Functions

 ContactGroupViewer (QWidget *parent=0)
 ~ContactGroupViewer ()
Akonadi::Item contactGroup () const
void setContactGroupFormatter (AbstractContactGroupFormatter *formatter)

Detailed Description

A viewer component for contact groups in Akonadi.

This widgets provides a way to show a contact group from the Akonadi storage.

Example:

 using namespace Akonadi;

 const Item group = ...

 ContactGroupViewer *viewer = new ContactGroupViewer( this );
 viewer->setContactGroup( group );
Author:
Tobias Koenig <tokoe@kde.org>
Since:
4.4

Definition at line 57 of file contactgroupviewer.h.


Constructor & Destructor Documentation

ContactGroupViewer::ContactGroupViewer ( QWidget *  parent = 0)

Creates a new contact group viewer.

Parameters:
parentThe parent widget.

Definition at line 154 of file contactgroupviewer.cpp.

ContactGroupViewer::~ContactGroupViewer ( )

Destroys the contact group viewer.

Definition at line 172 of file contactgroupviewer.cpp.


Member Function Documentation

Akonadi::Item ContactGroupViewer::contactGroup ( ) const

Returns the contact group that is currently displayed.

Definition at line 177 of file contactgroupviewer.cpp.

void Akonadi::ContactGroupViewer::emailClicked ( const QString &  name,
const QString &  email 
) [signal]

This signal is emitted whenever the user has clicked on an email address in the viewer.

Parameters:
nameThe name of the contact.
emailThe plain email address of the contact.
void ContactGroupViewer::setContactGroup ( const Akonadi::Item &  group) [slot]

Sets the contact group that shall be displayed in the viewer.

Definition at line 182 of file contactgroupviewer.cpp.

void ContactGroupViewer::setContactGroupFormatter ( AbstractContactGroupFormatter *  formatter)

Sets the contact group formatter that should be used for formatting the contact group.

If formatter is 0, the standard formatter will be used.

Note:
The contact viewer won't take ownership of the formatter.
Since:
4.6

Definition at line 187 of file contactgroupviewer.cpp.


The documentation for this class was generated from the following files:
  • contactgroupviewer.h
  • contactgroupviewer.cpp

akonadi/contact

Skip menu "akonadi/contact"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • 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
Generated for KDE-PIM Libraries by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal