|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
#include <SIPExDoc.h>
Public Member Functions | |
| virtual | ~CSIPExDoc () |
| CSIPExEngine * | CreateEngineL (MSIPExGameObserver &aObserver) |
| CEikAppUi * | CreateAppUiL () |
| void | StoreInfoTextL (const TDesC &aText) |
| const TDesC & | InfoText () |
Static Public Member Functions | |
| static CSIPExDoc * | NewL (CEikApplication &aApp) |
Private Member Functions | |
| CSIPExDoc (CEikApplication &aApp) | |
| void | ConstructL () |
Private Attributes | |
| CSIPExEngine * | iEngine |
| HBufC * | iInfoText |
Definition at line 36 of file SIPExDoc.h.
|
|
Destructor. Definition at line 65 of file SIPExDoc.cpp. References iEngine, and iInfoText.
|
|
|
C++ default constructor.
Definition at line 33 of file SIPExDoc.cpp.
|
|
|
Two-phased constructor.
Definition at line 53 of file SIPExDoc.cpp. References CSIPExDoc(). 00054 { 00055 CSIPExDoc* self = new( ELeave ) CSIPExDoc( aApp ); 00056 00057 CleanupStack::PushL( self ); 00058 self->ConstructL(); 00059 CleanupStack::Pop(); 00060 00061 return self; 00062 }
|
|
|
Creates the application engine.
Definition at line 87 of file SIPExDoc.cpp. References iEngine, and CSIPExEngine::NewL(). 00088 { 00089 iEngine = CSIPExEngine::NewL( aObserver ); 00090 return iEngine; 00091 }
|
|
|
From CEikDocument Creates instance of appui class
Definition at line 76 of file SIPExDoc.cpp. 00077 { 00078 CSIPExAppUi* appUi = new ( ELeave ) CSIPExAppUi; 00079 return appUi; 00080 }
|
|
|
Info text is always stored in document. Text will be appended to existing info text unless max size is reached. In such situation oldest text will be removed.
Definition at line 97 of file SIPExDoc.cpp. References iInfoText. 00098 { 00099 __ASSERT_ALWAYS( 00100 ( aText.Length() + 1 ) < KMaxInfoLength, User::Leave( KErrArgument ) ); 00101 00102 TPtr ptext( iInfoText->Des() ); 00103 00104 TInt appendLen = aText.Length() + 1; // plus one is for line break 00105 00106 if ( ( appendLen + iInfoText->Length() ) > KMaxInfoLength ) 00107 { 00108 ptext.Delete( 0, appendLen ); 00109 } 00110 00111 ptext.Append( aText ); 00112 ptext.Append( CEditableText::ELineBreak ); 00113 }
|
|
|
Returns reference to current info text Definition at line 119 of file SIPExDoc.cpp. References iInfoText. 00120 { 00121 return *iInfoText; 00122 }
|
|
|
By default Symbian 2nd phase constructor is private. Definition at line 43 of file SIPExDoc.cpp. References iInfoText. 00044 { 00045 iInfoText = HBufC::NewL( KMaxInfoLength ); 00046 }
|
|
© Nokia 2006 |