116
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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 TSSCREENSHOTPROVIDER_H
|
|
18 |
#define TSSCREENSHOTPROVIDER_H
|
125
|
19 |
|
|
20 |
#include <w32std.h>
|
|
21 |
|
116
|
22 |
#include "tsdatastorage.h"
|
119
|
23 |
#include "tswindowgroupsobserver.h"
|
125
|
24 |
|
|
25 |
class MTsWindowGroupsMonitor;
|
|
26 |
class CTsIdList;
|
116
|
27 |
|
119
|
28 |
class CTsScreenshotProvider: public CWsGraphic,
|
|
29 |
public MTsWindowGroupsObserver
|
116
|
30 |
{
|
|
31 |
public:
|
119
|
32 |
static CTsScreenshotProvider* NewL(MTsDataStorage&, MTsWindowGroupsMonitor&);
|
|
33 |
~CTsScreenshotProvider();
|
|
34 |
|
|
35 |
public://from MTsWindowGroupsObserver
|
|
36 |
void HandleWindowGroupChanged( MTsResourceManager &aResources,
|
|
37 |
const MTsRunningApplicationStorage& aStorage );
|
|
38 |
|
|
39 |
public://from CWsGraphic
|
|
40 |
void HandleMessage(const TDesC8&);
|
|
41 |
|
116
|
42 |
private:
|
119
|
43 |
CTsScreenshotProvider(MTsDataStorage&, MTsWindowGroupsMonitor&);
|
125
|
44 |
void ConstructL();
|
116
|
45 |
void HandleMessageL(const TDesC8&);
|
119
|
46 |
void HandleWindowGroupChangedL( MTsResourceManager &aResources,
|
|
47 |
const MTsRunningApplicationStorage& aStorage );
|
127
|
48 |
TBool IsBlocked(const MTsResourceManager& aResources,
|
|
49 |
const MTsRunningApplication& aApp) const;
|
|
50 |
void SendWhiteListL(const CTsIdList& aList);
|
116
|
51 |
void OnReplace();
|
119
|
52 |
|
116
|
53 |
private:
|
|
54 |
MTsDataStorage& iStorage;
|
119
|
55 |
MTsWindowGroupsMonitor& iMonitor;
|
125
|
56 |
CTsIdList* iCache;
|
116
|
57 |
};
|
|
58 |
|
|
59 |
#endif //TSSCREENSHOTTASK_H
|