coreapplicationuis/accfwuinotifier/inc/AccFwUiDialogNotifier.h
changeset 56 11a052f4b02e
parent 49 76883296a0d5
child 65 8a530a83576a
equal deleted inserted replaced
49:76883296a0d5 56:11a052f4b02e
     1 /*
       
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of accessory selection dialog.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CACCFWUIDIALOGNOTIFIER_H
       
    19 #define __CACCFWUIDIALOGNOTIFIER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include <eiknotapi.h>
       
    25 #include <badesca.h>
       
    26 #include <aknkeylock.h>
       
    27 
       
    28 // CONSTANTS
       
    29 const TUid KAccFwUiDialogNotifierUid={0x10205062};
       
    30 // MACROS
       
    31 
       
    32 // DATA TYPES
       
    33 
       
    34 // FUNCTION PROTOTYPES
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 
       
    38 class CCoeEnv;
       
    39 class CAknListQueryDialog;
       
    40 
       
    41 // CLASS DECLARATION
       
    42 /**
       
    43 *  Implementation of accessory selection dialog.
       
    44 *  @lib -
       
    45 *  @since S60 3.1
       
    46 */
       
    47 class CAccFwUiDialogNotifier : public CActive, public MEikSrvNotifierBase2
       
    48     {
       
    49     public:  // Constructors and destructor
       
    50         
       
    51         /**
       
    52         * Two-phased constructor.        
       
    53 		* @return The created object.
       
    54         */
       
    55         static CAccFwUiDialogNotifier* NewL();	                    
       
    56         
       
    57         ~CAccFwUiDialogNotifier();
       
    58         
       
    59     public: // From MEikSrvNotifierBase2
       
    60                 
       
    61         void Release();
       
    62 
       
    63         TNotifierInfo RegisterL();
       
    64 
       
    65         TNotifierInfo Info() const;
       
    66 
       
    67         TPtrC8 StartL(const TDesC8& aBuffer);
       
    68 
       
    69         void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    70 
       
    71         void Cancel();
       
    72 
       
    73         TPtrC8 UpdateL(const TDesC8& aBuffer);
       
    74 
       
    75 		//from CActive
       
    76 	
       
    77 		void RunL();
       
    78         TInt RunError(TInt aError);
       
    79 
       
    80 	protected:
       
    81 		//from CActive
       
    82 		void DoCancel();
       
    83 
       
    84                 
       
    85     private: // Functions
       
    86 
       
    87         /**
       
    88         * C++ default constructor.
       
    89         */
       
    90         CAccFwUiDialogNotifier();
       
    91 
       
    92         /**
       
    93         * By default Symbian 2nd phase constructor is private.
       
    94         */
       
    95         void ConstructL();
       
    96 	
       
    97     private:    // Data
       
    98     
       
    99     		//Notifier info
       
   100         TNotifierInfo iInfo;
       
   101         
       
   102         //resource file offset
       
   103         TInt iResourceFileOffset;
       
   104         
       
   105         //item list...
       
   106        	CDesCArray *iItemList;
       
   107         
       
   108         //selection dialog 
       
   109 		CAknListQueryDialog * iDialog;        
       
   110 		
       
   111 		//selections list
       
   112 		RArray<TInt> iSelections;	
       
   113 		
       
   114 		//for coverui
       
   115 		CArrayFixFlat<TInt>* iCoverUIITems;			
       
   116 		
       
   117 		//message to complete
       
   118 		RMessagePtr2 iMessage;
       
   119         
       
   120         //rmessage reply slot
       
   121         TInt iReplySlot;
       
   122         
       
   123         //is notifier cancelled
       
   124         TBool iIsCancelled;
       
   125         
       
   126         CCoeEnv* iCoeEnv;  // not owned
       
   127         
       
   128         RAknKeylock2 iServer;
       
   129         
       
   130         // Check if keys should be locked
       
   131         TBool iLockKeys;
       
   132         
       
   133         // Check if keys were locked
       
   134         TBool iWasLocked;
       
   135         
       
   136         // Error in connection to keylock server
       
   137         TInt iErr;
       
   138 
       
   139     };
       
   140 
       
   141 #endif      // __CACCFWUIDIALOGNOTIFIER_H
       
   142 
       
   143 // End of File
       
   144 
       
   145