akonadi/contact
#include <contactviewer.h>
Inherits QWidget, and ItemMonitor.
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:
- 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
 - 
  
parent The parent widget.  
Definition at line 229 of file contactviewer.cpp.
| ContactViewer::~ContactViewer | ( | ) | 
Destroys the contact viewer.
Definition at line 251 of file contactviewer.cpp.
Member Function Documentation
      
  | 
  signal | 
This signal is emitted whenever the user has clicked on an address in the viewer.
- Parameters
 - 
  
address The 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 256 of file contactviewer.cpp.
      
  | 
  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.  
      
  | 
  signal | 
This signal is emitted whenever the user has clicked on a phone number (that includes fax numbers as well) in the viewer.
- Parameters
 - 
  
number The corresponding phone number.  
| KABC::Addressee ContactViewer::rawContact | ( | ) | const | 
Returns the raw contact that is currently displayed.
- Since
 - 4.5
 
Definition at line 261 of file contactviewer.cpp.
      
  | 
  slot | 
Sets the contact that shall be displayed in the viewer. 
Definition at line 275 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. 
- Parameters
 - 
  
formatter the contact formatter to set  
- Note
 - The contact viewer won't take ownership of the formatter.
 
- Since
 - 4.6
 
Definition at line 266 of file contactviewer.cpp.
      
  | 
  slot | 
Sets the raw contact object that shall be displayed in the viewer. 
- Parameters
 - 
  
contact the contact object to set  
- Since
 - 4.5
 
Definition at line 280 of file contactviewer.cpp.
      
  | 
  signal | 
This signal is emitted whenever the user has clicked on a SMS link of a phone number in the viewer.
- Parameters
 - 
  
number The corresponding phone number.  
      
  | 
  signal | 
This signal is emitted whenever the user has clicked on a url (e.g.
homepage or blog url) in the viewer.
- Parameters
 - 
  
url The url that has been clicked.  
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference