CCardGameDealer Class Reference

Inheritance diagram for CCardGameDealer:

CCardGameBase CScabbyQueenDealer

List of all members.

Public Member Functions

 ~CCardGameDealer ()
void ShuffleCards (TDesC8 &aCards)
void DealCardsL (TDesC8 &aCards)

Public Attributes

RArray< TInetAddr > iRemoteNames

Protected Member Functions

void ConstructL (RArray< TInetAddr > &aRemoteNames, RSocket &aSocket)
virtual void SendComplete (TInt aError)=0
virtual void RecvComplete (TInetAddr aRecvAddr, TInt aError)=0
virtual void TimerComplete ()=0


Detailed Description

CCardGameDealer is derived from CCardGameBase, the virtual functions from the base class are not implemented in this class but are implemented in the derived class. When created, an array of addresses is passed in along with an RSocket that is passed to the base class. This class has concrete implementations of functions that shuffle and deal cards.

Definition at line 29 of file cardgamedealer.h.


Constructor & Destructor Documentation

CCardGameDealer::~CCardGameDealer (  ) 

D'tor

Definition at line 27 of file cardgamedealer.cpp.


Member Function Documentation

void CCardGameDealer::ConstructL ( RArray< TInetAddr > &  aRemoteNames,
RSocket &  aSocket 
) [protected]

Constructor, takes remote name array and calls base constructor.

Definition at line 34 of file cardgamedealer.cpp.

void CCardGameDealer::ShuffleCards ( TDesC8 &  aCards  ) 

A function that takes a deck of cards in the form of a descriptor and shuffles the cards in a random manner.

Parameters:
aCards Cards to be shuffled

Definition at line 47 of file cardgamedealer.cpp.

void CCardGameDealer::DealCardsL ( TDesC8 &  aCards  ) 

A function that takes a deck of cards in the form of a descriptor, and deals out the cards using the RSocket connection.

Parameters:
aCards A pack of cards

Definition at line 107 of file cardgamedealer.cpp.


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