kopete/libkopete
Kopete::ContactTaskBase Class Reference
#include <kopetecontacttaskbase.h>

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.
Definition at line 38 of file kopetecontacttaskbase.h.
Public Member Functions | |
| ContactTaskBase (QObject *parent=0) | |
| virtual | ~ContactTaskBase () |
| void | setContact (Kopete::Contact *contact) |
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] |
Member Function Documentation
| 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.
| Kopete::Contact * Kopete::ContactTaskBase::contact | ( | ) | [protected] |
Get access to Kopete::Contact.
- Returns:
- a Kopete::Contact pointer.
Definition at line 61 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:
KDE 4.0 API Reference