sl@0: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef __LOGSERVRECENTCONDITION_H__ sl@0: #define __LOGSERVRECENTCONDITION_H__ sl@0: sl@0: #include sl@0: sl@0: // Classes referenced sl@0: class CLogEvent; sl@0: class TResourceReader; sl@0: sl@0: /** sl@0: Holds an event field type and value pair. sl@0: Used for performing event field value matching operations. sl@0: sl@0: For event field types, look at these macfro definitions: sl@0: -ELogContactField; sl@0: -ELogDirectionField; sl@0: -ELogDurationTypeField; sl@0: -ELogEventTypeField; sl@0: -ELogNumberField; sl@0: -ELogRemotePartyField; sl@0: -ELogStatusField; sl@0: -ELogStartTimeField; sl@0: -ELogEndTimeField; sl@0: -ELogFlagsField; sl@0: -ELogSubjectField; sl@0: -ELogLinkField; sl@0: -ELogDataField; sl@0: -ELogSimIdField; sl@0: sl@0: @see CLogEvent sl@0: @see CLogServRecentList sl@0: @see CLogServRecentListManager sl@0: @internalComponent sl@0: */ sl@0: class CLogServRecentCondition : public CBase sl@0: { sl@0: public: sl@0: static CLogServRecentCondition* NewL(TResourceReader& aReader); sl@0: static CLogServRecentCondition* TestNewL(TUint16 aField); sl@0: ~CLogServRecentCondition(); sl@0: sl@0: private: sl@0: void ConstructL(TResourceReader& aReader); sl@0: void TestConstructL(TUint16 aField); sl@0: sl@0: public: sl@0: TBool IsMatch(const CLogEvent& aEvent) const; sl@0: inline TUint16 Field() const; sl@0: sl@0: private: sl@0: TUint16 iField; //It must be 16-bit. The iField value is read from a resource file. sl@0: //See ConstructL() implementation. The iField type width then restricts sl@0: //the max number of field macro values - sl@0: //ELogContactField...ELogSimIdField. sl@0: TInt32 iValue; sl@0: HBufC* iString; sl@0: }; sl@0: sl@0: inline TUint16 CLogServRecentCondition::Field() const sl@0: { sl@0: return iField; sl@0: } sl@0: sl@0: #endif