|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #ifndef TSSCREENSHOTPLUGIN_H |
|
18 #define TSSCREENSHOTPLUGIN_H |
|
19 |
|
20 #include <w32std.h> |
|
21 #include <graphics/wsgraphicdrawerinterface.h> |
|
22 #include <graphics/wsgraphicdrawer.h> |
|
23 |
|
24 class CTsScreenshotPlugin: public CWsGraphicDrawer, |
|
25 public MWsEventHandler |
|
26 { |
|
27 public: |
|
28 /** |
|
29 * Two phase constructor |
|
30 */ |
|
31 |
|
32 static CTsScreenshotPlugin* NewL(); |
|
33 |
|
34 /** |
|
35 * Destructor |
|
36 */ |
|
37 ~CTsScreenshotPlugin(); |
|
38 |
|
39 private: |
|
40 /** |
|
41 * From CWsGraphicDrawer. |
|
42 * @see CWsGraphicDrawer::DoDraw(MWsGc&, const TRect&, const TDesC8&) const |
|
43 */ |
|
44 void DoDraw(MWsGc&, const TRect&, const TDesC8&) const; |
|
45 |
|
46 /** |
|
47 * From CWsGraphicDrawer |
|
48 * @see CWsGraphicDrawer::HandleMessage(const TDesC8&) |
|
49 */ |
|
50 void HandleMessage(const TDesC8&); |
|
51 |
|
52 void HandleMessageL(const TDesC8&); |
|
53 |
|
54 /** |
|
55 * From CWsGraphicDrawer |
|
56 * @see CWsGraphicDrawer::ConstructL(MWsGraphicDrawerEnvironment&, const TGraphicDrawerId& , MWsClient&, const TDesC8&) |
|
57 */ |
|
58 void ConstructL(MWsGraphicDrawerEnvironment& env, |
|
59 const TGraphicDrawerId& id, |
|
60 MWsClient& owner, |
|
61 const TDesC8& data); |
|
62 |
|
63 /** |
|
64 * From MWsEventHandler. |
|
65 * |
|
66 * @see MWsEventHandler::DoHandleEvent(const TWservCrEvent&) |
|
67 */ |
|
68 void DoHandleEvent(const TWservCrEvent& event); |
|
69 |
|
70 /** |
|
71 * Function take screenshot od current display |
|
72 * @param screenshot identyfier |
|
73 */ |
|
74 void TakeScreenshot(TInt); |
|
75 |
|
76 /** |
|
77 * Function take screenshot od current display |
|
78 * @param screenshot identyfier |
|
79 */ |
|
80 void TakeScreenshotL(TInt); |
|
81 |
|
82 private: |
|
83 RPointerArray<CFbsBitmap> mCache; |
|
84 TInt mWindowGroupId; |
|
85 }; |
|
86 |
|
87 #endif //TSSCREENSHOTPLUGIN_H |