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

kget

dht::AnnounceTask

dht::AnnounceTask Class Reference

#include <announcetask.h>

Inheritance diagram for dht::AnnounceTask:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Joris Guisson <joris.guisson@gmail.com>

Definition at line 45 of file announcetask.h.


Public Member Functions

 AnnounceTask (Database *db, RPCServer *rpc, Node *node, const dht::Key &info_hash, bt::Uint16 port)
virtual void callFinished (RPCCall *c, MsgBase *rsp)
virtual void callTimeout (RPCCall *c)
bool takeItem (DBItem &item)
virtual void update ()
virtual ~AnnounceTask ()

Constructor & Destructor Documentation

dht::AnnounceTask::AnnounceTask ( Database *  db,
RPCServer *  rpc,
Node *  node,
const dht::Key &  info_hash,
bt::Uint16  port 
)

Definition at line 31 of file announcetask.cpp.

dht::AnnounceTask::~AnnounceTask (  )  [virtual]

Definition at line 36 of file announcetask.cpp.


Member Function Documentation

void dht::AnnounceTask::callFinished ( RPCCall *  c,
MsgBase *  rsp 
) [virtual]

A call is finished and a response was received.

Parameters:
c The call
rsp The response

Implements dht::Task.

Definition at line 40 of file announcetask.cpp.

void dht::AnnounceTask::callTimeout ( RPCCall *  c  )  [virtual]

A call timedout.

Parameters:
c The call

Implements dht::Task.

Definition at line 99 of file announcetask.cpp.

bool dht::AnnounceTask::takeItem ( DBItem &  item  ) 

Take one item from the returned values.

Returns false if there is no item to take.

Parameters:
item The item
Returns:
false if no item to take, true else

Definition at line 154 of file announcetask.cpp.

void dht::AnnounceTask::update (  )  [virtual]

Will continue the task, this will be called every time we have rpc slots available for this task.

Should be implemented by derived classes.

Implements dht::Task.

Definition at line 104 of file announcetask.cpp.


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

kget

Skip menu "kget"
  • 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