127
|
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 TSENTRYIMP_H
|
|
19 |
#define TSENTRYIMP_H
|
|
20 |
|
|
21 |
#include <e32base.h>
|
|
22 |
#include <e32cmn.h>
|
|
23 |
|
|
24 |
#include "tsentrykey.h"
|
|
25 |
#include "tsentry.h"
|
|
26 |
//#include "tstaskmonitorglobals.h"
|
|
27 |
|
|
28 |
class CFbsBitmap;
|
|
29 |
class RReadStream;
|
|
30 |
|
|
31 |
/**
|
|
32 |
* An entry in the task list.
|
|
33 |
*/
|
|
34 |
NONSHARABLE_CLASS( CTsEntryImp ) : public CBase,
|
|
35 |
public MTsEntry
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
virtual ~CTsEntryImp();
|
|
39 |
static void ExternalizeL( RWriteStream& aDst, const MTsEntry& aSrc );
|
|
40 |
void InternalizeL( RReadStream& aSrc );
|
|
41 |
|
|
42 |
public:
|
|
43 |
const TDesC& DisplayName() const;
|
|
44 |
TInt IconHandle() const;
|
|
45 |
TTime Timestamp() const;
|
|
46 |
TTime TimestampUpdate() const;
|
|
47 |
TTsEntryKey Key() const;
|
|
48 |
TBool IsActive() const;
|
|
49 |
TBool IsClosable() const;
|
|
50 |
TBool IsMandatory() const;
|
|
51 |
|
|
52 |
protected:
|
|
53 |
void BaseConstructL(RReadStream& aStream);
|
|
54 |
|
|
55 |
protected:
|
|
56 |
HBufC* iName;
|
|
57 |
TBool iCloseableApp;
|
|
58 |
TBool iIsActive;
|
|
59 |
TBool iVisibility;
|
|
60 |
CFbsBitmap* iThumbail;
|
|
61 |
TTsEntryKey iKey;
|
|
62 |
TInt iPriority;
|
|
63 |
TTime iTimestamp;
|
|
64 |
TTime iUpdateTimestamp;
|
|
65 |
|
|
66 |
};
|
|
67 |
|
|
68 |
#endif //TSENTRYIMP_H
|