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

kopete/libkopete

Kopete::ContactTaskBase

Kopete::ContactTaskBase Class Reference

#include <kopetecontacttaskbase.h>

Inheritance diagram for Kopete::ContactTaskBase:

Inheritance graph
[legend]

List of all members.


Detailed Description

Base tasks for all contact related tasks.

This class contains all the common code and data for all contact tasks.

Derived must implement tastType() to allow setContact() to automatically add the correct subtask from the protocol.

Author:
Michaƫl Larouche <larouche@kde.org>

Definition at line 38 of file kopetecontacttaskbase.h.


Public Member Functions

 ContactTaskBase (QObject *parent=0)
void setContact (Kopete::Contact *contact)
virtual ~ContactTaskBase ()

Protected Member Functions

Kopete::Contact * contact ()
virtual QString taskType () const =0

Constructor & Destructor Documentation

Kopete::ContactTaskBase::ContactTaskBase ( QObject *  parent = 0  )  [explicit]

Default constructor.

/ You must set the contact with setContact()

Definition at line 38 of file kopetecontacttaskbase.cpp.

Kopete::ContactTaskBase::~ContactTaskBase (  )  [virtual]

destructor

Definition at line 43 of file kopetecontacttaskbase.cpp.


Member Function Documentation

Kopete::Contact * Kopete::ContactTaskBase::contact (  )  [protected]

Get access to Kopete::Contact.

Returns:
a Kopete::Contact pointer.

Definition at line 61 of file kopetecontacttaskbase.cpp.

void Kopete::ContactTaskBase::setContact ( Kopete::Contact *  contact  ) 

Set the contact.

This method also add children tasks for the specific protocol. You don't need to do it yourself.

Definition at line 48 of file kopetecontacttaskbase.cpp.

virtual QString Kopete::ContactTaskBase::taskType (  )  const [protected, pure virtual]

Get the taskType.

This is the type of task from the devired class. Used by setContact()

Implemented in Kopete::DeleteContactTask.


The documentation for this class was generated from the following files:
  • kopetecontacttaskbase.h
  • kopetecontacttaskbase.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