CCardGameBase Class Reference

Inheritance diagram for CCardGameBase:

CCardGameDealer CCardGamePlayer CScabbyQueenDealer CScabbyQueenPlayer

List of all members.

Public Member Functions

 ~CCardGameBase ()
void BaseSendTo (TDesC8 &aDes, TInetAddr aAddr)
void BaseRecvFrom (TDes8 &aDes)
void BaseCancelSendTo ()
void BaseCancelRecvFrom ()
void BaseCancelAll ()
void StartTimer (TInt aDuration)
void StopTimer ()
virtual void SendComplete (TInt aError)=0
virtual void RecvComplete (TInetAddr aRecvAddr, TInt aError)=0
virtual void TimerComplete ()=0

Public Attributes

RSocket iSocket

Protected Member Functions

void ConstructL (RSocket &aSocket)


Detailed Description

CCardGameBase is the base class to which CCardGameDealer, CCardGamePlayer and the user created classes will derive from. It has pointer to active objects that perform operations on the RSocket that was passed in when the concrete object was created.

Definition at line 30 of file cardgamebase.h.


Constructor & Destructor Documentation

CCardGameBase::~CCardGameBase (  ) 

Destructor.

Definition at line 25 of file cardgamebase.cpp.


Member Function Documentation

void CCardGameBase::BaseSendTo ( TDesC8 &  aDes,
TInetAddr  aAddr 
)

Concrete function to send a descriptor to specified address. Calls back to SendComplete

Parameters:
aDes Reference to descriptor to send
aAddr Address to send to

Definition at line 50 of file cardgamebase.cpp.

void CCardGameBase::BaseRecvFrom ( TDes8 &  aDes  ) 

Concrete function to recv a descriptor of specified length. Calls back to RecvComplete.

Parameters:
aLength Length of descriptor to recv

Definition at line 61 of file cardgamebase.cpp.

void CCardGameBase::BaseCancelSendTo (  ) 

Function that cancels send operation

Definition at line 69 of file cardgamebase.cpp.

void CCardGameBase::BaseCancelRecvFrom (  ) 

Function that cancels a recv operation.

Definition at line 76 of file cardgamebase.cpp.

void CCardGameBase::BaseCancelAll (  ) 

Function to cancel all outstanding active objects.

Definition at line 83 of file cardgamebase.cpp.

void CCardGameBase::StartTimer ( TInt  aDuration  ) 

Concrete function that takes a time in milliseconds and starts a timer that will result in a call back to TimerComplete.

Parameters:
aDuration Duration of timer

Definition at line 97 of file cardgamebase.cpp.

void CCardGameBase::ConstructL ( RSocket &  aSocket  )  [protected]

Construction

Reimplemented in CCardGamePlayer.

Definition at line 34 of file cardgamebase.cpp.


Generated on Thu Jan 21 10:33:03 2010 for TB10.1 Example Applications by  doxygen 1.5.3