#include <AsyncCall.h>

Inheritance diagram for AsyncCall:
Collaboration diagram for AsyncCall:

Public Types

typedef RefCount< AsyncCallPointer
 

Public Member Functions

 AsyncCall (int aDebugSection, int aDebugLevel, const char *aName)
 
virtual ~AsyncCall ()
 
void make ()
 
bool cancel (const char *reason)
 
bool canceled ()
 
virtual CallDialergetDialer ()=0
 
void print (std::ostream &os)
 
void dequeue (AsyncCall::Pointer &head, AsyncCall::Pointer &prev)
 remove us from the queue; we are head unless we are queued after prev More...
 
void setNext (AsyncCall::Pointer aNext)
 
AsyncCall::PointerNext ()
 

Public Attributes

const char *const name
 
const int debugSection
 
const int debugLevel
 
const InstanceId< AsyncCallid
 

Protected Member Functions

virtual bool canFire ()
 
virtual void fire ()=0
 

Protected Attributes

AsyncCall::Pointer theNext
 

Private Member Functions

 AsyncCall ()
 
 AsyncCall (const AsyncCall &)
 

Private Attributes

const char * isCanceled
 

Friends

class AsyncCallQueue
 

Detailed Description

Todo:

add unique call IDs

CBDATA_CLASS kids

Definition at line 44 of file AsyncCall.h.

Member Typedef Documentation

Definition at line 47 of file AsyncCall.h.

Constructor & Destructor Documentation

AsyncCall::AsyncCall ( int  aDebugSection,
int  aDebugLevel,
const char *  aName 
)

Definition at line 21 of file AsyncCall.cc.

References debugLevel, debugs, debugSection, and name.

AsyncCall::~AsyncCall ( )
virtual

Definition at line 29 of file AsyncCall.cc.

References assert, and theNext.

AsyncCall::AsyncCall ( )
private
AsyncCall::AsyncCall ( const AsyncCall )
private

Member Function Documentation

bool AsyncCall::canceled ( )
inline

Definition at line 58 of file AsyncCall.h.

References isCanceled, and NULL.

Referenced by Downloader::doneAll().

bool AsyncCall::canFire ( )
protectedvirtual
void AsyncCall::dequeue ( AsyncCall::Pointer head,
AsyncCall::Pointer prev 
)

Definition at line 80 of file AsyncCall.cc.

References Next(), NULL, and setNext().

virtual void AsyncCall::fire ( )
protectedpure virtual
void AsyncCall::make ( )

Definition at line 35 of file AsyncCall.cc.

References canFire(), debugLevel, debugs, debugSection, fire(), HERE(), isCanceled, and name.

Referenced by AsyncCallQueue::fireNext().

AsyncCall::Pointer& AsyncCall::Next ( )
inline

Definition at line 71 of file AsyncCall.h.

References theNext.

Referenced by dequeue().

void AsyncCall::print ( std::ostream &  os)
Todo:
make this method const by providing a const getDialer()

Definition at line 70 of file AsyncCall.cc.

References getDialer(), and name.

Referenced by operator<<().

void AsyncCall::setNext ( AsyncCall::Pointer  aNext)
inline

Definition at line 67 of file AsyncCall.h.

References theNext.

Referenced by dequeue().

Friends And Related Function Documentation

friend class AsyncCallQueue
friend

Definition at line 48 of file AsyncCall.h.

Member Data Documentation

const InstanceId<AsyncCall> AsyncCall::id

Definition at line 79 of file AsyncCall.h.

const char* AsyncCall::isCanceled
private

Definition at line 89 of file AsyncCall.h.

Referenced by cancel(), canceled(), canFire(), and make().

const char* const AsyncCall::name

Definition at line 76 of file AsyncCall.h.

Referenced by AsyncCall(), cancel(), JobDialer< Job >::dial(), make(), and print().

AsyncCall::Pointer AsyncCall::theNext
protected

The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors