securitydialogs/SecUi/Inc/SecQueryUi.h
branchGCC_SURGE
changeset 40 604cd42065d1
parent 37 7bad16cccaca
equal deleted inserted replaced
29:b63e8c2d8cff 40:604cd42065d1
    23 #include <hb/hbcore/hbdevicedialogsymbian.h>    // MHbDeviceDialogObserver
    23 #include <hb/hbcore/hbdevicedialogsymbian.h>    // MHbDeviceDialogObserver
    24 #include <etelmm.h>
    24 #include <etelmm.h>
    25 #include <e32property.h>
    25 #include <e32property.h>
    26 
    26 
    27 #define ESecUiTypeMask  0x0FFFFFF
    27 #define ESecUiTypeMask  0x0FFFFFF
       
    28 #define ESecUiBasicTypeMask    0x00F0000
    28 
    29 
    29 #define ESecUiCancelSupported  0x1000000
    30 #define ESecUiCancelSupported  0x1000000
    30 #define ESecUiCancelNotSupported  0x0000000
    31 #define ESecUiCancelNotSupported  0x0000000
    31 
    32 
    32 #define ESecUiEmergencySupported  0x2000000
    33 #define ESecUiEmergencySupported  0x2000000
    35 #define ESecUiAlphaSupported  0x4000000
    36 #define ESecUiAlphaSupported  0x4000000
    36 #define ESecUiAlphaNotSupported  0x0000000
    37 #define ESecUiAlphaNotSupported  0x0000000
    37 
    38 
    38 #define ESecUiSecretSupported  0x8000000
    39 #define ESecUiSecretSupported  0x8000000
    39 #define ESecUiSecretNotSupported  0x0000000
    40 #define ESecUiSecretNotSupported  0x0000000
       
    41 
       
    42 #define ESecUiBasicTypeCheck   0x0010000
       
    43 #define ESecUiBasicTypeMultiCheck   0x0020000
    40 
    44 
    41 class MSecQueryUiCertificateDetailsProvider;
    45 class MSecQueryUiCertificateDetailsProvider;
    42 class MSecQueryUiDrmDetailsProvider;
    46 class MSecQueryUiDrmDetailsProvider;
    43 class CHbDeviceDialogSymbian;
    47 class CHbDeviceDialogSymbian;
    44 class CHbSymbianVariantMap;
    48 class CHbSymbianVariantMap;
    45 class CActiveSchedulerWait;
    49 class CActiveSchedulerWait;
    46 class CApaMaskedBitmap;
    50 class CApaMaskedBitmap;
       
    51 
       
    52 typedef TBuf<80> TSecUiPassword;
       
    53 
       
    54 enum R_SECUI_ERROR_CODES
       
    55 	{
       
    56 	R_CODE_ERROR=0x58ED0100,
       
    57 	R_SEC_BLOCKED,
       
    58 	R_CONFIRMATION_NOTE,
       
    59 	R_PIN_CODE_CHANGED_NOTE,
       
    60 	R_PIN2_CODE_CHANGED_NOTE,
       
    61 	R_PIN2_REJECTED,
       
    62 	R_UPIN_CODE_CHANGED_NOTE,
       
    63 	R_SIM_NOT_ALLOWED,
       
    64 	R_SIM_ALLREADY_OFF,
       
    65 	R_SIM_OFF,
       
    66 	R_SIM_ALLREADY_ON,
       
    67 	R_OPERATION_NOT_ALLOWED,
       
    68 	R_SECUI_TEXT_AUTOLOCK_MUST_BE_ACTIVE,
       
    69 	R_PIN_NOT_ALLOWED,
       
    70 	R_REMOTELOCK_INVALID_CODE,
       
    71 	R_SIM_ON,
       
    72 	R_INSERT_SIM,
       
    73 	R_CODES_DONT_MATCH,
       
    74 	R_PIN_BLOCKED_NOTE,
       
    75 	R_UPIN_NOT_ALLOWED,
       
    76 	R_SECURITY_CODE_CHANGED_NOTE,
       
    77 	R_SECUI_ERROR_CODE_LAST
       
    78 	};
    47 
    79 
    48 /**
    80 /**
    49  * CSecQueryUi provides UI dialogs for SW installation. UI dialogs are
    81  * CSecQueryUi provides UI dialogs for SW installation. UI dialogs are
    50  * global and they can be used in a non-UI code (like in SIF plugins).
    82  * global and they can be used in a non-UI code (like in SIF plugins).
    51  * SW install device dialog plugin implements the UI dialogs.
    83  * SW install device dialog plugin implements the UI dialogs.
    52  *
    84  *
    53  * @lib SecQueryUi.lib
    85  * @lib SecQueryUi.lib
    54  * @since 10.1
    86  * @since 10.1
    55  */
    87  */
       
    88 typedef TBuf<80> TSecUiPassword;
       
    89 
    56 class CSecQueryUi : public CActive, public MHbDeviceDialogObserver
    90 class CSecQueryUi : public CActive, public MHbDeviceDialogObserver
    57     {
    91     {
    58     public:  // constructor and destructor
    92     public:  // constructor and destructor
    59         /**
    93         /**
    60          * Creates new CSecQueryUi object and pushes it into cleanup stack.
    94          * Creates new CSecQueryUi object and pushes it into cleanup stack.
   204         CActiveSchedulerWait* iWait;
   238         CActiveSchedulerWait* iWait;
   205         TBool iIsDisplayingDialog;
   239         TBool iIsDisplayingDialog;
   206         TInt iCompletionCode;
   240         TInt iCompletionCode;
   207         TInt iReturnValue;
   241         TInt iReturnValue;
   208 public:
   242 public:
   209 	      RMobilePhone::TMobilePassword iPassword;
   243 	   // previoulsy it was RMobilePhone::TMobilePassword iPassword; but this was only 10 bytes
       
   244         TSecUiPassword iPassword;
   210     };
   245     };
   211 
   246 
   212 
   247 
   213 #endif  // C_SECQUERYUI_H
   248 #endif  // C_SECQUERYUI_H
   214 
   249