17 |
17 |
18 |
18 |
19 #ifndef C_BCRPENINPUTSERVEROBSERVER_H |
19 #ifndef C_BCRPENINPUTSERVEROBSERVER_H |
20 #define C_BCRPENINPUTSERVEROBSERVER_H |
20 #define C_BCRPENINPUTSERVEROBSERVER_H |
21 |
21 |
22 class MPenUiActivationHandler; |
|
23 class MPeninputServerEventHandler; |
22 class MPeninputServerEventHandler; |
24 class RPeninputServer; |
23 class RPeninputServer; |
25 |
24 |
26 #include <ecom/ecom.h> |
25 #include <pticore.h> |
|
26 #include <ptihwrrecognizer.h> |
|
27 #include <peninputsrveventhandler.h> |
27 |
28 |
|
29 /** |
|
30 * inherit from pure virtual class MPenUiActivationHandler, |
|
31 * it's for test RPeninputServer |
|
32 */ |
|
33 class CMPenUiA : public CBase,public MPenUiActivationHandler |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Constructor |
|
39 */ |
|
40 CMPenUiA(); |
|
41 |
|
42 /** |
|
43 * implement pure virtual function. |
|
44 */ |
|
45 void OnPeninputUiDeactivated(); |
|
46 |
|
47 /** |
|
48 * implement pure virtual function. |
|
49 */ |
|
50 void OnPeninputUiActivated(); |
|
51 |
|
52 }; |
|
53 |
|
54 /** |
|
55 * inherit from pure virtual class MPeninputServerEventHandler, |
|
56 * it's for test RPeninputServer |
|
57 */ |
|
58 class CPenUiNotificationHandler: public CBase,public MPeninputServerEventHandler |
|
59 { |
|
60 public: |
|
61 |
|
62 /** |
|
63 * create object. |
|
64 * @param aHandler, MPenUiActivationHandler |
|
65 * @param aClient, RPeninputServer |
|
66 * @return Pointer to created CPenUiNotificationHandler class object. |
|
67 */ |
|
68 static CPenUiNotificationHandler* NewL( MPenUiActivationHandler* aHandler, |
|
69 RPeninputServer* aClient ); |
|
70 |
|
71 /** |
|
72 * implement pure virtual function. |
|
73 * @param aEventId, a EventId |
|
74 * @return handle event state. |
|
75 */ |
|
76 TBool HandleServerEventL( TInt aEventId ); |
|
77 |
|
78 private: |
|
79 |
|
80 /** |
|
81 * Constructor |
|
82 */ |
|
83 CPenUiNotificationHandler( MPenUiActivationHandler* aHandler, RPeninputServer* aClient ); |
|
84 |
|
85 /** |
|
86 * 2nd ctor |
|
87 */ |
|
88 void ConstructL(); |
|
89 |
|
90 MPenUiActivationHandler* iHandler; |
|
91 |
|
92 RPeninputServer* iClient; |
|
93 }; |
|
94 |
28 /** |
95 /** |
29 * inherit from CHwrRecognizer, it's only for test protected api. |
96 * inherit from CHwrRecognizer, it's only for test protected api. |
30 */ |
97 */ |
31 class CBCTestDomHwrRecognizer : public CHwrRecognizer |
98 class CBCTestDomHwrRecognizer : public CHwrRecognizer |
32 { |
99 { |