os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServRecentCondition.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/loggingservices/eventlogger/LogServ/inc/LogServRecentCondition.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,79 @@
1.4 +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef __LOGSERVRECENTCONDITION_H__
1.20 +#define __LOGSERVRECENTCONDITION_H__
1.21 +
1.22 +#include <e32base.h>
1.23 +
1.24 +// Classes referenced
1.25 +class CLogEvent;
1.26 +class TResourceReader;
1.27 +
1.28 +/**
1.29 +Holds an event field type and value pair.
1.30 +Used for performing event field value matching operations.
1.31 +
1.32 +For event field types, look at these macfro definitions:
1.33 + -ELogContactField;
1.34 + -ELogDirectionField;
1.35 + -ELogDurationTypeField;
1.36 + -ELogEventTypeField;
1.37 + -ELogNumberField;
1.38 + -ELogRemotePartyField;
1.39 + -ELogStatusField;
1.40 + -ELogStartTimeField;
1.41 + -ELogEndTimeField;
1.42 + -ELogFlagsField;
1.43 + -ELogSubjectField;
1.44 + -ELogLinkField;
1.45 + -ELogDataField;
1.46 + -ELogSimIdField;
1.47 +
1.48 +@see CLogEvent
1.49 +@see CLogServRecentList
1.50 +@see CLogServRecentListManager
1.51 +@internalComponent
1.52 +*/
1.53 +class CLogServRecentCondition : public CBase
1.54 + {
1.55 +public:
1.56 + static CLogServRecentCondition* NewL(TResourceReader& aReader);
1.57 + static CLogServRecentCondition* TestNewL(TUint16 aField);
1.58 + ~CLogServRecentCondition();
1.59 +
1.60 +private:
1.61 + void ConstructL(TResourceReader& aReader);
1.62 + void TestConstructL(TUint16 aField);
1.63 +
1.64 +public:
1.65 + TBool IsMatch(const CLogEvent& aEvent) const;
1.66 + inline TUint16 Field() const;
1.67 +
1.68 +private:
1.69 + TUint16 iField; //It must be 16-bit. The iField value is read from a resource file.
1.70 + //See ConstructL() implementation. The iField type width then restricts
1.71 + //the max number of field macro values -
1.72 + //ELogContactField...ELogSimIdField.
1.73 + TInt32 iValue;
1.74 + HBufC* iString;
1.75 + };
1.76 +
1.77 +inline TUint16 CLogServRecentCondition::Field() const
1.78 + {
1.79 + return iField;
1.80 + }
1.81 +
1.82 +#endif