|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
#include <BrCtlSampleAppQueryDialog.h>
Public Member Functions | |
| CBrCtlSampleAppQueryDialog (TDes &aDefInput, HBufC *&aRetBuf) | |
| virtual | ~CBrCtlSampleAppQueryDialog () |
Private Member Functions | |
| void | PreLayoutDynInitL () |
| TBool | OkToExitL (TInt aKeycode) |
| TBool | HandleQueryEditorStateEventL (CAknQueryControl *aQueryControl, TQueryControlEvent aEventType, TQueryValidationStatus aStatus) |
Private Attributes | |
| HBufC *& | iRetBuf |
Definition at line 32 of file BrCtlSampleAppQueryDialog.h.
|
||||||||||||
|
C++ default constructor.
Definition at line 27 of file BrCtlSampleAppQueryDialog.cpp. 00028 : CAknTextQueryDialog( aDefInput ) 00029 , iRetBuf( aRetBuf ) 00030 { 00031 }
|
|
|
Destructor. Definition at line 46 of file BrCtlSampleAppQueryDialog.h.
|
|
|
Fills the edwins with default values. Definition at line 37 of file BrCtlSampleAppQueryDialog.cpp. 00038 { 00039 CAknTextQueryDialog::PreLayoutDynInitL(); 00040 00041 MakeLeftSoftkeyVisible( ETrue ); 00042 }
|
|
|
Set the password if the user pressed Ok.
Definition at line 48 of file BrCtlSampleAppQueryDialog.cpp. References iRetBuf. 00049 { 00050 switch ( aKeycode ) 00051 { 00052 case EAknSoftkeyOk: 00053 { 00054 CAknQueryControl* control = QueryControl(); 00055 00056 __ASSERT_DEBUG( control, User::Panic( KNullDesC, KErrGeneral ) ); 00057 00058 iRetBuf = HBufC::NewL( control->GetTextLength() + 1); 00059 TPtr temp( iRetBuf->Des() ); 00060 control->GetText( temp ); 00061 temp.ZeroTerminate(); 00062 } 00063 // no break !!! same return value 00064 case EAknSoftkeyCancel: 00065 return ETrue; 00066 default: 00067 return EFalse; 00068 } 00069 }
|
|
© Nokia 2006 |