policymanagement/policyengine/policyengineserver/inc/PolicyProcessor.h
changeset 44 39aa16f3fdc2
parent 0 b497e44ab2fc
child 55 1c556dee8eb1
--- a/policymanagement/policyengine/policyengineserver/inc/PolicyProcessor.h	Wed Jun 23 19:10:17 2010 +0300
+++ b/policymanagement/policyengine/policyengineserver/inc/PolicyProcessor.h	Tue Jul 06 15:14:24 2010 +0300
@@ -28,6 +28,9 @@
 #include "RequestContext.h"
 #include "PolicyStorage.h"
 #include <e32base.h>
+#include <MSVAPI.H>
+#include <hbsymbianvariant.h>
+#include <hbdevicedialogsymbian.h>
 
 // CONSTANTS
 // MACROS
@@ -142,6 +145,34 @@
 		TInt iProcessorState;
 };	
 
+
+//Class to launch PolicyEngine Dialog
+class CProcessorClient: public CActive,public MHbDeviceDialogObserver
+{
+public:
+    CProcessorClient();
+    ~CProcessorClient();
+    TInt LaunchDialog(const TDesC8& aFringerPrint, const TDesC8& aServerName);
+    // from MHbDeviceDialogObserver
+    void DataReceived(CHbSymbianVariantMap& aData);
+    void DeviceDialogClosed(TInt aCompletionCode);
+
+protected:
+    // from CActive
+    void DoCancel();
+    void RunL();
+    TInt WaitUntilDeviceDialogClosed();
+    void LaunchTrustNotificationDialog(const TDesC8& aServerName);
+private:
+    CHbDeviceDialogSymbian* iDevDialog;
+    CActiveSchedulerWait* iWait;
+    TInt iCompletionCode;
+    TInt iUserResponse;
+};
+
+
+
+
 class TCombiningAlgorith
 {
 	public: