libkdepim
KPIM::AddresseeView Class Reference
List of all members.Detailed Description
Definition at line 43 of file addresseeview.h.
Public Types | |
enum | LinkMask { NoLinks = 0, AddressLinks = 1, EmailLinks = 2, PhoneLinks = 4, URLLinks = 8, IMLinks = 16, DefaultLinks = AddressLinks | EmailLinks | PhoneLinks | URLLinks | IMLinks } |
enum | FieldMask { NoFields = 0, BirthdayFields = 1, AddressFields = 2, EmailFields = 4, PhoneFields = 8, URLFields = 16, IMFields = 32, CustomFields = 64, DefaultFields = AddressFields | EmailFields | PhoneFields | URLFields } |
Signals | |
void | urlHighlighted (const QString &url) |
void | emailHighlighted (const QString &email) |
void | phoneNumberHighlighted (const QString &number) |
void | faxNumberHighlighted (const QString &number) |
void | highlightedMessage (const QString &message) |
void | addressClicked (const QString &uid) |
Public Member Functions | |
AddresseeView (QWidget *parent=0, const char *name=0, KConfig *config=0) | |
~AddresseeView () | |
void | setAddressee (const KABC::Addressee &addr) |
KABC::Addressee | addressee () const |
void | enableLinks (int linkMask) |
Static Public Member Functions | |
static QString | vCardAsHTML (const KABC::Addressee &addr,::KIMProxy *proxy, LinkMask linkMask=DefaultLinks, bool internalLoading=true, FieldMask fieldMask=DefaultFields) |
static QString | pixmapAsDataUrl (const QPixmap &pixmap) |
Protected Member Functions | |
virtual void | urlClicked (const QString &url) |
virtual void | emailClicked (const QString &mail) |
virtual void | phoneNumberClicked (const QString &number) |
virtual void | smsTextClicked (const QString &number) |
virtual void | sendSMS (const QString &number, const QString &msg) |
virtual void | faxNumberClicked (const QString &number) |
virtual void | imAddressClicked () |
virtual QPopupMenu * | createPopupMenu (const QPoint &) |
Member Enumeration Documentation
This enums are used by enableLinks to set which kind of links shall be enabled.
Definition at line 75 of file addresseeview.h.
This enums are used by vCardAsHTML to decide which fields shall be shown.
Definition at line 95 of file addresseeview.h.
Constructor & Destructor Documentation
AddresseeView::AddresseeView | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
KConfig * | config = 0 | |||
) |
Constructor.
- Parameters:
-
config The config object where the settings are stored which fields will be shown.
Definition at line 51 of file addresseeview.cpp.
Member Function Documentation
void AddresseeView::setAddressee | ( | const KABC::Addressee & | addr | ) |
Sets the addressee object.
The addressee is displayed immediately.
- Parameters:
-
addr The addressee object.
Definition at line 130 of file addresseeview.cpp.
KABC::Addressee AddresseeView::addressee | ( | ) | const |
void AddresseeView::enableLinks | ( | int | linkMask | ) |
Sets which parts of the contact shall be presented as links.
The mask can be OR'ed LinkMask. By default all links are enabled.
Definition at line 144 of file addresseeview.cpp.
QString AddresseeView::vCardAsHTML | ( | const KABC::Addressee & | addr, | |
::KIMProxy * | proxy, | |||
LinkMask | linkMask = DefaultLinks , |
|||
bool | internalLoading = true , |
|||
FieldMask | fieldMask = DefaultFields | |||
) | [static] |
Returns the HTML representation of a contact.
The HTML code looks like
- Parameters:
-
addr The addressee object. linkMask The mask for which parts of the contact will be displayed as links. The links looks like this: "addr://<addr id>" for addresses "mailto:<email address>" for emails "phone://<phone number>" for phone numbers "http://<url>" for urls "im:<im addrss>" for instant messaging addresses "sms://<phone number>" for sending a sms internalLoading If true, the loading of internal pictures is done automatically. fieldMask The mask for which fields of the contact will be displayed.
Definition at line 149 of file addresseeview.cpp.
QString AddresseeView::pixmapAsDataUrl | ( | const QPixmap & | pixmap | ) | [static] |
Encodes a QPixmap as a PNG into a data: URL (rfc2397), readable by the data kio protocol.
- Parameters:
-
pixmap the pixmap to encode
- Returns:
- a data: URL
Definition at line 484 of file addresseeview.cpp.
The documentation for this class was generated from the following files: