--- a/secsrv_plat/security_code_ui_api/inc/SecUiCodeQueryDialog.h Tue Aug 31 16:04:40 2010 +0300
+++ b/secsrv_plat/security_code_ui_api/inc/SecUiCodeQueryDialog.h Wed Sep 01 12:19:59 2010 +0100
@@ -17,12 +17,15 @@
*
*/
+
#ifndef __SECUICODEQUERYDIALOG__
#define __SECUICODEQUERYDIALOG__
+#include <aknquerydialog.h>
+#include <aknnotedialog.h>
#include <secui.hrh>
-class CCodeQueryDialog : public CBase
+class CCodeQueryDialog : public CAknTextQueryDialog
{
public://construction and destruction
/**
@@ -37,7 +40,73 @@
* Destructor.
*/
~CCodeQueryDialog();
+ public:
+ /**
+ * Allows dismissing of code queries. Only mandatory requirement is that PIN
+ * queries are dismissed by the #
+ *
+ * @param aKeyEvent TKeyEvent&
+ * @return ETrue query is dismissed
+ * EFalse not dismissed
+ */
+ TBool NeedToDismissQueryL(const TKeyEvent& aKeyEvent);
+ /**
+ * Calls the dialog's TryExitL and passes the reason given as a parameter.
+ *
+ * @param TInt aReason (The reason for the cancel request)
+ */
+ void TryCancelQueryL(TInt aReason);
+ protected://from CAknTextQueryDialog
+ /**
+ * From CAknTextQueryDialog This function is called by the UIKON dialog framework
+ * just before the dialog is activated, after it has called
+ * PreLayoutDynInitL() and the dialog has been sized.
+ */
+ void PreLayoutDynInitL();
+ /**
+ * From CAknTextQueryDialog This function is called by the UIKON framework
+ * if the user activates a button in the button panel.
+ * It is not called if the Cancel button is activated,
+ * unless the EEikDialogFlagNotifyEsc flag is set.
+ * @param aButtonId The ID of the button that was activated
+ * @return Should return ETrue if the dialog should exit, and EFalse if it should not.
+ */
+ TBool OkToExitL(TInt aButtonId);
+ /**
+ * From CAknTextQueryDialog This function is called by the UIKON dialog framework
+ * just after a key is pressed
+ * @param aKeyEvent TKeyEvent&
+ * @param aType TEventCode
+ */
+ TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
+ /**
+ * From MAknQueryControlObeserver; overrides the default implementation in CAknQueryDialog.
+ * Gets called by framework when editor sends state event
+ */
+ TBool HandleQueryEditorStateEventL(CAknQueryControl* aQueryControl, TQueryControlEvent aEventType, TQueryValidationStatus aStatus);
+
+ TBool CheckIfEntryTextOk() const;
+
+ void UpdateLeftSoftKeyL();
+ private:
+ void ShowWarningNoteL();
+
+ /*
+ * SetIncallBubbleAllowedInUsualL
+ */
+ void SetIncallBubbleAllowedInUsualL(TBool aAllowed);
+
+ private: // DATA
+ TInt iMinLength;
+ TInt iMaxLength;
+ TInt iMode;
+ TBool iFront;
+ TInt iAppKey;
+ TInt iVoiceKey1;
+ TInt iVoiceKey2;
+ TInt iEndKey;
+ TBool iIsRemoteLockQuery;
};
#endif