|
Nokia N97 SDK Example Applications Guide |
#include <applicationtriggeringconndlg.h>
Inheritance diagram for CApplicationTriggeringConnDlg:

Definition at line 30 of file applicationtriggeringconndlg.h.
Public Member Functions |
|
| ~CApplicationTriggeringConnDlg () | |
| void | RunL () |
| void | DoCancel () |
| void | StartL () |
Static Public Member Functions |
|
| static CApplicationTriggeringConnDlg * | NewL (MDataMobilityPrinter &aObserver) |
Private Member Functions |
|
| CApplicationTriggeringConnDlg (MDataMobilityPrinter &aObserver) | |
| void | ConstructL () |
| void | PrintL (TInt aResourceId) |
| void | PrintL (TInt aResourceId, TInt aInt) |
Private Attributes |
|
| MDataMobilityPrinter & | iObserver |
| RConnection | iConnection |
| RSocketServ | iSocketServer |
|
|
Destructor of StandardApplication. Definition at line 63 of file applicationtriggeringconndlg.cpp. References iConnection, and iSocketServer. 00064 { 00065 Cancel(); 00066 00067 iConnection.Close(); 00068 00069 iSocketServer.Close(); 00070 }
|
|
|
C++ default constructor. Definition at line 52 of file applicationtriggeringconndlg.cpp. Referenced by NewL(). 00053 : CActive( CActive::EPriorityStandard ), 00054 iObserver( aObserver ) 00055 { 00056 CActiveScheduler::Add( this ); 00057 }
|
|
|
NewL is first phase of two-phased constructor. Definition at line 28 of file applicationtriggeringconndlg.cpp. References CApplicationTriggeringConnDlg(). 00030 { 00031 CApplicationTriggeringConnDlg* self = 00032 new ( ELeave ) CApplicationTriggeringConnDlg( aObserver ); 00033 CleanupStack::PushL( self ); 00034 self->ConstructL(); 00035 CleanupStack::Pop( self ); 00036 return self; 00037 }
|
|
|
Start the connection. Definition at line 76 of file applicationtriggeringconndlg.cpp. References iConnection, iSocketServer, and PrintL(). 00077 { 00078 User::LeaveIfError( iConnection.Open( iSocketServer ) ); 00079 00080 TCommDbConnPref prefs; 00081 prefs.SetDialogPreference( ECommDbDialogPrefPrompt ); 00082 00083 PrintL( R_OUTPUT_PROMPT_CONNECTION_DIALOG ); 00084 00085 iConnection.Start( prefs, iStatus ); 00086 00087 SetActive(); 00088 }
|
|
|
By default Symbian OS constructor is private. Definition at line 43 of file applicationtriggeringconndlg.cpp. References iSocketServer. 00044 { 00045 User::LeaveIfError( iSocketServer.Connect() ); 00046 }
|
|
|
Helper method to send message to print to the observer.
Definition at line 125 of file applicationtriggeringconndlg.cpp. References iObserver, and MDataMobilityPrinter::Print(). Referenced by RunL(), and StartL(). 00126 { 00127 // Load a string from the resource file. 00128 HBufC* message = StringLoader::LoadL( aResourceId ); 00129 00130 iObserver.Print( *message ); 00131 00132 delete message; 00133 }
|
|
||||||||||||
|
Helper method to send message to print to the observer.
Definition at line 139 of file applicationtriggeringconndlg.cpp. References iObserver, and MDataMobilityPrinter::Print(). 00140 { 00141 // Load a string from the resource file. 00142 HBufC* message = StringLoader::LoadL( aResourceId, aInt ); 00143 00144 iObserver.Print( *message ); 00145 00146 delete message; 00147 }
|
|
© Nokia 2009 |