kopete/libkopete
#include <kopetecontacttaskbase.h>
Public Member Functions | |
ContactTaskBase (QObject *parent=0) | |
virtual | ~ContactTaskBase () |
void | setContact (Kopete::Contact *contact) |
Public Member Functions inherited from Kopete::Task | |
Task (QObject *parent=0) | |
virtual | ~Task () |
void | addSubTask (KJob *task) |
virtual void | start () |
Protected Member Functions | |
Kopete::Contact * | contact () |
virtual QString | taskType () const =0 |
Additional Inherited Members | |
Public Types inherited from Kopete::Task | |
enum | KopeteTaskError { NoProtocolSubTaskError = KJob::UserDefinedError+1, NetworkUnavailableError } |
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.
Constructor & Destructor Documentation
|
explicit |
Default constructor.
/ You must set the contact with setContact()
Definition at line 38 of file kopetecontacttaskbase.cpp.
|
virtual |
destructor
Definition at line 43 of file kopetecontacttaskbase.cpp.
Member Function Documentation
|
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.
|
protectedpure 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:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.