|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
#include <ChatBase.h>
Inheritance diagram for CChatBase:

Public Member Functions | |
| CChatBase (MLog &aLog) | |
| virtual | ~CChatBase () |
| void | SetServer (TBool aServerMode) |
| TBool | Server () |
| void | SetState (TChatState aState) |
| TInt | State () |
| TBool | IsConnected () |
| TBool | IsConnecting () |
| TBool | IsSendingMessage () |
| TBool | IsReadyToSendMessage () |
Static Public Member Functions | |
| static CChatBase * | NewL (MLog &aLog) |
| static CChatBase * | NewLC (MLog &aLog) |
Protected Member Functions | |
| void | DoCancel () |
| void | RunL () |
Private Member Functions | |
| void | ConstructL () |
Private Attributes | |
| TChatState | iState |
| MLog & | iLog |
| TBool | iServerMode |
Definition at line 58 of file ChatBase.h.
|
|
CChatBase() Constructs this object
Definition at line 66 of file ChatBase.cpp. 00067 : CActive( CActive::EPriorityStandard ), 00068 iState( EWaitingToGetDevice ), 00069 iLog( aLog ), 00070 iServerMode( EFalse ) 00071 { 00072 CActiveScheduler::Add( this ); 00073 }
|
|
|
~CChatBase() Destroy the object and release all memory objects. Close any open sockets. Definition at line 80 of file ChatBase.cpp.
|
|
|
NewL() Construct a CChatClient
Reimplemented in CChatBt, and CChatInet. Definition at line 31 of file ChatBase.cpp. References NewLC(). 00032 { 00033 CChatBase* self = NewLC( aLog ); 00034 CleanupStack::Pop( self ); 00035 return self; 00036 }
|
|
|
NewLC() Construct a CChatClient
Reimplemented in CChatBt, and CChatInet. Definition at line 43 of file ChatBase.cpp. References CChatBase(). 00044 { 00045 CChatBase* self = new ( ELeave ) CChatBase( aLog ); 00046 CleanupStack::PushL( self ); 00047 self->ConstructL (); 00048 return self; 00049 }
|
|
|
SetServer() Set servermode
Definition at line 120 of file ChatBase.cpp. References iServerMode. 00121 { 00122 iServerMode = aServerMode; 00123 }
|
|
|
Server() Get Servermode
Definition at line 110 of file ChatBase.cpp. References iServerMode. 00111 { 00112 return iServerMode; 00113 }
|
|
|
SetState() Set state
Definition at line 130 of file ChatBase.cpp. References iState. 00131 { 00132 iState = aState; 00133 }
|
|
|
State() Get State
Definition at line 140 of file ChatBase.cpp. References iState. 00141 { 00142 return iState; 00143 }
|
|
Definition at line 160 of file ChatBase.cpp. References State().
|
|
Definition at line 171 of file ChatBase.cpp. References State(). 00172 { 00173 return ( ( State() == EGettingDevice ) 00174 || 00175 ( State() == EGettingService ) 00176 || 00177 ( State() == EGettingConnection ) 00178 || 00179 ( State() == EConnecting ) 00180 ); 00181 }
|
|
Definition at line 188 of file ChatBase.cpp. References State(). 00189 { 00190 return ( State() == ESendingMessage ); 00191 }
|
|
Definition at line 150 of file ChatBase.cpp. References State(). 00151 { 00152 return ( State() == EConnected ); 00153 }
|
|
|
DoCancel() Cancel any outstanding requests Reimplemented in CChatBt, and CChatInet. Definition at line 90 of file ChatBase.cpp.
|
|
|
RunL() Respond to an event Reimplemented in CChatBt, and CChatInet. Definition at line 100 of file ChatBase.cpp.
|
|
|
ConstructL() Performs second phase construction of this object Reimplemented in CChatBt, and CChatInet. Definition at line 56 of file ChatBase.cpp.
|
|
|
iState the current state of the client Definition at line 178 of file ChatBase.h. |
|
|
iLog the log to send output to Reimplemented in CChatBt, and CChatInet. Definition at line 183 of file ChatBase.h. |
|
|
iServerMode indicates server mode Definition at line 188 of file ChatBase.h. |
|
© Nokia 2006 |