• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/libkopete

Kopete::UI::AddressBookLinkWidget

Kopete::UI::AddressBookLinkWidget Class Reference

#include <addressbooklinkwidget.h>

Inheritance diagram for Kopete::UI::AddressBookLinkWidget:

Inheritance graph
[legend]

List of all members.


Detailed Description

A compact widget for showing and changing which address book item a particular Kopete::MetaContact is related to.

Comprises a label showing the contact's name, a Clear button, and a Change button that usually invokes the AddressBookSelectorWidget.

Definition at line 44 of file addressbooklinkwidget.h.


Signals

void addresseeChanged (const KABC::Addressee &addr)
void selectAddresseeClicked ()

Public Member Functions

 AddressBookLinkWidget (QWidget *parent=0, const char *name=0)
void setAddressee (const KABC::Addressee &addr)
void setMetaContact (const Kopete::MetaContact *)
QString uid () const
 ~AddressBookLinkWidget ()

Protected Slots

void slotClearAddressee ()
void slotSelectAddressee ()

Constructor & Destructor Documentation

Kopete::UI::AddressBookLinkWidget::AddressBookLinkWidget ( QWidget *  parent = 0,
const char *  name = 0 
) [explicit]

Definition at line 41 of file addressbooklinkwidget.cpp.

Kopete::UI::AddressBookLinkWidget::~AddressBookLinkWidget (  )  [inline]

Definition at line 49 of file addressbooklinkwidget.h.


Member Function Documentation

void Kopete::UI::AddressBookLinkWidget::addresseeChanged ( const KABC::Addressee &  addr  )  [signal]

Emitted when the selected addressee changed.

addr is the KABC::Addressee that was selected. If addr.isEmpty() is empty, the clear button was clicked.

void Kopete::UI::AddressBookLinkWidget::selectAddresseeClicked (  )  [signal]

Provided so you can perform your own actions instead of opening the AddressBookSelectorWidget.

To do so, QObject::disconnect() btnSelectAddressee and connect your own slot to this signal

void Kopete::UI::AddressBookLinkWidget::setAddressee ( const KABC::Addressee &  addr  ) 

Set the currently selected addressee.

Definition at line 51 of file addressbooklinkwidget.cpp.

void Kopete::UI::AddressBookLinkWidget::setMetaContact ( const Kopete::MetaContact *  mc  ) 

Set the current metacontact so that the selector dialog may be preselected.

Definition at line 57 of file addressbooklinkwidget.cpp.

void Kopete::UI::AddressBookLinkWidget::slotClearAddressee (  )  [protected, slot]

Definition at line 67 of file addressbooklinkwidget.cpp.

void Kopete::UI::AddressBookLinkWidget::slotSelectAddressee (  )  [protected, slot]

Definition at line 76 of file addressbooklinkwidget.cpp.

QString Kopete::UI::AddressBookLinkWidget::uid (  )  const

Return the selected addressbook UID.

Definition at line 62 of file addressbooklinkwidget.cpp.


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

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
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