diff -r 25fce757be94 -r e02eb84a14d2 usbuis/usbuinotif/inc/usbnotifier.h --- a/usbuis/usbuinotif/inc/usbnotifier.h Tue Aug 31 16:13:57 2010 +0300 +++ b/usbuis/usbuinotif/inc/usbnotifier.h Wed Sep 01 12:20:49 2010 +0100 @@ -20,6 +20,9 @@ #include #include #include +#include +#include +#include #include "usbuinotifdebug.h" // CONSTANTS // Literal resource filename @@ -35,7 +38,7 @@ * * @lib */ -NONSHARABLE_CLASS(CUSBUINotifierBase) : public CBase, public MEikSrvNotifierBase2 +NONSHARABLE_CLASS(CUSBUINotifierBase) : public CActive, public MEikSrvNotifierBase2 { public: // Constructors and destructor @@ -69,25 +72,52 @@ * @param aMessage Should be completed when the notifier is deactivated. * @return None. */ - virtual void StartDialogL(const TDesC8& aBuffer, TInt aReplySlot, + virtual void GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage)=0; /** + * A function for checking the status of Apps key. + * @param aEnable A Boolean according to Apps key status + * @return None. + */ + void SuppressAppSwitching(TBool aEnable); + + /** * Check if message needs to be completed and complete it * @param aReason The completetion code */ void CompleteMessage(TInt aReason); - /** - * Initialize HbTextResolrer, if not initialized before - * (checks it from TLS) - */ - void InitializeTextResolver(); - + /* + * Check whether the keylock is on. If yes turn it off. + * @since S60 3.2 + */ + void DisableKeylock(); + + /* + * Restore the keyguard on if it has been disabled by DisableKeylock. + * @since S60 3.2 + */ + void RestoreKeylock(); + protected: // Functions from base classes /** + * From CActive Gets called when a request completes. + * @param None. + * @return None. + */ + virtual void RunL()=0; + + /** + * From CActive Gets called when a leave occurres in RunL. + * @param aError Symbian OS errorcode. + * @return error code. + */ + virtual TInt RunError(TInt aError); + + /** * From MEikSrvNotifierBase2 Called when a notifier is first loaded * to allow any initial construction that is required. * @param None. @@ -101,7 +131,7 @@ * @param None. * @return None. */ - virtual void Cancel(); + virtual void Cancel(); private: // Functions from base classes @@ -146,8 +176,16 @@ */ virtual TPtrC8 UpdateL(const TDesC8& aBuffer); - - + /** + * From CActive Gets called when a request is cancelled. + * @param None. + * @return None. + */ + virtual void DoCancel(); + +private: + TBool iKeylockChanged; // Flag used to restore the keylock + RAknUiServer iAknServer; protected: // Data @@ -158,7 +196,10 @@ TInt iResourceFileFlag; // Flag for eikon env. TNotifierInfo iInfo; // Notifier parameters structure CEikonEnv* iEikEnv; // Local eikonenv, not own - TBool iTranslator ; + TBool iAppsKeyBlocked; // Apps key status + + TBool iCoverDisplaySupported; // Cover Display UI feature support + }; #endif // USBUINOTIFIER_H