equal
deleted
inserted
replaced
18 #ifndef TSENTRY_H |
18 #ifndef TSENTRY_H |
19 #define TSENTRY_H |
19 #define TSENTRY_H |
20 |
20 |
21 #include <e32base.h> |
21 #include <e32base.h> |
22 #include <e32cmn.h> |
22 #include <e32cmn.h> |
23 #include <tsgraphicfilescalinghandler.h> |
|
24 |
23 |
25 #include "tsentrykey.h" |
24 #include "tsentrykey.h" |
26 #include "tstaskmonitorglobals.h" |
25 #include "tstaskmonitorglobals.h" |
|
26 #include "tsthumbnailobserver.h" |
27 |
27 |
28 class CTsEntry; |
28 class CTsEntry; |
29 class CFbsBitmap; |
29 class CFbsBitmap; |
|
30 class QObject; |
30 class MTsDataObserver; |
31 class MTsDataObserver; |
|
32 class TsThumbnailProvider; |
|
33 |
|
34 |
31 |
35 |
32 typedef RPointerArray<CTsEntry> RTsFswArray; |
36 typedef RPointerArray<CTsEntry> RTsFswArray; |
33 |
37 |
34 /** |
38 /** |
35 * An entry in the task list. |
39 * An entry in the task list. |
36 */ |
40 */ |
37 NONSHARABLE_CLASS( CTsEntry ) : public CBase, |
41 NONSHARABLE_CLASS( CTsEntry ) : public CBase, |
38 private MImageReadyCallBack |
42 private MTsThumbnailObserver |
39 { |
43 { |
40 public: |
44 public: |
41 static CTsEntry *NewL(const TTsEntryKey &key, MTsDataObserver &observer); |
45 static CTsEntry *NewL(const TTsEntryKey &key, MTsDataObserver &observer, QObject* obj); |
42 static CTsEntry *NewLC(const TTsEntryKey &key, MTsDataObserver &observer); |
46 static CTsEntry *NewLC(const TTsEntryKey &key, MTsDataObserver &observer, QObject* obj); |
43 ~CTsEntry(); |
47 ~CTsEntry(); |
44 |
48 |
45 public: |
49 public: |
46 TUid AppUid() const; |
50 TUid AppUid() const; |
47 const TDesC &AppName() const; |
51 const TDesC &AppName() const; |
62 void RemoveScreenshotL(); |
66 void RemoveScreenshotL(); |
63 void SetTimestamp(const TTime ×tamp); |
67 void SetTimestamp(const TTime ×tamp); |
64 void RefreshUpdateTimestamp(); |
68 void RefreshUpdateTimestamp(); |
65 |
69 |
66 private: |
70 private: |
67 CTsEntry(const TTsEntryKey &aKey, MTsDataObserver &observer); |
71 CTsEntry(const TTsEntryKey &aKey, MTsDataObserver &observer); |
68 |
72 void ConstructL(QObject* object); |
69 public: // from MImageReadyCallBack |
73 public: |
70 void ImageReadyCallBack(TInt error, const CFbsBitmap *bitmap); |
74 void thumbnailCreated(const CFbsBitmap& aThumbnail); |
71 |
75 |
72 private: |
76 private: |
73 TUid mAppUid; |
77 TUid mAppUid; |
74 HBufC* mAppName; |
78 HBufC* mAppName; |
75 TBool mCloseableApp; |
79 TBool mCloseableApp; |
78 CFbsBitmap* mScreenshot; |
82 CFbsBitmap* mScreenshot; |
79 TTsEntryKey mKey; |
83 TTsEntryKey mKey; |
80 UpdatePriority mPriority; |
84 UpdatePriority mPriority; |
81 TTime mTimestamp; |
85 TTime mTimestamp; |
82 TTime mUpdateTimestamp; |
86 TTime mUpdateTimestamp; |
83 |
87 TsThumbnailProvider* iProvider; |
84 private: |
88 private: |
85 CTsGraphicFileScalingHandler *mImgTool; |
89 MTsDataObserver &mObserver; |
86 |
90 |
87 private: |
|
88 MTsDataObserver &mObserver; |
|
89 |
|
90 }; |
91 }; |
91 |
92 |
92 #endif |
93 #endif |