loggingservices/eventlogger/LogServ/inc/LogServRecentCondition.h
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __LOGSERVRECENTCONDITION_H__
       
    17 #define __LOGSERVRECENTCONDITION_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 // Classes referenced
       
    22 class CLogEvent;
       
    23 class TResourceReader;
       
    24 
       
    25 /**
       
    26 Holds an event field type and value pair.
       
    27 Used for performing event field value matching operations.
       
    28 
       
    29 For event field types, look at these macfro definitions:
       
    30 	-ELogContactField;
       
    31 	-ELogDirectionField;
       
    32 	-ELogDurationTypeField;
       
    33 	-ELogEventTypeField;
       
    34 	-ELogNumberField;
       
    35 	-ELogRemotePartyField;
       
    36 	-ELogStatusField;
       
    37 	-ELogStartTimeField;
       
    38 	-ELogEndTimeField;
       
    39 	-ELogFlagsField;
       
    40 	-ELogSubjectField;
       
    41 	-ELogLinkField;
       
    42 	-ELogDataField;
       
    43 	-ELogSimIdField;
       
    44 
       
    45 @see CLogEvent
       
    46 @see CLogServRecentList
       
    47 @see CLogServRecentListManager
       
    48 @internalComponent
       
    49 */
       
    50 class CLogServRecentCondition : public CBase
       
    51 	{
       
    52 public:
       
    53 	static CLogServRecentCondition* NewL(TResourceReader& aReader);
       
    54 	static CLogServRecentCondition* TestNewL(TUint16 aField);
       
    55 	~CLogServRecentCondition();
       
    56 
       
    57 private:
       
    58 	void ConstructL(TResourceReader& aReader);
       
    59 	void TestConstructL(TUint16 aField);
       
    60 
       
    61 public:
       
    62 	TBool IsMatch(const CLogEvent& aEvent) const;
       
    63 	inline TUint16 Field() const;
       
    64 
       
    65 private:
       
    66 	TUint16 iField; //It must be 16-bit. The iField value is read from a resource file. 
       
    67 					//See ConstructL() implementation. The iField type width then restricts
       
    68 					//the max number of field macro values - 
       
    69 					//ELogContactField...ELogSimIdField. 
       
    70 	TInt32 iValue;
       
    71 	HBufC* iString;
       
    72 	};
       
    73 
       
    74 inline TUint16 CLogServRecentCondition::Field() const
       
    75 	{
       
    76 	return iField;
       
    77 	}
       
    78 
       
    79 #endif