equal
deleted
inserted
replaced
20 #define SSYREFERENCECMDHANDLER_H |
20 #define SSYREFERENCECMDHANDLER_H |
21 |
21 |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 #include "ssyreferenceconfig.h" |
23 #include "ssyreferenceconfig.h" |
24 |
24 |
|
25 #define DSG |
|
26 #ifdef DSG |
|
27 #include "ssypslistener.h" |
|
28 #endif // DSG |
|
29 |
25 // FORWARD DECLARATIONS |
30 // FORWARD DECLARATIONS |
26 class CSsyReferenceChannel; |
31 class CSsyReferenceChannel; |
27 |
32 |
28 /** |
33 /** |
29 * Command handler class for handling commands of one channel. Each opened |
34 * Command handler class for handling commands of one channel. Each opened |
31 * |
36 * |
32 * @lib ssyreferenceplugin.lib |
37 * @lib ssyreferenceplugin.lib |
33 * @since S60 5.0 |
38 * @since S60 5.0 |
34 */ |
39 */ |
35 class CSsyReferenceCmdHandler : public CActive |
40 class CSsyReferenceCmdHandler : public CActive |
|
41 #ifdef DSG |
|
42 , public MSsyPsObserver |
|
43 #endif // DSG |
36 { |
44 { |
37 |
45 |
38 public: |
46 public: |
39 |
47 |
40 /** |
48 /** |
87 /** |
95 /** |
88 * Handles data item generation. Called from DataItemCallback |
96 * Handles data item generation. Called from DataItemCallback |
89 */ |
97 */ |
90 TInt GenerateChannelDataItem(); |
98 TInt GenerateChannelDataItem(); |
91 |
99 |
|
100 |
92 private: |
101 private: |
93 |
102 |
94 /** |
103 /** |
95 * C++ constructor. |
104 * C++ constructor. |
96 * |
105 * |
139 /** |
148 /** |
140 * Periodic timer for generating channel data |
149 * Periodic timer for generating channel data |
141 */ |
150 */ |
142 CPeriodic* iTimer; |
151 CPeriodic* iTimer; |
143 |
152 |
|
153 #ifdef DSG |
|
154 CSsyPsListener* iPsListener; |
|
155 void SendData(); |
|
156 TInt GenerateChannelStateItem(); |
|
157 static TInt StateItemCallback(TAny* aThis); |
|
158 void PsValueSet(TUid aCategory, TUint aKey, TInt aValue); |
|
159 static TInt FakeStateCallback(TAny* aThis); |
|
160 #endif // DSG |
144 }; |
161 }; |
145 |
162 |
146 #endif // SSYREFERENCECMDHANDLER_H |
163 #endif // SSYREFERENCECMDHANDLER_H |
147 |
164 |
148 // End of file |
165 // End of file |