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

akonadi/contact

  • Akonadi
  • ContactViewer
Public Slots | Signals | Public Member Functions
Akonadi::ContactViewer Class Reference

#include <contactviewer.h>

Inherits QWidget, and ItemMonitor.

List of all members.

Public Slots

void setContact (const Akonadi::Item &contact)
void setRawContact (const KABC::Addressee &contact)

Signals

void addressClicked (const KABC::Address &address)
void emailClicked (const QString &name, const QString &email)
void phoneNumberClicked (const KABC::PhoneNumber &number)
void smsClicked (const KABC::PhoneNumber &number)
void urlClicked (const KUrl &url)

Public Member Functions

 ContactViewer (QWidget *parent=0)
 ~ContactViewer ()
Akonadi::Item contact () const
KABC::Addressee rawContact () const
void setContactFormatter (AbstractContactFormatter *formatter)

Detailed Description

A viewer component for contacts in Akonadi.

This widgets provides a way to show a contact from the Akonadi storage or a raw contact object.

Examples:

 using namespace Akonadi;

 const Item contact = ...

 ContactViewer *viewer = new ContactViewer( this );
 viewer->setContact( contact );
 using namespace Akonadi;

 const KABC::Addressee contact = ...

 ContactViewer *viewer = new ContactViewer( this );
 viewer->setContact( contact );
Author:
Tobias Koenig tokoe.nosp@m.@kde.nosp@m..org
Since:
4.4

Definition at line 76 of file contactviewer.h.


Constructor & Destructor Documentation

ContactViewer::ContactViewer ( QWidget *  parent = 0)

Creates a new contact viewer.

Parameters:
parentThe parent widget.

Definition at line 219 of file contactviewer.cpp.

ContactViewer::~ContactViewer ( )

Destroys the contact viewer.

Definition at line 241 of file contactviewer.cpp.


Member Function Documentation

void Akonadi::ContactViewer::addressClicked ( const KABC::Address &  address) [signal]

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

Parameters:
addressThe corresponding address.
Akonadi::Item ContactViewer::contact ( ) const

Returns the contact that is currently displayed.

Note:
The returned contact is only valid if it was set with setContact() before.

Definition at line 246 of file contactviewer.cpp.

void Akonadi::ContactViewer::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 Akonadi::ContactViewer::phoneNumberClicked ( const KABC::PhoneNumber &  number) [signal]

This signal is emitted whenever the user has clicked on a phone number (that includes fax numbers as well) in the viewer.

Parameters:
numberThe corresponding phone number.
KABC::Addressee ContactViewer::rawContact ( ) const

Returns the raw contact that is currently displayed.

Since:
4.5

Definition at line 251 of file contactviewer.cpp.

void ContactViewer::setContact ( const Akonadi::Item &  contact) [slot]

Sets the contact that shall be displayed in the viewer.

Definition at line 264 of file contactviewer.cpp.

void ContactViewer::setContactFormatter ( AbstractContactFormatter *  formatter)

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

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 256 of file contactviewer.cpp.

void ContactViewer::setRawContact ( const KABC::Addressee &  contact) [slot]

Sets the raw contact object that shall be displayed in the viewer.

Since:
4.5

Definition at line 269 of file contactviewer.cpp.

void Akonadi::ContactViewer::smsClicked ( const KABC::PhoneNumber &  number) [signal]

This signal is emitted whenever the user has clicked on a SMS link of a phone number in the viewer.

Parameters:
numberThe corresponding phone number.
void Akonadi::ContactViewer::urlClicked ( const KUrl &  url) [signal]

This signal is emitted whenever the user has clicked on a url (e.g.

homepage or blog url) in the viewer.

Parameters:
urlThe url that has been clicked.

The documentation for this class was generated from the following files:
  • contactviewer.h
  • contactviewer.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:02:52 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi/contact

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

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 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