securitydialogs/secuidialognotifier/inc/secuidialogs.h
changeset 59 881d92421467
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/securitydialogs/secuidialognotifier/inc/secuidialogs.h	Tue Sep 28 14:03:54 2010 +0300
@@ -0,0 +1,72 @@
+/*
+* Copyright (c) 2010 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:  CSecuiDialogs active object
+*
+*/
+
+#ifndef SECUIDIALOGS_H
+#define SECUIDIALOGS_H
+
+#include <e32base.h>                    // CActive
+#include <secdlgimpldefs.h>             // TSecurityDialogOperation
+#include "secuidialognotifiersrv.h"  // RSecuiDialogNotifierSrv
+
+
+/**
+ * Secui Dialogs
+ * CSecuiDialogs class provides implementation for the secui dialog
+ * operations (TSecurityDialogOperation) defined in secdlgimpldefs.h.
+ * When RNotifier class is used to open secui dialogs, CSecuiDialogNotifier
+ * class calls CSecuiDialogs to show the requested dialogs. CSecuiDialogs
+ * uses RSecuiDialogNotifierSrv server to do the actual work.
+ */
+NONSHARABLE_CLASS( CSecuiDialogs ) : public CActive
+    {
+    public:     // constructors and destructor
+        static CSecuiDialogs* NewL( TBool& aIsDeleted );
+        ~CSecuiDialogs();
+
+    public:     // new functions
+        /**
+        * Starts handling the requested operation.
+        * @param aBuffer - Data passed from client RNotifier::StartNotifierAndGetResponse() call
+        * @param aReplySlot - Identifies which message argument to use for the reply
+        * @param aMessage - Encapsulates the client request
+        */
+        void StartLD( const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage );
+
+    protected:  // from CActive
+        void RunL();
+        void DoCancel();
+        TInt RunError( TInt aError );
+
+    private:    // new functions
+        CSecuiDialogs( TBool& aIsDeleted );
+
+    private:    // data
+        TBool& iIsDeleted;
+
+        TInt iRetry;
+        TInt iReplySlot;
+        RMessagePtr2 iMessagePtr;
+        TSecurityDialogOperation iOperation;
+
+        RSecuiDialogNotifierSrv iServer;
+        HBufC8* iInputBuffer;
+        TAny* iOutputBuffer;
+        TPtr8 iOutputPtr;
+    };
+
+#endif  // SECUIDIALOGS_H
+