textinput/peninputarc/inc/pensrvcliinc/peninputserver.h
branchRCL_3
changeset 6 6ceef9a83b1a
parent 0 eb1f2e154e89
child 7 6defe5d1bd39
--- a/textinput/peninputarc/inc/pensrvcliinc/peninputserver.h	Fri Mar 12 15:44:07 2010 +0200
+++ b/textinput/peninputarc/inc/pensrvcliinc/peninputserver.h	Mon Mar 15 12:42:02 2010 +0200
@@ -31,6 +31,8 @@
 
 #include "peninputcmdparamext.h"
 
+#include <AknCapServerClient.h>
+
 // the maximum count of TUpdateArea that area pool can hold
 const TInt KMaxRectNumInBuf = 100;
 class CCoeControl;
@@ -75,6 +77,7 @@
 class CEventQueue;
 class CPtiEngine;
 class CAknLayoutChangeWatcher;
+class CSubscriber;
 // DESCRIPTION
 /**
  * Class MRawEventHandler
@@ -382,6 +385,9 @@
 
     TInt HandleAppInfoChange(CPeninputServerSession* aSession,
                             const TDesC& aAppInfo, TPeninputAppInfo aType) const;
+    static TInt DiscreetPopChangeNotification(TAny* aObj);
+    
+    void HandleDiscreetPopNotification();
 protected:  // New functions
 
     /**
@@ -966,6 +972,12 @@
     CRepository* iSensorRepository;
     
     TInt iInputLanguage;
+	
+	// Add for notify discreept pop
+    CSubscriber*    iDiscreetPopSubscriber;
+    RProperty       iDiscreetPopProperty;
+    RAknUiServer    iAknUiSrv; 
+    TRect iDiscreetPopArea;
     };
 
 /**
@@ -1148,4 +1160,28 @@
     
 #endif //C_CPENINPUTSERVER_H
 
+/**
+ * CSubscriber
+ * Subscribe discreept state.
+ *
+ * @since S60 v4.0
+ */ 
+class CSubscriber : public CActive
+    {
+public:
+    CSubscriber(TCallBack aCallBack, RProperty& aProperty);
+    ~CSubscriber();
+
+public: // New functions
+    void SubscribeL();
+    void StopSubscribe();
+
+private: // from CActive
+    void RunL();
+    void DoCancel();
+
+private:
+    TCallBack   iCallBack;
+    RProperty&  iProperty;
+    };
 // End of File