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: Task list entry
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef TSENTRY_H
|
|
19 |
#define TSENTRY_H
|
|
20 |
|
|
21 |
#include <e32base.h>
|
|
22 |
#include <e32cmn.h>
|
|
23 |
|
|
24 |
#include "tsentrykey.h"
|
|
25 |
#include "tstaskmonitorglobals.h"
|
119
|
26 |
#include "tsthumbnailobserver.h"
|
116
|
27 |
|
|
28 |
class CTsEntry;
|
|
29 |
class CFbsBitmap;
|
119
|
30 |
class QObject;
|
116
|
31 |
class MTsDataObserver;
|
119
|
32 |
class TsThumbnailProvider;
|
|
33 |
|
|
34 |
|
116
|
35 |
|
|
36 |
typedef RPointerArray<CTsEntry> RTsFswArray;
|
|
37 |
|
|
38 |
/**
|
|
39 |
* An entry in the task list.
|
|
40 |
*/
|
|
41 |
NONSHARABLE_CLASS( CTsEntry ) : public CBase,
|
119
|
42 |
private MTsThumbnailObserver
|
116
|
43 |
{
|
|
44 |
public:
|
119
|
45 |
static CTsEntry *NewL(const TTsEntryKey &key, MTsDataObserver &observer, QObject* obj);
|
|
46 |
static CTsEntry *NewLC(const TTsEntryKey &key, MTsDataObserver &observer, QObject* obj);
|
116
|
47 |
~CTsEntry();
|
|
48 |
|
|
49 |
public:
|
|
50 |
TUid AppUid() const;
|
|
51 |
const TDesC &AppName() const;
|
|
52 |
TBool CloseableApp() const;
|
|
53 |
Visibility GetVisibility() const;
|
|
54 |
CFbsBitmap *AppIconBitmap() const;
|
|
55 |
CFbsBitmap *Screenshot() const;
|
|
56 |
const TTsEntryKey &Key() const;
|
|
57 |
TTime Timestamp() const;
|
|
58 |
TTime LastUpdateTimestamp() const;
|
|
59 |
|
|
60 |
void SetAppUid(const TUid &uid);
|
|
61 |
void SetAppNameL(const TDesC &appName);
|
|
62 |
void SetCloseableApp(TBool value);
|
|
63 |
void SetVisibility(Visibility visibility);
|
|
64 |
void SetAppIcon(CFbsBitmap *aBitmap);
|
|
65 |
void SetScreenshotL(const CFbsBitmap &bitmap, UpdatePriority priority, TInt angle);
|
|
66 |
void RemoveScreenshotL();
|
|
67 |
void SetTimestamp(const TTime ×tamp);
|
|
68 |
void RefreshUpdateTimestamp();
|
|
69 |
|
|
70 |
private:
|
119
|
71 |
CTsEntry(const TTsEntryKey &aKey, MTsDataObserver &observer);
|
|
72 |
void ConstructL(QObject* object);
|
|
73 |
public:
|
|
74 |
void thumbnailCreated(const CFbsBitmap& aThumbnail);
|
116
|
75 |
|
|
76 |
private:
|
|
77 |
TUid mAppUid;
|
|
78 |
HBufC* mAppName;
|
|
79 |
TBool mCloseableApp;
|
|
80 |
Visibility mVisibility;
|
|
81 |
CFbsBitmap* mAppIconBitmap;
|
|
82 |
CFbsBitmap* mScreenshot;
|
|
83 |
TTsEntryKey mKey;
|
|
84 |
UpdatePriority mPriority;
|
|
85 |
TTime mTimestamp;
|
|
86 |
TTime mUpdateTimestamp;
|
119
|
87 |
TsThumbnailProvider* iProvider;
|
|
88 |
private:
|
|
89 |
MTsDataObserver &mObserver;
|
116
|
90 |
|
|
91 |
};
|
|
92 |
|
|
93 |
#endif
|