19 |
19 |
20 #include <w32std.h> |
20 #include <w32std.h> |
21 #include <graphics/wsgraphicdrawerinterface.h> |
21 #include <graphics/wsgraphicdrawerinterface.h> |
22 #include <graphics/wsgraphicdrawer.h> |
22 #include <graphics/wsgraphicdrawer.h> |
23 |
23 |
24 #include "tsorientationobserver.h" |
24 #include "tsnotifier.h" |
25 |
25 |
26 class CTsOrientationMonitor; |
26 class CTsOrientationMonitor; |
|
27 class CTsScreenshotNotifier; |
|
28 class CTsIdList; |
27 |
29 |
28 class CTsScreenshotPlugin: public CWsGraphicDrawer, |
30 class CTsScreenshotPlugin: public CWsGraphicDrawer, |
29 public MWsEventHandler, |
31 public MWsEventHandler, |
30 public MTsOrientationObserver |
32 public MTsNotifier |
|
33 |
31 { |
34 { |
32 public: |
35 public: |
33 static CTsScreenshotPlugin* NewL(); |
36 static CTsScreenshotPlugin* NewL(); |
34 ~CTsScreenshotPlugin(); |
37 ~CTsScreenshotPlugin(); |
35 |
38 |
39 void HandleMessageL(const TDesC8&); |
42 void HandleMessageL(const TDesC8&); |
40 void ConstructL(MWsGraphicDrawerEnvironment& aEnv, |
43 void ConstructL(MWsGraphicDrawerEnvironment& aEnv, |
41 const TGraphicDrawerId& aId, |
44 const TGraphicDrawerId& aId, |
42 MWsClient& aOwner, |
45 MWsClient& aOwner, |
43 const TDesC8& aData); |
46 const TDesC8& aData); |
44 void ConstructL(); |
|
45 void DoHandleEvent(const TWservCrEvent& aEvent); |
47 void DoHandleEvent(const TWservCrEvent& aEvent); |
46 void TakeScreenshot(TInt); |
48 void TakeScreenshot(TInt); |
47 void TakeScreenshotL(TInt); |
49 void TakeScreenshotL(TInt); |
48 void NotifyWindowGroupToBackground(TInt aWindowGroupId); |
50 void NotifyWindowGroupToBackground(TInt aWindowGroupId); |
49 void NotifyWindowGroupToBackgroundL(TInt aWindowGroupId); |
51 void NotifyWindowGroupToBackgroundL(TInt aWindowGroupId); |
50 TInt OrientationToAngle(); |
52 TInt OrientationToAngle(); |
51 |
53 |
52 private://from MTsOrientationObserver |
54 public: |
53 void OrientationChanged( TInt aAngle ); |
55 void SendMessageL( const TDesC8& aMessage ); |
54 |
56 |
55 private: |
57 private: |
56 RPointerArray<CFbsBitmap> iCache; |
58 CTsIdList* iBlockedList; |
57 CTsOrientationMonitor* iMonitor; |
59 RPointerArray<CTsScreenshotNotifier> iCache; |
58 TInt iWindowGroupId; |
60 TInt iWindowGroupId; |
59 TInt iAngle; |
|
60 }; |
61 }; |
61 |
62 |
62 #endif //TSSCREENSHOTPLUGIN_H |
63 #endif //TSSCREENSHOTPLUGIN_H |