116
|
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 |
|
119
|
24 |
#include "tsnotifier.h"
|
116
|
25 |
|
|
26 |
class CTsOrientationMonitor;
|
119
|
27 |
class CTsScreenshotNotifier;
|
|
28 |
class CTsIdList;
|
116
|
29 |
|
|
30 |
class CTsScreenshotPlugin: public CWsGraphicDrawer,
|
|
31 |
public MWsEventHandler,
|
119
|
32 |
public MTsNotifier
|
|
33 |
|
116
|
34 |
{
|
|
35 |
public:
|
|
36 |
static CTsScreenshotPlugin* NewL();
|
|
37 |
~CTsScreenshotPlugin();
|
|
38 |
|
|
39 |
private:
|
|
40 |
void DoDraw(MWsGc&, const TRect&, const TDesC8&) const;
|
|
41 |
void HandleMessage(const TDesC8&);
|
|
42 |
void HandleMessageL(const TDesC8&);
|
|
43 |
void ConstructL(MWsGraphicDrawerEnvironment& aEnv,
|
|
44 |
const TGraphicDrawerId& aId,
|
|
45 |
MWsClient& aOwner,
|
|
46 |
const TDesC8& aData);
|
|
47 |
void DoHandleEvent(const TWservCrEvent& aEvent);
|
|
48 |
void TakeScreenshot(TInt);
|
|
49 |
void TakeScreenshotL(TInt);
|
|
50 |
void NotifyWindowGroupToBackground(TInt aWindowGroupId);
|
|
51 |
void NotifyWindowGroupToBackgroundL(TInt aWindowGroupId);
|
|
52 |
TInt OrientationToAngle();
|
|
53 |
|
119
|
54 |
public:
|
|
55 |
void SendMessageL( const TDesC8& aMessage );
|
|
56 |
|
116
|
57 |
private:
|
119
|
58 |
CTsIdList* iBlockedList;
|
|
59 |
RPointerArray<CTsScreenshotNotifier> iCache;
|
116
|
60 |
TInt iWindowGroupId;
|
|
61 |
};
|
|
62 |
|
|
63 |
#endif //TSSCREENSHOTPLUGIN_H
|