--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/coreapplicationuis/accfwuinotifier/inc/AccFwUiDialogNotifier.h Tue Feb 02 10:12:00 2010 +0200
@@ -0,0 +1,145 @@
+/*
+* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Implementation of accessory selection dialog.
+*
+*/
+
+#ifndef __CACCFWUIDIALOGNOTIFIER_H
+#define __CACCFWUIDIALOGNOTIFIER_H
+
+// INCLUDES
+#include <e32std.h>
+#include <e32base.h>
+#include <eiknotapi.h>
+#include <badesca.h>
+#include <aknkeylock.h>
+
+// CONSTANTS
+const TUid KAccFwUiDialogNotifierUid={0x10205062};
+// MACROS
+
+// DATA TYPES
+
+// FUNCTION PROTOTYPES
+
+// FORWARD DECLARATIONS
+
+class CCoeEnv;
+class CAknListQueryDialog;
+
+// CLASS DECLARATION
+/**
+* Implementation of accessory selection dialog.
+* @lib -
+* @since S60 3.1
+*/
+class CAccFwUiDialogNotifier : public CActive, public MEikSrvNotifierBase2
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ * @return The created object.
+ */
+ static CAccFwUiDialogNotifier* NewL();
+
+ ~CAccFwUiDialogNotifier();
+
+ public: // From MEikSrvNotifierBase2
+
+ void Release();
+
+ TNotifierInfo RegisterL();
+
+ TNotifierInfo Info() const;
+
+ TPtrC8 StartL(const TDesC8& aBuffer);
+
+ void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
+
+ void Cancel();
+
+ TPtrC8 UpdateL(const TDesC8& aBuffer);
+
+ //from CActive
+
+ void RunL();
+ TInt RunError(TInt aError);
+
+ protected:
+ //from CActive
+ void DoCancel();
+
+
+ private: // Functions
+
+ /**
+ * C++ default constructor.
+ */
+ CAccFwUiDialogNotifier();
+
+ /**
+ * By default Symbian 2nd phase constructor is private.
+ */
+ void ConstructL();
+
+ private: // Data
+
+ //Notifier info
+ TNotifierInfo iInfo;
+
+ //resource file offset
+ TInt iResourceFileOffset;
+
+ //item list...
+ CDesCArray *iItemList;
+
+ //selection dialog
+ CAknListQueryDialog * iDialog;
+
+ //selections list
+ RArray<TInt> iSelections;
+
+ //for coverui
+ CArrayFixFlat<TInt>* iCoverUIITems;
+
+ //message to complete
+ RMessagePtr2 iMessage;
+
+ //rmessage reply slot
+ TInt iReplySlot;
+
+ //is notifier cancelled
+ TBool iIsCancelled;
+
+ CCoeEnv* iCoeEnv; // not owned
+
+ RAknKeylock2 iServer;
+
+ // Check if keys should be locked
+ TBool iLockKeys;
+
+ // Check if keys were locked
+ TBool iWasLocked;
+
+ // Error in connection to keylock server
+ TInt iErr;
+
+ };
+
+#endif // __CACCFWUIDIALOGNOTIFIER_H
+
+// End of File
+
+