akonadi
Akonadi::ContactGroupViewer Class Reference
A viewer component for contact groups in Akonadi. More...
#include <contactgroupviewer.h>
Inheritance diagram for Akonadi::ContactGroupViewer:

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 );
- Since:
- 4.4
Definition at line 57 of file contactgroupviewer.h.
Constructor & Destructor Documentation
Akonadi::ContactGroupViewer::ContactGroupViewer | ( | QWidget * | parent = 0 | ) |
Creates a new contact group viewer.
- Parameters:
-
parent The parent widget.
Akonadi::ContactGroupViewer::~ContactGroupViewer | ( | ) |
Destroys the contact group viewer.
Member Function Documentation
Akonadi::Item Akonadi::ContactGroupViewer::contactGroup | ( | ) | const |
Returns the contact group that is currently displayed.
void Akonadi::ContactGroupViewer::emailClicked | ( | const QString & | name, |
const QString & | |||
) | [signal] |
This signal is emitted whenever the user has clicked on an email address in the viewer.
- Parameters:
-
name The name of the contact. email The plain email address of the contact.
void Akonadi::ContactGroupViewer::setContactGroup | ( | const Akonadi::Item & | group | ) | [slot] |
Sets the contact group
that shall be displayed in the viewer.
void Akonadi::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
The documentation for this class was generated from the following file: