sl@0
|
1 |
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef __LOGSERVRECENTLIST_H__
|
sl@0
|
17 |
#define __LOGSERVRECENTLIST_H__
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <logwrap.h>
|
sl@0
|
20 |
|
sl@0
|
21 |
// Classes referenced
|
sl@0
|
22 |
class TResourceReader;
|
sl@0
|
23 |
class CLogEvent;
|
sl@0
|
24 |
class CLogFilter;
|
sl@0
|
25 |
class CLogServRecentCondition;
|
sl@0
|
26 |
|
sl@0
|
27 |
/**
|
sl@0
|
28 |
Holds an array of CLogServRecentCondition elements.
|
sl@0
|
29 |
|
sl@0
|
30 |
@see CLogServRecentCondition
|
sl@0
|
31 |
@see CLogServRecentListManager
|
sl@0
|
32 |
@internalComponent
|
sl@0
|
33 |
*/
|
sl@0
|
34 |
class CLogServRecentList : public CBase
|
sl@0
|
35 |
{
|
sl@0
|
36 |
public:
|
sl@0
|
37 |
static CLogServRecentList* NewL(TResourceReader& aReader);
|
sl@0
|
38 |
static CLogServRecentList* TestNewL();
|
sl@0
|
39 |
~CLogServRecentList();
|
sl@0
|
40 |
|
sl@0
|
41 |
TBool IsRecent(const CLogEvent& aEvent) const;
|
sl@0
|
42 |
void GetFilter(const CLogEvent& aEvent, CLogFilter& aFilter) const;
|
sl@0
|
43 |
inline TLogRecentList Id() const;
|
sl@0
|
44 |
|
sl@0
|
45 |
private:
|
sl@0
|
46 |
void ConstructL(TResourceReader& aReader);
|
sl@0
|
47 |
void TestConstructL();
|
sl@0
|
48 |
TBool IsFilterEmpty(const CLogFilter& aFilter) const;
|
sl@0
|
49 |
|
sl@0
|
50 |
private:
|
sl@0
|
51 |
TLogRecentList iId;
|
sl@0
|
52 |
TUint16 iDuplicates;//It must be 16-bit. The iDuplicates value is read from a resource file.
|
sl@0
|
53 |
//See ConstructL() implementation. The Duplicates type width then restricts
|
sl@0
|
54 |
//the max number of field macro values -
|
sl@0
|
55 |
//ELogContactField...ELogSimIdField.
|
sl@0
|
56 |
typedef RPointerArray<CLogServRecentCondition> RLogRecentConditionArray;
|
sl@0
|
57 |
RLogRecentConditionArray iConditions;
|
sl@0
|
58 |
};
|
sl@0
|
59 |
|
sl@0
|
60 |
inline TLogRecentList CLogServRecentList::Id() const
|
sl@0
|
61 |
{
|
sl@0
|
62 |
return iId;
|
sl@0
|
63 |
}
|
sl@0
|
64 |
|
sl@0
|
65 |
|
sl@0
|
66 |
|
sl@0
|
67 |
#endif
|