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

kopete/libkopete

  • Kopete
  • ContactTaskBase
Public Member Functions | Protected Member Functions | List of all members
Kopete::ContactTaskBase Class Referenceabstract

#include <kopetecontacttaskbase.h>

Inheritance diagram for Kopete::ContactTaskBase:
Inheritance graph
[legend]

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.

Author
Michaƫl Larouche larou.nosp@m.che@.nosp@m.kde.o.nosp@m.rg

Definition at line 38 of file kopetecontacttaskbase.h.

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
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:
  • kopetecontacttaskbase.h
  • kopetecontacttaskbase.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

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

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal