S60 5th Edition SDK Example Applications Guide |
#include <csasyncdocument.h>
Inheritance diagram for CCSAsyncDocument:
Definition at line 34 of file csasyncdocument.h.
Public Member Functions | |
virtual | ~CCSAsyncDocument () |
void | UpdateTime () |
void | StopClock () |
TTime | Time () const |
TBool | ClockActive () const |
CEikAppUi * | CreateAppUiL () |
Static Public Member Functions | |
static CCSAsyncDocument * | NewL (CEikApplication &aApp) |
static CCSAsyncDocument * | NewLC (CEikApplication &aApp) |
Private Member Functions | |
CCSAsyncDocument (CEikApplication &aApp) | |
void | ConstructL () |
Private Attributes | |
CCSAsyncRequestHandler * | iHandler |
|
~CCSAsyncDocument. Destructor. Destroys the object and release all memory objects. Definition at line 73 of file csasyncdocument.cpp. References iHandler. 00074 { 00075 delete iHandler; 00076 }
|
|
CCSAsyncDocument. C++ default constructor. Perform the first phase of two phase construction.
Definition at line 62 of file csasyncdocument.cpp. Referenced by NewLC().
|
|
NewL. Two-phased constructor. Constructs a CCSAsyncDocument for the AVKON application aApp using two phase construction, and returns a pointer to the created object.
Definition at line 28 of file csasyncdocument.cpp. References NewLC(). Referenced by CCSAsyncApplication::CreateDocumentL(). 00029 { 00030 CCSAsyncDocument* self = NewLC( aApp ); 00031 CleanupStack::Pop( self ); 00032 return self; 00033 }
|
|
NewLC. Two-phased constructor. Constructs a CCSAsyncDocument for the AVKON application aApp using two phase construction, and returns a pointer to the created object.
Definition at line 40 of file csasyncdocument.cpp. References CCSAsyncDocument(). Referenced by NewL(). 00041 { 00042 CCSAsyncDocument* self = new ( ELeave ) CCSAsyncDocument( aApp ); 00043 CleanupStack::PushL( self ); 00044 self->ConstructL(); 00045 return self; 00046 }
|
|
UpdateTime. Asks the time server to update this documents locally stored time. Definition at line 98 of file csasyncdocument.cpp. References iHandler, and CCSAsyncRequestHandler::RequestTime(). Referenced by CCSAsyncAppUi::HandleCommandL(). 00099 { 00100 iHandler->RequestTime(); 00101 }
|
|
StopClock. Stops the clock. Definition at line 108 of file csasyncdocument.cpp. References CCSAsyncRequestHandler::CancelRequest(), ClockActive(), and iHandler. Referenced by CCSAsyncAppUi::HandleCommandL(). 00109 { 00110 if ( ClockActive() ) 00111 { 00112 iHandler->CancelRequest() ; 00113 } 00114 }
|
|
Time. Returns the currently stored time.
Definition at line 121 of file csasyncdocument.cpp. References iHandler, and CCSAsyncRequestHandler::Time(). Referenced by CCSAsyncAppView::Draw().
|
|
ClockActive. Checks whether the clock has been started.
Definition at line 131 of file csasyncdocument.cpp. References iHandler. Referenced by StopClock(). 00132 { 00133 return iHandler->IsActive(); 00134 }
|
|
From CAknDocument, CreateAppUiL. Creates a CCSAsyncAppUi object and returns a pointer to it.
Definition at line 83 of file csasyncdocument.cpp. References iHandler, and CCSAsyncRequestHandler::NewL(). 00084 { 00085 // Create the application user interface, and return a pointer to it 00086 CCSAsyncAppUi* appUi = new ( ELeave ) CCSAsyncAppUi; 00087 CleanupStack::PushL( appUi ); 00088 iHandler = CCSAsyncRequestHandler::NewL( *appUi ); 00089 CleanupStack::Pop( appUi ) ; 00090 return appUi; 00091 }
|
|
ConstructL. Performs the second phase construction of a CCSAsyncDocument object. Definition at line 53 of file csasyncdocument.cpp.
|
|
iHandler, Active object for handling asynchronous requests. Owned by CCSAsyncDocument object. Definition at line 127 of file csasyncdocument.h. Referenced by ClockActive(), CreateAppUiL(), StopClock(), Time(), UpdateTime(), and ~CCSAsyncDocument(). |
© Nokia 2009 |