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 __LOGSERVRECENTCONDITION_H__
|
sl@0
|
17 |
#define __LOGSERVRECENTCONDITION_H__
|
sl@0
|
18 |
|
sl@0
|
19 |
#include <e32base.h>
|
sl@0
|
20 |
|
sl@0
|
21 |
// Classes referenced
|
sl@0
|
22 |
class CLogEvent;
|
sl@0
|
23 |
class TResourceReader;
|
sl@0
|
24 |
|
sl@0
|
25 |
/**
|
sl@0
|
26 |
Holds an event field type and value pair.
|
sl@0
|
27 |
Used for performing event field value matching operations.
|
sl@0
|
28 |
|
sl@0
|
29 |
For event field types, look at these macfro definitions:
|
sl@0
|
30 |
-ELogContactField;
|
sl@0
|
31 |
-ELogDirectionField;
|
sl@0
|
32 |
-ELogDurationTypeField;
|
sl@0
|
33 |
-ELogEventTypeField;
|
sl@0
|
34 |
-ELogNumberField;
|
sl@0
|
35 |
-ELogRemotePartyField;
|
sl@0
|
36 |
-ELogStatusField;
|
sl@0
|
37 |
-ELogStartTimeField;
|
sl@0
|
38 |
-ELogEndTimeField;
|
sl@0
|
39 |
-ELogFlagsField;
|
sl@0
|
40 |
-ELogSubjectField;
|
sl@0
|
41 |
-ELogLinkField;
|
sl@0
|
42 |
-ELogDataField;
|
sl@0
|
43 |
-ELogSimIdField;
|
sl@0
|
44 |
|
sl@0
|
45 |
@see CLogEvent
|
sl@0
|
46 |
@see CLogServRecentList
|
sl@0
|
47 |
@see CLogServRecentListManager
|
sl@0
|
48 |
@internalComponent
|
sl@0
|
49 |
*/
|
sl@0
|
50 |
class CLogServRecentCondition : public CBase
|
sl@0
|
51 |
{
|
sl@0
|
52 |
public:
|
sl@0
|
53 |
static CLogServRecentCondition* NewL(TResourceReader& aReader);
|
sl@0
|
54 |
static CLogServRecentCondition* TestNewL(TUint16 aField);
|
sl@0
|
55 |
~CLogServRecentCondition();
|
sl@0
|
56 |
|
sl@0
|
57 |
private:
|
sl@0
|
58 |
void ConstructL(TResourceReader& aReader);
|
sl@0
|
59 |
void TestConstructL(TUint16 aField);
|
sl@0
|
60 |
|
sl@0
|
61 |
public:
|
sl@0
|
62 |
TBool IsMatch(const CLogEvent& aEvent) const;
|
sl@0
|
63 |
inline TUint16 Field() const;
|
sl@0
|
64 |
|
sl@0
|
65 |
private:
|
sl@0
|
66 |
TUint16 iField; //It must be 16-bit. The iField value is read from a resource file.
|
sl@0
|
67 |
//See ConstructL() implementation. The iField type width then restricts
|
sl@0
|
68 |
//the max number of field macro values -
|
sl@0
|
69 |
//ELogContactField...ELogSimIdField.
|
sl@0
|
70 |
TInt32 iValue;
|
sl@0
|
71 |
HBufC* iString;
|
sl@0
|
72 |
};
|
sl@0
|
73 |
|
sl@0
|
74 |
inline TUint16 CLogServRecentCondition::Field() const
|
sl@0
|
75 |
{
|
sl@0
|
76 |
return iField;
|
sl@0
|
77 |
}
|
sl@0
|
78 |
|
sl@0
|
79 |
#endif
|