const TLitC< sizeof(L"http:enum TPropertyType { EPropertyBool = 0, EPropertyInt8 = 1, EPropertyUint8 = 2, EPropertyInt16 = 3, EPropertyUint16 = 4, EPropertyInt32 = 5, EPropertyUint32 = 6, EPropertyInt64 = 7, EPropertyReal32 = 8, EPropertyReal64 = 9, EPropertyTime = 10, EPropertyText = 11, };enum TQueryType { EQueryTypeFirst = 0, EQueryTypeObject, EQueryTypeRelation, EQueryTypeEvent, EQueryTypeLast }; enum TQueryResultMode { EQueryResultModeFirst = 0, EQueryResultModeItem, EQueryResultModeId, EQueryResultModeCount, EQueryResultModeDistinctValues, EQueryResultModeObjectWithFreetexts, EQueryResultModeLast };enum TMdESortOrder { ESortAscending = ETrue, ESortDescending = EFalse };enum TOrderRuleType { EOrderRuleTypeFirst = 0, EOrderRuleTypeItemID, EOrderRuleTypeObjectURI, EOrderRuleTypeObjectDef, EOrderRuleTypeProperty, EOrderRuleTypeUsageCount, EOrderRuleTypeCreationTime, EOrderRuleTypeSourceURI, EOrderRuleTypeParticipantURI, EOrderRuleTypeTargetObjectID, EOrderRuleTypeEventDef, EOrderRuleTypeLastModifiedDate, EOrderRuleTypeParameterValue, EOrderRuleTypeLeftObjectID, EOrderRuleTypeRightObjectID, EOrderRuleTypeRelationDef, EOrderRuleTypeLast };enum TConditionType { EConditionTypeFirst = 0x0000, EConditionTypeLogic, EConditionTypeObject, EConditionTypeProperty, EConditionTypePropertyIntRange, EConditionTypePropertyInt64Range, EConditionTypePropertyUintRange, EConditionTypePropertyRealRange, EConditionTypePropertyTimeRange, EConditionTypePropertyText, EConditionTypePropertyBool, EConditionTypeRelation, EConditionTypeEvent, EConditionTypeLast };enum TObserverNotificationType { ENotifyAdd = 0x0001, ENotifyModify = 0x0002, ENotifyRemove = 0x0004, };enum TLogicConditionOperator { ELogicConditionOperatorFirst = 0x0000, ELogicConditionOperatorAnd, ELogicConditionOperatorOr, ELogicConditionOperatorLast };enum TObjectConditionCompareMethod { EObjectConditionCompareFirst = 0, EObjectConditionCompareNone, EObjectConditionCompareId, EObjectConditionCompareIds, EObjectConditionCompareGuid, EObjectConditionCompareObjectDef, EObjectConditionCompareUri, EObjectConditionCompareUriBeginsWith, EObjectConditionCompareFreeText, EObjectConditionCompareFreeTextContains, EObjectConditionCompareFreeTextBeginsWith, EObjectConditionCompareFreeTextEndsWith, EObjectConditionCompareUsageCount, EObjectConditionCompareUriContains, EObjectConditionCompareLast };enum TObjectConditionConfidentialityLevel { EObjectConditionLevelFirst = 0, EObjectConditionLevelIgnoreConfidentiality, EObjectConditionLevelNormal, EObjectConditionLevelConfidential, EObjectConditionLevelLast };enum TEventConditionCompareMethod { EEventConditionCompareFirst = 0x0000, EEventConditionCompareNone, EEventConditionCompareSourceURI, EEventConditionCompareParticipantURI, EEventConditionCompareId, EEventConditionCompareLast };enum TRelationConditionSide { ERelationConditionSideEither, ERelationConditionSideLeft, ERelationConditionSideRight };enum TTextPropertyConditionCompareMethod { ETextPropertyConditionCompareFirst = 0x0000, ETextPropertyConditionCompareEquals, ETextPropertyConditionCompareContains, ETextPropertyConditionCompareBeginsWith, ETextPropertyConditionCompareEndsWith, ETextPropertyConditionCompareLast };union TMdCValueUnion { TInt32 iInt32; TUint32 iUint32; TInt64 iInt64; TReal64 iReal; HBufC16* iText; struct { TUint32 iCount; TMdCOffset iOffset; } iPtr; };class MMdCCommon { public: IMPORT_C static void Panic( TInt aPanicCode ); }; # 26 "X:/epoc32/include/platform/mw/mdesession.h" 2class CMdESession;class CMdEObjectDef;class CMdERelationDef;class CMdEEventDef;class CMdEObject;class TMdEObject;class CMdERelation;class TMdERelation;class CMdEEvent;class CMdEObjectQuery;class CMdERelationQuery;class CMdEEventQuery;class CMdELogicCondition;class CMdEInstanceItem;class RMdEEngineSession;class MMdEQueryObserver;class CMdENamespaceDef;class RMdEDataBuffer;class CMdECondition;class MMdESessionObserver {public: virtual void HandleSessionOpened(CMdESession& aSession, TInt aError) = 0; virtual void HandleSessionError(CMdESession& aSession, TInt aError) = 0; };class MMdESchemaObserver {public: virtual void HandleSchemaModified() = 0; }; class MMdEObjectObserver {public: virtual void HandleObjectNotification(CMdESession& aSession, TObserverNotificationType aType, const RArray<TItemId>& aObjectIdArray) = 0; };class MMdEObjectObserverWithUri {public: virtual void HandleUriObjectNotification(CMdESession& aSession, TObserverNotificationType aType, const RArray<TItemId>& aObjectIdArray, const RPointerArray<HBufC>& aObjectUriArray) = 0; }; class MMdEObjectPresentObserver {public: virtual void HandleObjectPresentNotification(CMdESession& aSession, TBool aPresent, const RArray<TItemId>& aObjectIdArray) = 0; };class MMdERelationPresentObserver {public: virtual void HandleRelationPresentNotification(CMdESession& aSession, TBool aPresent, const RArray<TItemId>& aRelationIdArray) = 0; };class MMdERelationObserver {public: virtual void HandleRelationNotification(CMdESession& aSession, TObserverNotificationType aType, const RArray<TItemId>& aRelationIdArray) = 0; };class MMdERelationItemObserver {public: virtual void HandleRelationItemNotification(CMdESession& aSession, TObserverNotificationType aType, const RArray<TMdERelation>& aRelationArray) = 0; };class MMdEEventObserver {public: virtual void HandleEventNotification(CMdESession& aSession, TObserverNotificationType aType, const RArray<TItemId>& aEventIdArray) = 0; };class CMdESession : public CBase {public: IMPORT_C static CMdESession* NewL(MMdESessionObserver& aObserver); IMPORT_C static CMdESession* NewLC(MMdESessionObserver& aObserver); virtual ~CMdESession(); virtual TInt NamespaceDefCount() const = 0; virtual CMdENamespaceDef& NamespaceDefL(TInt aIndex) = 0; virtual CMdENamespaceDef& GetNamespaceDefL(const TDesC& aName) = 0; virtual CMdENamespaceDef& GetDefaultNamespaceDefL() = 0; virtual void AddRelationDefL(const CMdENamespaceDef &aNamespaceDef, const TDesC &aName) = 0; virtual void AddEventDefL(const CMdENamespaceDef &aNamespaceDef, const TDesC &aName) = 0; virtual TInt AddItemsL( RPointerArray<CMdEInstanceItem>& aItems ) = 0; virtual TInt UpdateItemsL( RPointerArray<CMdEInstanceItem>& aItems ) = 0; virtual void AddItemsAsyncL( RPointerArray<CMdEInstanceItem>& aItems, TRequestStatus& aStatus, RMdEDataBuffer& aSerializedItemIds) = 0; virtual void UpdateItemsAsyncL( RPointerArray<CMdEInstanceItem>& aItems, TRequestStatus& aStatus, RMdEDataBuffer& aSerializedItemIds ) = 0; virtual CMdEObject* NewObjectL( CMdEObjectDef& aDef, const TDesC& aUri, TUint32 aMediaId = 0 ) = 0; virtual CMdEObject* NewObjectLC( CMdEObjectDef& aDef, const TDesC& aUri, TUint32 aMediaId = 0 ) = 0; virtual TItemId AddObjectL(CMdEObject& aObject) = 0; virtual TInt AddObjectsL(RPointerArray<CMdEObject>& aObjects) = 0; virtual TInt DeserializeIdsL( RMdEDataBuffer& aSerializedItemIds, RArray<TItemId>* aResultObjects = NULL, RArray<TItemId>* aResultEvents = NULL, RArray<TItemId>* aResultRelations = NULL ) = 0; virtual TInt DeserializeItemsL( RMdEDataBuffer& aSerializedItems, RPointerArray<CMdEInstanceItem>& aItems ) = 0; virtual TItemId RemoveObjectL( TItemId aId, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual TItemId RemoveObjectL( const TDesC& aUri, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual TInt RemoveObjectsL( const RArray<TItemId>& aId, RArray<TItemId>& aResult, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual TInt RemoveObjectsL( const RPointerArray<TDesC>& aUri, RArray<TItemId>& aResult, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual void RemoveObjectsAsyncL( const RArray<TItemId>& aId, TRequestStatus& aStatus, RMdEDataBuffer& aSerializedObjectIds, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual void RemoveObjectsAsyncL( const RPointerArray<TDesC>& aUri, TRequestStatus& aStatus, RMdEDataBuffer& aSerializedObjectIds, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEObject* GetObjectL( const TItemId aId, CMdEObjectDef& aObjectDef ) = 0; virtual CMdEObject* GetObjectL( const TItemId aId, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEObject* GetFullObjectL( const TItemId aId, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEObject* GetObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdEObjectDef& aObjectDef ) = 0; virtual CMdEObject* GetObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEObject* GetFullObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEObject* GetObjectL( const TDesC& aUri, CMdEObjectDef& aObjectDef ) = 0; virtual CMdEObject* GetObjectL( const TDesC& aUri, CMdENamespaceDef* aNamespaceDef = NULL) = 0; virtual CMdEObject* GetFullObjectL( const TDesC& aUri, CMdENamespaceDef* aNamespaceDef = NULL) = 0; virtual CMdEObject* OpenObjectL( const TItemId aId, CMdEObjectDef& aObjectDef ) = 0; virtual CMdEObject* OpenObjectL( const TItemId aId, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEObject* OpenFullObjectL( const TItemId aId, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEObject* OpenObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdEObjectDef& aObjectDef ) = 0; virtual CMdEObject* OpenObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEObject* OpenFullObjectL( const TInt64 aGuidHigh, const TInt64 aGuidLow, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEObject* OpenObjectL( const TDesC& aUri, CMdEObjectDef& aObjectDef ) = 0; virtual CMdEObject* OpenObjectL( const TDesC& aUri, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEObject* OpenFullObjectL( const TDesC& aUri, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual void CheckObjectL( TMdEObject& aObject, const TDesC& aUri, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual void CheckObjectL( TMdEObject& aObject, TItemId aId, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual void CheckObjectL( RArray<TMdEObject>& aObjects, const RArray<TItemId>& aIds, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual void CommitObjectL(CMdEObject& aObject) = 0; virtual void CommitObjectsL(RPointerArray<CMdEObject>& aObjects) = 0; virtual TItemId CancelObjectL(CMdEObject& aObject) = 0; virtual CMdERelation* GetRelationL(TItemId aId, CMdENamespaceDef* aNamespacedef = NULL) = 0; virtual CMdERelation* NewRelationLC(CMdERelationDef& aDef, TItemId aLeftObjectId, TItemId aRightObjectId, TInt32 aParameter = 0) = 0; virtual CMdERelation* NewRelationL(CMdERelationDef& aDef, TItemId aLeftObjectId, TItemId aRightObjectId, TInt32 aParameter = 0) = 0; virtual TItemId AddRelationL( CMdERelation& aRelation ) = 0; virtual TItemId UpdateRelationL( CMdERelation& aRelation ) = 0; virtual TItemId RemoveRelationL( TItemId aId, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual TInt RemoveRelationsL( const RArray<TItemId>& aId, RArray<TItemId>& aSuccessful, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual void RemoveRelationsAsyncL( const RArray<TItemId>& aId, TRequestStatus& aStatus, RMdEDataBuffer& aSerializedRelationIds, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEEvent* NewEventLC(CMdEEventDef& aDef, TItemId aObjectId, TTime aTime, const TDesC* aSource = NULL, const TDesC* aParticipant = NULL) = 0; virtual CMdEEvent* NewEventL(CMdEEventDef& aDef, TItemId aObjectId, TTime aTime, const TDesC* aSource = NULL, const TDesC* aParticipant = NULL) = 0; virtual CMdEEvent* GetEventL(TItemId aId, CMdENamespaceDef* aNamespaceDef = NULL) = 0; virtual TItemId AddEventL( CMdEEvent& aEvent ) = 0; virtual TItemId RemoveEventL( TItemId aId, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual TInt RemoveEventsL( const RArray<TItemId>& aId, RArray<TItemId>& aSuccessful, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual void RemoveEventsAsyncL( const RArray<TItemId>& aId, TRequestStatus& aStatus, RMdEDataBuffer& aSerializedEventIds, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual CMdEObjectQuery* NewObjectQueryL(CMdENamespaceDef& aNamespaceDef, CMdEObjectDef& aObjectDef, MMdEQueryObserver* aObserver = 0) = 0; virtual CMdEObjectQuery* NewObjectQueryL( CMdEObjectDef& aObjectDef, RPointerArray<CMdEObjectDef>* aObjectDefs, MMdEQueryObserver* aObserver = 0) = 0; virtual CMdERelationQuery* NewRelationQueryL( CMdENamespaceDef& aNamespaceDef, MMdEQueryObserver* aObserver = 0) = 0; virtual CMdEEventQuery* NewEventQueryL(CMdENamespaceDef& aNamespaceDef, MMdEQueryObserver* aObserver = 0) = 0; virtual void AddSchemaObserverL(MMdESchemaObserver& aObserver) = 0; virtual void RemoveSchemaObserverL(MMdESchemaObserver& aObserver) = 0; virtual void AddObjectObserverL(MMdEObjectObserver& aObserver, CMdELogicCondition* aCondition = NULL, TUint32 aNotificationType = ENotifyAdd | ENotifyModify | ENotifyRemove, CMdENamespaceDef* aNamespaceDef = NULL) = 0; virtual void RemoveObjectObserverL(MMdEObjectObserver& aObserver, CMdENamespaceDef* aNamespaceDef = NULL) = 0; virtual void AddObjectPresentObserverL( MMdEObjectPresentObserver& aObserver) = 0; virtual void RemoveObjectPresentObserverL( MMdEObjectPresentObserver& aObserver)= 0; virtual void AddRelationObserverL(MMdERelationObserver& aObserver, CMdECondition* aCondition = NULL, TUint32 aNotificationType = ENotifyAdd | ENotifyModify | ENotifyRemove, CMdENamespaceDef* aNamespaceDef = NULL)= 0; virtual void RemoveRelationObserverL(MMdERelationObserver& aObserver, CMdENamespaceDef* aNamespaceDef = NULL) = 0; virtual void AddRelationItemObserverL(MMdERelationItemObserver& aObserver, CMdECondition* aCondition = NULL, TUint32 aNotificationType = ENotifyRemove, CMdENamespaceDef* aNamespaceDef = NULL)= 0; virtual void RemoveRelationItemObserverL(MMdERelationItemObserver& aObserver, CMdENamespaceDef* aNamespaceDef = NULL) = 0; virtual void AddRelationPresentObserverL( MMdERelationPresentObserver& aObserver) = 0; virtual void RemoveRelationPresentObserverL( MMdERelationPresentObserver& aObserver)= 0; virtual void AddEventObserverL(MMdEEventObserver& aObserver, CMdECondition* aCondition = NULL, TUint32 aNotificationType = ENotifyAdd | ENotifyRemove, CMdENamespaceDef* aNamespaceDef = NULL) = 0; virtual void RemoveEventObserverL(MMdEEventObserver& aObserver, CMdENamespaceDef* aNamespaceDef = NULL) = 0; virtual void ImportSchemaL( const TDesC& aFileName ) = 0; virtual TInt ImportMetadataL( const TDesC& aFileName ) = 0; virtual void ImportMetadata( const TDesC& aFileName, TPckgBuf<TInt>& aResult, TRequestStatus& aStatus ) = 0; virtual void ExportMetadataL( const TDesC& aFileName, const CMdENamespaceDef* aNamespaceDef = NULL, const RPointerArray<CMdEObjectDef>* aObjectDefs = NULL, const RPointerArray<CMdERelationDef>* aRelationDefs = NULL, const RPointerArray<CMdEEventDef>* aEventDefs = NULL ) = 0; virtual void ExportMetadataL( const TDesC& aFileName, TRequestStatus& aStatus, RMdEDataBuffer& aBuffer, const CMdENamespaceDef* aNamespaceDef = NULL, const RPointerArray<CMdEObjectDef>* aObjectDefs = NULL, const RPointerArray<CMdERelationDef>* aRelationDefs = NULL, const RPointerArray<CMdEEventDef>* aEventDefs = NULL ) = 0; virtual void LoadSchemaL() = 0; virtual RMdEEngineSession& EngineSession() = 0; virtual void GetSchemaVersionL( TInt& aMajorVersion, TInt& aMinorVersion) = 0; virtual void SetObjectToPresentByGuidL( const TInt64& aGuidHigh, const TInt64& aGuidLow ) = 0; virtual void AddObjectObserverWithUriL( MMdEObjectObserverWithUri& aObserver, CMdELogicCondition* aCondition = NULL, TUint32 aNotificationType = ENotifyAdd | ENotifyModify | ENotifyRemove, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; virtual void RemoveObjectObserverWithUriL( MMdEObjectObserverWithUri& aObserver, CMdENamespaceDef* aNamespaceDef = NULL ) = 0; protected: CMdESession(); void SessionConstruct(); };# 1 "X:/epoc32/include/platform/mw/mdeitem.h" 1#define __MDEITEM_H__class CMdESession;class CMdEItem : public CBase {public: virtual ~CMdEItem(); IMPORT_C TBool BelongsToSession() const; IMPORT_C CMdESession& Session() const; IMPORT_C TBool InDatabase() const; IMPORT_C TItemId Id() const; void SetId(TItemId aId); void SetSession(CMdESession& aSession);protected: CMdEItem(CMdESession* aSession, TItemId aId); void ItemBaseConstruct(); void CheckSession() const;private: CMdESession* iSession; TItemId iId; friend class CMdESession; };# 1791 "X:/epoc32/include/platform/mw/mdesession.h" 2# 1 "X:/epoc32/include/platform/mw/mdenamespacedef.h" 1#define __MDENAMESPACEDEF_H__class CMdESession;class CMdCSerializationBuffer;class CMdERelationDef;class CMdEEventDef;class CMdEObjectDef;class TMdCNamespaceDef;class CMdENamespaceDef : public CBase {public: IMPORT_C TBool ReadOnly() const; IMPORT_C const TDesC& Name() const; IMPORT_C TInt Compare(const CMdENamespaceDef& aNamespaceDef) const; IMPORT_C TInt ObjectDefCount() const; IMPORT_C CMdEObjectDef& ObjectDefL(TInt aIndex); IMPORT_C CMdEObjectDef& GetObjectDefL(const TDesC& aName); IMPORT_C TInt RelationDefCount() const; IMPORT_C CMdERelationDef& RelationDefL(TInt aIndex); IMPORT_C CMdERelationDef& GetRelationDefL(const TDesC& aName); IMPORT_C TInt EventDefCount() const; IMPORT_C CMdEEventDef& EventDefL(TInt aIndex); IMPORT_C CMdEEventDef& GetEventDefL(const TDesC& aName);public: static CMdENamespaceDef* NewL(const CMdESession& aMdeSession, const TMdCNamespaceDef& aNamespaceDef, CMdCSerializationBuffer& aSchemaBuffer); static CMdENamespaceDef* NewLC(const CMdESession& aMdeSession, const TMdCNamespaceDef& aNamespaceDef, CMdCSerializationBuffer& aSchemaBuffer); virtual ~CMdENamespaceDef(); TDefId Id() const; CMdEObjectDef* GetObjectDefL(TDefId aId); CMdERelationDef* GetRelationDefL(TDefId aId); CMdEEventDef* GetEventDefL(TDefId aId); const CMdESession& Session() const;private: CMdENamespaceDef(const CMdESession& aMdeSession, const TMdCNamespaceDef& aNamespaceDef); void ConstructL(CMdCSerializationBuffer& aSchemaBuffer);private: const CMdESession& iMdeSession; const TMdCNamespaceDef& iNamespaceDef; TPtrC16 iName; RPointerArray<CMdEObjectDef> iObjectDefs; RPointerArray<CMdERelationDef> iRelationDefs; RPointerArray<CMdEEventDef> iEventDefs; };# 1792 "X:/epoc32/include/platform/mw/mdesession.h" 2# 1 "X:/epoc32/include/platform/mw/mdepropertydef.h" 1#define __MDEPROPERTYDEF_H__class CMdCSerializationBuffer;class CMdEObjectDef;class CMdENamespaceDef;class TMdCPropertyDef;class CMdEPropertyDef : public CBase {public: IMPORT_C const TDesC& Name() const; IMPORT_C TPropertyType PropertyType() const; IMPORT_C TBool ReadOnly() const; IMPORT_C TBool Mandatory() const; IMPORT_C TInt Compare(const CMdEPropertyDef& aPropertyDef) const; IMPORT_C CMdEObjectDef& ObjectDef() const; IMPORT_C TInt32 MinInt32ValueL() const; IMPORT_C TInt32 MaxInt32ValueL() const; IMPORT_C TUint32 MinUint32ValueL() const; IMPORT_C TUint32 MaxUint32ValueL() const; IMPORT_C TInt64 MinInt64ValueL() const; IMPORT_C TInt64 MaxInt64ValueL() const; IMPORT_C TReal MinRealValueL() const; IMPORT_C TReal MaxRealValueL() const; IMPORT_C TTime MinTimeValueL() const; IMPORT_C TTime MaxTimeValueL() const; IMPORT_C TInt MinTextLengthL() const; IMPORT_C TInt MaxTextLengthL() const; IMPORT_C CMdENamespaceDef& NamespaceDef() const;public: static CMdEPropertyDef* NewL(const TMdCPropertyDef& aPropertyDef, CMdCSerializationBuffer& aSchemaBuffer, CMdEObjectDef& aObjectDef); static CMdEPropertyDef* NewLC(const TMdCPropertyDef& aPropertyDef, CMdCSerializationBuffer& aSchemaBuffer, CMdEObjectDef& aObjectDef); void SerializeL(CMdCSerializationBuffer& aBuffer) const; virtual ~CMdEPropertyDef(); TDefId Id() const; void SetId(TDefId aId); TDefId ObjectDefId() const; private: CMdEPropertyDef(const TMdCPropertyDef& aPropertyDef, CMdEObjectDef& aObjectDef); void ConstructL(CMdCSerializationBuffer& aSchemaBuffer );private: const TMdCPropertyDef& iPropertyDef; CMdEObjectDef& iObjectDef; TPtrC16 iName; };# 1793 "X:/epoc32/include/platform/mw/mdesession.h" 2# 1 "X:/epoc32/include/platform/mw/mdeobjectdef.h" 1#define __MDEOBJECTDEF_H__class CMdEPropertyDef;class CMdCSerializationBuffer;class CMdENamespaceDef;class TMdCObjectDef;class CMdEObjectDef : public CBase {public: IMPORT_C CMdEObjectDef* ParentL(); IMPORT_C const TDesC& Name() const; IMPORT_C TInt PropertyDefCount() const; IMPORT_C CMdEPropertyDef& PropertyDefL(TInt aIndex); IMPORT_C CMdEPropertyDef& GetPropertyDefL(const TDesC& aName); IMPORT_C TInt Compare(const CMdEObjectDef& aObjectDef) const; IMPORT_C CMdENamespaceDef& NamespaceDef() const; public: static CMdEObjectDef* NewL(const TMdCObjectDef& aObjectDef, CMdCSerializationBuffer& aSchemaBuffer, CMdENamespaceDef& aNamespaceDef ); static CMdEObjectDef* NewLC(const TMdCObjectDef& aObjectDef, CMdCSerializationBuffer& aSchemaBuffer, CMdENamespaceDef& aNamespaceDef ); virtual ~CMdEObjectDef(); IMPORT_C TDefId Id() const; CMdEPropertyDef* GetPropertyDefL(TDefId aId, CMdEObjectDef* aChild = NULL);private: CMdEObjectDef(const TMdCObjectDef& aObjectDef, CMdENamespaceDef& aNamespaceDef); CMdEPropertyDef* PropertyDefL(TInt aIndex, CMdEObjectDef* aChild); CMdEPropertyDef* GetPropertyDefL(const TDesC& aName, CMdEObjectDef* aChild); void ConstructL(CMdCSerializationBuffer& aSchemaBuffer); static TInt CompareProperties(const CMdEPropertyDef& aFirst, const CMdEPropertyDef& aSecond); private: const TMdCObjectDef& iObjectDef; CMdENamespaceDef& iNamespaceDef; TPtrC16 iName; RPointerArray<CMdEPropertyDef> iPropertyDefs; };# 1794 "X:/epoc32/include/platform/mw/mdesession.h" 2# 1 "X:/epoc32/include/platform/mw/mderelationdef.h" 1#define __MDERELATIONDEF_H__class CMdCSerializationBuffer;class CMdENamespaceDef;class TMdCRelationDef;class CMdERelationDef : public CBase {public: static CMdERelationDef* NewL(const TMdCRelationDef& aRelationDef, CMdCSerializationBuffer& aSchemaBuffer, CMdENamespaceDef& aNamespaceDef); static CMdERelationDef* NewLC(const TMdCRelationDef& aRelationDef, CMdCSerializationBuffer& aSchemaBuffer, CMdENamespaceDef& aNamespaceDef); IMPORT_C const TDesC& Name() const; IMPORT_C TInt Compare(const CMdERelationDef& aRelationDef) const; IMPORT_C CMdENamespaceDef& NamespaceDef() const;public: virtual ~CMdERelationDef(); TDefId Id() const;private: CMdERelationDef(const TMdCRelationDef& aRelationDef, CMdENamespaceDef& aNamespaceDef); void ConstructL(CMdCSerializationBuffer& aSchemaBuffer);private: const TMdCRelationDef& iRelationDef; CMdENamespaceDef& iNamespaceDef; TPtrC16 iName; };# 1795 "X:/epoc32/include/platform/mw/mdesession.h" 2# 1 "X:/epoc32/include/platform/mw/mdeeventdef.h" 1#define __MDEEVENTDEF_H__class CMdCSerializationBuffer;class CMdENamespaceDef;class TMdCEventDef;class CMdEEventDef : public CBase {public: IMPORT_C const TDesC& Name() const; IMPORT_C TInt Compare(const CMdEEventDef& aEventDef) const; IMPORT_C CMdENamespaceDef& NamespaceDef() const; public: static CMdEEventDef* NewL(const TMdCEventDef& aEventDef, CMdCSerializationBuffer& aSchemaBuffer, CMdENamespaceDef& aNamespaceDef); static CMdEEventDef* NewLC(const TMdCEventDef& aEventDef, CMdCSerializationBuffer& aSchemaBuffer, CMdENamespaceDef& aNamespaceDef); virtual ~CMdEEventDef(); TDefId Id() const; private: CMdEEventDef(const TMdCEventDef& aEventDef, CMdENamespaceDef& aNamespaceDef); void ConstructL(CMdCSerializationBuffer& aSchemaBuffer);private: const TMdCEventDef& iEventDef; CMdENamespaceDef& iNamespaceDef; TPtrC16 iName; };# 1796 "X:/epoc32/include/platform/mw/mdesession.h" 2# 1 "X:/epoc32/include/platform/mw/mdeproperty.h" 1#define __MDEPROPERTY_H__# 1 "X:/epoc32/include/platform/mw/mdeinstanceitem.h" 1#define __MDEINSTANCEITEM_H__enum TMdEInstanceType { EMdETypeObject = 1, EMdETypeRelation, EMdETypeEvent, EMdETypeProperty };class CMdEInstanceItem : public CMdEItem {public: virtual ~CMdEInstanceItem(); virtual TMdEInstanceType InstanceType() const = 0; protected: CMdEInstanceItem(CMdESession* aSession, TItemId aId); void InstanceItemBaseConstruct(); };# 24 "X:/epoc32/include/platform/mw/mdeproperty.h" 2class CMdEObject;class CMdEPropertyDef;class CMdCSerializationBuffer;class CMdEProperty : public CMdEInstanceItem { friend class CMdEObject;public: virtual ~CMdEProperty(); static CMdEProperty* NewL( const CMdEObject& aObject, CMdCSerializationBuffer& aBuffer ); static CMdEProperty* NewLC( const CMdEObject& aObject, CMdCSerializationBuffer& aBuffer ); static CMdEProperty* NewL(const CMdEPropertyDef& aDef, const CMdEObject& aObject); static CMdEProperty* NewLC(const CMdEPropertyDef& aDef, const CMdEObject& aObject); IMPORT_C const CMdEPropertyDef& Def() const; IMPORT_C const CMdEObject& Object() const; IMPORT_C TBool Modified() const; IMPORT_C TBool BoolValueL() const; IMPORT_C TInt8 Int8ValueL() const; IMPORT_C TUint8 Uint8ValueL() const; IMPORT_C TInt16 Int16ValueL() const; IMPORT_C TUint16 Uint16ValueL() const; IMPORT_C TInt32 Int32ValueL() const; IMPORT_C TUint32 Uint32ValueL() const; IMPORT_C TInt64 Int64ValueL() const; IMPORT_C TReal32 Real32ValueL() const; IMPORT_C TReal64 Real64ValueL() const; IMPORT_C TTime TimeValueL() const; IMPORT_C const TDesC& TextValueL() const; IMPORT_C void SetBoolValueL(TBool aValue); IMPORT_C void SetInt8ValueL(TInt8 aValue); IMPORT_C void SetUint8ValueL(TUint8 aValue); IMPORT_C void SetInt16ValueL(TInt16 aValue); IMPORT_C void SetUint16ValueL(TUint16 aValue); IMPORT_C void SetInt32ValueL(TInt32 aValue); IMPORT_C void SetUint32ValueL(TUint32 aValue); IMPORT_C void SetInt64ValueL(TInt64 aValue); IMPORT_C void SetReal32ValueL(TReal32 aValue); IMPORT_C void SetReal64ValueL(TReal64 aValue); IMPORT_C void SetTimeValueL(const TTime& aValue); IMPORT_C void SetTextValueL(const TDesC& aValue); TUint32 RequiredBufferSize() const; TMdCOffset SerializeL(CMdCSerializationBuffer& aBuffer, TMdCOffset aFreespaceOffset) const; private: TUint8 ModFlags() const; void SetRemoved(); TBool Removed(); void ClearFlags(); void SetModified(); CMdEProperty(const CMdEPropertyDef& aDef, const CMdEObject& aObject); void BaseConstructL(); void DoSetTextValueL(const TDesC& aValue); TMdEInstanceType InstanceType() const;protected: TUint8 iModFlags;private: const CMdEPropertyDef& iDef; const CMdEObject& iObject; TMdCValueUnion iValue; };# 1797 "X:/epoc32/include/platform/mw/mdesession.h" 2# 1 "X:/epoc32/include/platform/mw/mdeobject.h" 1#define __MDEOBJECT_H__# 1 "X:/epoc32/include/platform/mw/mdetextproperty.h" 1#define __MDETEXTPROPERTY_H__class CMdETextProperty : public CMdEProperty {public: const TDesC& Value() const; void SetValueL(const TDesC& aValue); };# 1 "X:/epoc32/include/platform/mw/mdetextproperty.inl" 1const static TLitC<sizeof(L"CMdETextProperty::Value" )/2> KCMdETextPropertyGetValuePanic ={sizeof(L"CMdETextProperty::Value" )/2-1,L"CMdETextProperty::Value" };const static TLitC<sizeof(L"CMdETextProperty::SetValueL" )/2> KCMdETextPropertySetValuePanic ={sizeof(L"CMdETextProperty::SetValueL" )/2-1,L"CMdETextProperty::SetValueL" };inline const TDesC& CMdETextProperty::Value() const { TDesC* des = NULL; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ des = (const_cast< TDesC* > &TextValueL() )) ;TTrap::UnTrap();}}; if( err != KErrNone ) { return KNullDesC; } return *des; }inline void CMdETextProperty::SetValueL(const TDesC& aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetTextValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { } } # 45 "X:/epoc32/include/platform/mw/mdetextproperty.h" 2 # 27 "X:/epoc32/include/platform/mw/mdeobject.h" 2# 1 "X:/epoc32/include/platform/mw/mdenumberproperty.h" 1#define __MDENUMBERPROPERTY_H__template< class T >class CMdENumberProperty : public CMdEProperty {public: T Value() const; void SetValueL(T aValue); };typedef CMdENumberProperty<TBool> CMdEBoolProperty;typedef CMdENumberProperty<TInt8> CMdEInt8Property;typedef CMdENumberProperty<TUint8> CMdEUint8Property;typedef CMdENumberProperty<TInt16> CMdEInt16Property;typedef CMdENumberProperty<TUint16> CMdEUint16Property;typedef CMdENumberProperty<TInt32> CMdEInt32Property;typedef CMdENumberProperty<TUint32> CMdEUint32Property;typedef CMdENumberProperty<TInt64> CMdEInt64Property;typedef CMdENumberProperty<TReal32> CMdEReal32Property;typedef CMdENumberProperty<TReal64> CMdEReal64Property;typedef CMdENumberProperty<TTime> CMdETimeProperty;# 1 "X:/epoc32/include/platform/mw/mdenumberproperty.inl" 1#define MDE_DEFINE_NUMBER_PROPERTY(PropertyType) template<> inline TBool CMdENumberProperty< TBool >::Value() const { TBool value = 0 ; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ value = BoolValueL() ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::Value" )/2> KCMdEPropertyGetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::Value" )/2-1,L"CMdEPropertyTypeProperty::Value" }; User::Panic( KCMdEPropertyGetValuePanic, KErrNotSupported ); } return value; } template<> inline void CMdENumberProperty<TBool >::SetValueL(TBool aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetBoolValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2> KCMdEPropertySetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2-1,L"CMdEPropertyTypeProperty::SetValueL" }; User::Panic( KCMdEPropertySetValuePanic, KErrNotSupported ); } }template<> inline TInt8 CMdENumberProperty< TInt8 >::Value() const { TInt8 value = 0 ; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ value = Int8ValueL() ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::Value" )/2> KCMdEPropertyGetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::Value" )/2-1,L"CMdEPropertyTypeProperty::Value" }; User::Panic( KCMdEPropertyGetValuePanic, KErrNotSupported ); } return value; } template<> inline void CMdENumberProperty<TInt8 >::SetValueL(TInt8 aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetInt8ValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2> KCMdEPropertySetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2-1,L"CMdEPropertyTypeProperty::SetValueL" }; User::Panic( KCMdEPropertySetValuePanic, KErrNotSupported ); } }template<> inline TUint8 CMdENumberProperty< TUint8 >::Value() const { TUint8 value = 0 ; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ value = Uint8ValueL() ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::Value" )/2> KCMdEPropertyGetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::Value" )/2-1,L"CMdEPropertyTypeProperty::Value" }; User::Panic( KCMdEPropertyGetValuePanic, KErrNotSupported ); } return value; } template<> inline void CMdENumberProperty<TUint8 >::SetValueL(TUint8 aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetUint8ValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2> KCMdEPropertySetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2-1,L"CMdEPropertyTypeProperty::SetValueL" }; User::Panic( KCMdEPropertySetValuePanic, KErrNotSupported ); } }template<> inline TInt16 CMdENumberProperty< TInt16 >::Value() const { TInt16 value = 0 ; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ value = Int16ValueL() ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::Value" )/2> KCMdEPropertyGetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::Value" )/2-1,L"CMdEPropertyTypeProperty::Value" }; User::Panic( KCMdEPropertyGetValuePanic, KErrNotSupported ); } return value; } template<> inline void CMdENumberProperty<TInt16 >::SetValueL(TInt16 aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetInt16ValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2> KCMdEPropertySetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2-1,L"CMdEPropertyTypeProperty::SetValueL" }; User::Panic( KCMdEPropertySetValuePanic, KErrNotSupported ); } }template<> inline TUint16 CMdENumberProperty< TUint16 >::Value() const { TUint16 value = 0 ; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ value = Uint16ValueL() ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::Value" )/2> KCMdEPropertyGetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::Value" )/2-1,L"CMdEPropertyTypeProperty::Value" }; User::Panic( KCMdEPropertyGetValuePanic, KErrNotSupported ); } return value; } template<> inline void CMdENumberProperty<TUint16 >::SetValueL(TUint16 aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetUint16ValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2> KCMdEPropertySetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2-1,L"CMdEPropertyTypeProperty::SetValueL" }; User::Panic( KCMdEPropertySetValuePanic, KErrNotSupported ); } }template<> inline TInt32 CMdENumberProperty< TInt32 >::Value() const { TInt32 value = 0 ; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ value = Int32ValueL() ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::Value" )/2> KCMdEPropertyGetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::Value" )/2-1,L"CMdEPropertyTypeProperty::Value" }; User::Panic( KCMdEPropertyGetValuePanic, KErrNotSupported ); } return value; } template<> inline void CMdENumberProperty<TInt32 >::SetValueL(TInt32 aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetInt32ValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2> KCMdEPropertySetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2-1,L"CMdEPropertyTypeProperty::SetValueL" }; User::Panic( KCMdEPropertySetValuePanic, KErrNotSupported ); } }template<> inline TUint32 CMdENumberProperty< TUint32 >::Value() const { TUint32 value = 0 ; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ value = Uint32ValueL() ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::Value" )/2> KCMdEPropertyGetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::Value" )/2-1,L"CMdEPropertyTypeProperty::Value" }; User::Panic( KCMdEPropertyGetValuePanic, KErrNotSupported ); } return value; } template<> inline void CMdENumberProperty<TUint32 >::SetValueL(TUint32 aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetUint32ValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2> KCMdEPropertySetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2-1,L"CMdEPropertyTypeProperty::SetValueL" }; User::Panic( KCMdEPropertySetValuePanic, KErrNotSupported ); } }template<> inline TInt64 CMdENumberProperty< TInt64 >::Value() const { TInt64 value = 0 ; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ value = Int64ValueL() ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::Value" )/2> KCMdEPropertyGetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::Value" )/2-1,L"CMdEPropertyTypeProperty::Value" }; User::Panic( KCMdEPropertyGetValuePanic, KErrNotSupported ); } return value; } template<> inline void CMdENumberProperty<TInt64 >::SetValueL(TInt64 aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetInt64ValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2> KCMdEPropertySetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2-1,L"CMdEPropertyTypeProperty::SetValueL" }; User::Panic( KCMdEPropertySetValuePanic, KErrNotSupported ); } }template<> inline TReal32 CMdENumberProperty< TReal32 >::Value() const { TReal32 value = 0 ; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ value = Real32ValueL() ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::Value" )/2> KCMdEPropertyGetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::Value" )/2-1,L"CMdEPropertyTypeProperty::Value" }; User::Panic( KCMdEPropertyGetValuePanic, KErrNotSupported ); } return value; } template<> inline void CMdENumberProperty<TReal32 >::SetValueL(TReal32 aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetReal32ValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2> KCMdEPropertySetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2-1,L"CMdEPropertyTypeProperty::SetValueL" }; User::Panic( KCMdEPropertySetValuePanic, KErrNotSupported ); } }template<> inline TReal64 CMdENumberProperty< TReal64 >::Value() const { TReal64 value = 0 ; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ value = Real64ValueL() ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::Value" )/2> KCMdEPropertyGetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::Value" )/2-1,L"CMdEPropertyTypeProperty::Value" }; User::Panic( KCMdEPropertyGetValuePanic, KErrNotSupported ); } return value; } template<> inline void CMdENumberProperty<TReal64 >::SetValueL(TReal64 aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetReal64ValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2> KCMdEPropertySetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2-1,L"CMdEPropertyTypeProperty::SetValueL" }; User::Panic( KCMdEPropertySetValuePanic, KErrNotSupported ); } }template<> inline TTime CMdENumberProperty< TTime >::Value() const { TTime value = 0 ; TInt err ;{TTrap __t;if (__t.Trap( err )==0){ value = TimeValueL() ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::Value" )/2> KCMdEPropertyGetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::Value" )/2-1,L"CMdEPropertyTypeProperty::Value" }; User::Panic( KCMdEPropertyGetValuePanic, KErrNotSupported ); } return value; } template<> inline void CMdENumberProperty<TTime >::SetValueL(TTime aValue) { TInt err ;{TTrap __t;if (__t.Trap( err )==0){ SetTimeValueL( aValue ) ;TTrap::UnTrap();}}; if( err != KErrNone ) { const static TLitC<sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2> KCMdEPropertySetValuePanic ={sizeof(L"CMdEPropertyTypeProperty::SetValueL" )/2-1,L"CMdEPropertyTypeProperty::SetValueL" }; User::Panic( KCMdEPropertySetValuePanic, KErrNotSupported ); } }# 59 "X:/epoc32/include/platform/mw/mdenumberproperty.h" 2# 28 "X:/epoc32/include/platform/mw/mdeobject.h" 2class CMdEObjectDef;class CMdEPropertyDef;class CMdEProperty;class CMdCSerializationBuffer;class CMdENamespaceDef;class TMdEObject {public: IMPORT_C TMdEObject(); IMPORT_C TItemId Id() const; IMPORT_C const CMdEObjectDef& DefL() const; IMPORT_C TBool Confidential() const; IMPORT_C TBool Placeholder() const; IMPORT_C TBool Removed() const; IMPORT_C TBool NotPresent() const; public: static TUint32 RequiredBufferSize(); void DeSerializeL(CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef);protected: TItemId iId; CMdEObjectDef* iDef; TUint32 iFlags; };class CMdEObject : public CMdEInstanceItem {public: static CMdEObject* NewL( CMdESession* aSession, CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef ); static CMdEObject* NewLC( CMdESession* aSession, CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef ); static CMdEObject* NewL( CMdEObjectDef& aDef, const TDesC& aUri, TUint32 aMediaId = 0 ); static CMdEObject* NewLC( CMdEObjectDef& aDef, const TDesC& aUri, TUint32 aMediaId = 0 ); virtual ~CMdEObject(); IMPORT_C CMdEObjectDef& Def() const; IMPORT_C void SetDefL(CMdEObjectDef& aDef); IMPORT_C const TDesC& Uri() const; IMPORT_C void SetUriL(const TDesC& aUri); IMPORT_C TBool Confidential() const; IMPORT_C void SetConfidential(TBool aValue); IMPORT_C TBool Placeholder() const; IMPORT_C void SetPlaceholder(TBool aValue); IMPORT_C TUint32 MediaId() const; IMPORT_C void SetMediaId(TUint32 aMediaId); IMPORT_C TUint32 UsageCount() const; IMPORT_C void Guid( TInt64& aGuidHigh, TInt64& aGuidLow ) const; IMPORT_C void SetGuid( const TInt64& aGuidHigh, const TInt64& aGuidLow ); IMPORT_C TBool OpenForModifications() const; IMPORT_C TInt PropertyCount() const; IMPORT_C CMdEProperty& PropertyL(TInt aIndex) const; IMPORT_C TInt Property(const CMdEPropertyDef& aDef, CMdEProperty*& aProperty, TInt aStartAt=0) const; IMPORT_C TInt PropertyCount(const CMdEPropertyDef& aDef) const; IMPORT_C CMdEProperty& AddBoolPropertyL(CMdEPropertyDef& aDef, TBool aValue); IMPORT_C CMdEProperty& AddInt8PropertyL(CMdEPropertyDef& aDef, TInt8 aValue); IMPORT_C CMdEProperty& AddUint8PropertyL(CMdEPropertyDef& aDef, TUint8 aValue); IMPORT_C CMdEProperty& AddInt16PropertyL(CMdEPropertyDef& aDef, TInt16 aValue); IMPORT_C CMdEProperty& AddUint16PropertyL(CMdEPropertyDef& aDef, TUint16 aValue); IMPORT_C CMdEProperty& AddInt32PropertyL(CMdEPropertyDef& aDef, TInt32 aValue); IMPORT_C CMdEProperty& AddUint32PropertyL(CMdEPropertyDef& aDef, TUint32 aValue); IMPORT_C CMdEProperty& AddInt64PropertyL(CMdEPropertyDef& aDef, TInt64 aValue); IMPORT_C CMdEProperty& AddReal32PropertyL(CMdEPropertyDef& aDef, TReal32 aValue); IMPORT_C CMdEProperty& AddReal64PropertyL(CMdEPropertyDef& aDef, TReal64 aValue); IMPORT_C CMdEProperty& AddTextPropertyL(CMdEPropertyDef& aDef, const TDesC& aValue); IMPORT_C CMdEProperty& AddTimePropertyL(CMdEPropertyDef& aDef, TTime aValue); IMPORT_C void RemoveProperty(TInt aIndex); IMPORT_C TInt FreeTextCount() const; IMPORT_C TPtrC FreeText(TInt aIndex) const; IMPORT_C TInt FreeTextIndex(const TDesC& aFreeText) const; IMPORT_C void AddFreeTextL(const TDesC& aFreeText); IMPORT_C void RemoveFreeText(TInt aIndex); IMPORT_C void MovePropertiesL(CMdEObject& aObject); TBool ObjectModified() const; TBool FreeTextModified() const; TBool PropertyModified() const; void ClearObject( TBool aClearFlags = ETrue ); void SetNotOpenForModifications(); void AutoLockL() const; TUint32 RequiredBufferSize() const; TMdCOffset SerializeL(CMdCSerializationBuffer& aBuffer, TMdCOffset aFreespaceOffset) const;protected: virtual TMdEInstanceType InstanceType() const;private: CMdEObject( CMdESession* aSession, TItemId aId, CMdEObjectDef& aDef ); void ConstructL( const TDesC& aUri, TUint32 aMediaId = 0 ); void DoSetUriL(const TDesC& aUri); void DoAddPropertyL(CMdEProperty& aProperty); static TInt CompareProperties(const CMdEProperty& aFirst, const CMdEProperty& aSecond); TInt DoAddFreeTextL(const HBufC& aFreeText); static TInt CompareFreeTexts(const HBufC& aFirst, const HBufC& aSecond); TUint32 ModifiedPropertiesCount() const;private: CMdEObjectDef* iDef; RPointerArray<CMdEProperty> iPropertyArray; RPointerArray<HBufC> iFreeTextArray; mutable TUint32 iFlags; TUint32 iMediaId; TUint32 iUsageCount; TInt64 iGuidHigh; TInt64 iGuidLow; HBufC* iUri; };# 1798 "X:/epoc32/include/platform/mw/mdesession.h" 2# 1 "X:/epoc32/include/platform/mw/mderelation.h" 1#define __MDERELATION_H__class CMdERelationDef;class CMdCSerializationBuffer;class CMdENamespaceDef;class TMdERelation { public: TMdERelation(); IMPORT_C TItemId Id() const; IMPORT_C CMdERelationDef& DefL() const; IMPORT_C TItemId LeftObjectId() const; IMPORT_C TItemId RightObjectId() const; public: TUint32 RequiredBufferSize() const; void DeSerializeL(CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef); private: TItemId iId; TItemId iLeftObjectId; TItemId iRightObjectId; CMdERelationDef* iDef; };class CMdERelation : public CMdEInstanceItem {public: static CMdERelation* NewL(CMdESession* aSession, CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef); static CMdERelation* NewLC(CMdESession* aSession, CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef); static CMdERelation* NewL(CMdERelationDef& aDef, TItemId aLeftObjectId, TItemId aRightObjectId, TInt32 aParameter); static CMdERelation* NewLC(CMdERelationDef& aDef, TItemId aLeftObjectId, TItemId aRightObjectId, TInt32 aParameter); virtual ~CMdERelation(); IMPORT_C CMdERelationDef& Def() const; IMPORT_C TItemId LeftObjectId() const; IMPORT_C TItemId RightObjectId() const; IMPORT_C TInt32 Parameter() const; IMPORT_C void SetParameter(TInt32 aParameter); IMPORT_C void SetLeftObjectIdL( TItemId aLeftObjectId ); IMPORT_C void SetRightObjectIdL( TItemId aRightObjectId ); IMPORT_C void Guid(TInt64& aGuidHigh, TInt64& aGuidLow) const; IMPORT_C void SetGuid(const TInt64& aGuidHigh, const TInt64& aGuidLow); IMPORT_C TTime LastModifiedDate() const; IMPORT_C void SetLastModifiedDate(TTime aLastModifiedDate); TUint32 RequiredBufferSize() const; TMdCOffset SerializeL(CMdCSerializationBuffer& aBuffer, TMdCOffset aFreespaceOffset) const; protected: CMdERelation(CMdESession* aSession, TItemId aId, CMdERelationDef& aDef, TItemId aLeftObjectId, TItemId aRightObjectId, TInt32 aParameter); void ConstructL(); TMdEInstanceType InstanceType() const; private: CMdERelationDef& iDef; TItemId iLeftObjectId; TItemId iRightObjectId; TInt32 iParameter; TInt64 iGuidHigh; TInt64 iGuidLow; TTime iLastModifiedDate; };# 1799 "X:/epoc32/include/platform/mw/mdesession.h" 2# 1 "X:/epoc32/include/platform/mw/mdeevent.h" 1#define __MDEEVENT_H__class CMdEEventDef;class CMdCSerializationBuffer;class CMdENamespaceDef;class CMdEEvent : public CMdEInstanceItem {public: static CMdEEvent* NewL(CMdESession* aSession, CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef ); static CMdEEvent* NewLC(CMdESession* aSession, CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef ); static CMdEEvent* NewL(CMdEEventDef& aDef, TItemId aObjectId, TTime aTime, const TDesC* aSource, const TDesC* aParticipant); static CMdEEvent* NewLC(CMdEEventDef& aDef, TItemId aObjectId, TTime aTime, const TDesC* aSource, const TDesC* aParticipant ); virtual ~CMdEEvent(); IMPORT_C CMdEEventDef& Def() const; IMPORT_C TItemId ObjectId() const; IMPORT_C TTime Time() const; IMPORT_C const TDesC* Source() const; IMPORT_C const TDesC* Participant() const; TUint32 RequiredBufferSize() const; TMdCOffset SerializeL(CMdCSerializationBuffer& aBuffer, TMdCOffset aFreespaceOffset) const; TMdEInstanceType InstanceType() const;private: CMdEEvent(CMdESession* aSession, TItemId aId, CMdEEventDef& aDef, TItemId aObjectId, TTime aTime); void ConstructL(const TDesC* aSource, const TDesC* aParticipant);private: CMdEEventDef& iDef; TItemId iObjectId; TTime iTime; HBufC* iSource; HBufC* iParticipant; };# 1800 "X:/epoc32/include/platform/mw/mdesession.h" 2# 1 "X:/epoc32/include/platform/mw/mdedatabuffer.h" 1#define _MDEDATABUFFER_H_class CMdCSerializationBuffer;class RMdEDataBuffer{public: IMPORT_C RMdEDataBuffer(); IMPORT_C void Close(); void SetBufferL(CMdCSerializationBuffer* aBuffer); CMdCSerializationBuffer* GetBufferLC();private: RMdEDataBuffer(const RMdEDataBuffer&); private: CMdCSerializationBuffer* iBuffer;};# 1801 "X:/epoc32/include/platform/mw/mdesession.h" 2# 22 "X:/sf/mw/imghandling/imagehandlingutilities/thumbnailmanager/thumbagdaemon/src/thumbagdaemon.cpp" 2# 1 "X:/epoc32/include/platform/mw/mdeconstants.h" 1#define MDECONSTANTS_Hnamespace MdeConstants { namespace Object { const static TLitC<sizeof(L"Object" )/2> KBaseObject ={sizeof(L"Object" )/2-1,L"Object" }; const static TLitC<sizeof(L"" )/2> KAutomaticUri ={sizeof(L"" )/2-1,L"" }; const static TLitC<sizeof(L"Size" )/2> KSizeProperty ={sizeof(L"Size" )/2-1,L"Size" }; const static TLitC<sizeof(L"Origin" )/2> KOriginProperty ={sizeof(L"Origin" )/2-1,L"Origin" }; const static TLitC<sizeof(L"UsageCount" )/2> KUsageCountProperty ={sizeof(L"UsageCount" )/2-1,L"UsageCount" }; const static TLitC<sizeof(L"CreationDate" )/2> KCreationDateProperty ={sizeof(L"CreationDate" )/2-1,L"CreationDate" }; const static TLitC<sizeof(L"LastModifiedDate" )/2> KLastModifiedDateProperty ={sizeof(L"LastModifiedDate" )/2-1,L"LastModifiedDate" }; const static TLitC<sizeof(L"ItemType" )/2> KItemTypeProperty ={sizeof(L"ItemType" )/2-1,L"ItemType" }; const static TLitC<sizeof(L"Title" )/2> KTitleProperty ={sizeof(L"Title" )/2-1,L"Title" }; const static TLitC<sizeof(L"TimeOffset" )/2> KTimeOffsetProperty ={sizeof(L"TimeOffset" )/2-1,L"TimeOffset" }; const static TLitC<sizeof(L"InDefaultFolder" )/2> KInDefaultFolder ={sizeof(L"InDefaultFolder" )/2-1,L"InDefaultFolder" }; enum TOrigin { EOther = 0, ECamera = 1, EDownloaded = 2, ESideLoaded = 3, ERecorded = 4 }; } typedef MdeConstants::Object::TOrigin Origin; namespace Location { const static TLitC<sizeof(L"Location" )/2> KLocationObject ={sizeof(L"Location" )/2-1,L"Location" }; const static TLitC<sizeof(L"application/vnd.nokia.mde.locationcontext" )/2> KLocationItemType ={sizeof(L"application/vnd.nokia.mde.locationcontext" )/2-1,L"application/vnd.nokia.mde.locationcontext" }; const static TLitC<sizeof(L"CellID" )/2> KCellIdProperty ={sizeof(L"CellID" )/2-1,L"CellID" }; const static TLitC<sizeof(L"CountryCodeStr" )/2> KCountryCodeProperty ={sizeof(L"CountryCodeStr" )/2-1,L"CountryCodeStr" }; const static TLitC<sizeof(L"NetworkCodeStr" )/2> KNetworkCodeProperty ={sizeof(L"NetworkCodeStr" )/2-1,L"NetworkCodeStr" }; const static TLitC<sizeof(L"LocationAreaCode" )/2> KLocationAreaCodeProperty ={sizeof(L"LocationAreaCode" )/2-1,L"LocationAreaCode" }; const static TLitC<sizeof(L"Speed" )/2> KSpeedProperty ={sizeof(L"Speed" )/2-1,L"Speed" }; const static TLitC<sizeof(L"Direction" )/2> KDirectionProperty ={sizeof(L"Direction" )/2-1,L"Direction" }; const static TLitC<sizeof(L"Quality" )/2> KQualityProperty ={sizeof(L"Quality" )/2-1,L"Quality" }; const static TLitC<sizeof(L"Latitude" )/2> KLatitudeProperty ={sizeof(L"Latitude" )/2-1,L"Latitude" }; const static TLitC<sizeof(L"Longitude" )/2> KLongitudeProperty ={sizeof(L"Longitude" )/2-1,L"Longitude" }; const static TLitC<sizeof(L"Altitude" )/2> KAltitudeProperty ={sizeof(L"Altitude" )/2-1,L"Altitude" }; const static TLitC<sizeof(L"Satellites" )/2> KSatellitesProperty ={sizeof(L"Satellites" )/2-1,L"Satellites" }; const static TLitC<sizeof(L"Country" )/2> KCountryProperty ={sizeof(L"Country" )/2-1,L"Country" }; const static TLitC<sizeof(L"CellName" )/2> KCellNameProperty ={sizeof(L"CellName" )/2-1,L"CellName" }; } namespace Calendar { const static TLitC<sizeof(L"Calendar" )/2> KCalendarObject ={sizeof(L"Calendar" )/2-1,L"Calendar" }; const static TLitC<sizeof(L"application/vnd.nokia.mde.calendarcontext" )/2> KCalendarItemType ={sizeof(L"application/vnd.nokia.mde.calendarcontext" )/2-1,L"application/vnd.nokia.mde.calendarcontext" }; const static TLitC<sizeof(L"CalendarType" )/2> KCalendarTypeProperty ={sizeof(L"CalendarType" )/2-1,L"CalendarType" }; const static TLitC<sizeof(L"StartTime" )/2> KStartTimeProperty ={sizeof(L"StartTime" )/2-1,L"StartTime" }; const static TLitC<sizeof(L"EndTime" )/2> KEndTimeProperty ={sizeof(L"EndTime" )/2-1,L"EndTime" }; const static TLitC<sizeof(L"Location" )/2> KLocationProperty ={sizeof(L"Location" )/2-1,L"Location" }; const static TLitC<sizeof(L"vCalendar" )/2> KvCalendarProperty ={sizeof(L"vCalendar" )/2-1,L"vCalendar" }; const static TLitC<sizeof(L"LocalUid" )/2> KLocalUidProperty ={sizeof(L"LocalUid" )/2-1,L"LocalUid" }; } namespace Contact { const static TLitC<sizeof(L"Contact" )/2> KContactObject ={sizeof(L"Contact" )/2-1,L"Contact" }; const static TLitC<sizeof(L"application/vnd.nokia.mde.contactcontext" )/2> KContactItemType ={sizeof(L"application/vnd.nokia.mde.contactcontext" )/2-1,L"application/vnd.nokia.mde.contactcontext" }; const static TLitC<sizeof(L"Number" )/2> KNumberProperty ={sizeof(L"Number" )/2-1,L"Number" }; const static TLitC<sizeof(L"EmailAddress" )/2> KEmailAddressProperty ={sizeof(L"EmailAddress" )/2-1,L"EmailAddress" }; const static TLitC<sizeof(L"Company" )/2> KCompanyProperty ={sizeof(L"Company" )/2-1,L"Company" }; const static TLitC<sizeof(L"JobTitle" )/2> KJobTitleProperty ={sizeof(L"JobTitle" )/2-1,L"JobTitle" }; const static TLitC<sizeof(L"Address" )/2> KAddressProperty ={sizeof(L"Address" )/2-1,L"Address" }; const static TLitC<sizeof(L"ContactURL" )/2> KURLProperty ={sizeof(L"ContactURL" )/2-1,L"ContactURL" }; const static TLitC<sizeof(L"vCard" )/2> KvCardProperty ={sizeof(L"vCard" )/2-1,L"vCard" }; } namespace Message { const static TLitC<sizeof(L"Message" )/2> KMessageObject ={sizeof(L"Message" )/2-1,L"Message" }; const static TLitC<sizeof(L"application/vnd.nokia.mde.sms" )/2> KSMSItemType ={sizeof(L"application/vnd.nokia.mde.sms" )/2-1,L"application/vnd.nokia.mde.sms" }; const static TLitC<sizeof(L"application/vnd.nokia.mde.mms" )/2> KMMSItemType ={sizeof(L"application/vnd.nokia.mde.mms" )/2-1,L"application/vnd.nokia.mde.mms" }; const static TLitC<sizeof(L"Received" )/2> KReceivedProperty ={sizeof(L"Received" )/2-1,L"Received" }; const static TLitC<sizeof(L"Sender" )/2> KSenderProperty ={sizeof(L"Sender" )/2-1,L"Sender" }; const static TLitC<sizeof(L"ToWhom" )/2> KToWhomProperty ={sizeof(L"ToWhom" )/2-1,L"ToWhom" }; } namespace Album { const static TLitC<sizeof(L"Album" )/2> KAlbumObject ={sizeof(L"Album" )/2-1,L"Album" }; const static TLitC<sizeof(L"application/vnd.nokia.mde.album" )/2> KAlbumItemType ={sizeof(L"application/vnd.nokia.mde.album" )/2-1,L"application/vnd.nokia.mde.album" }; const static TLitC<sizeof(L"Ordered" )/2> KOrderedProperty ={sizeof(L"Ordered" )/2-1,L"Ordered" }; const static TLitC<sizeof(L"Type" )/2> KTypeProperty ={sizeof(L"Type" )/2-1,L"Type" }; const static TLitC<sizeof(L"Properties" )/2> KPropertiesProperty ={sizeof(L"Properties" )/2-1,L"Properties" }; const static TLitC<sizeof(L"SlideshowWallpaper" )/2> KSlideshowWallpaperProperty ={sizeof(L"SlideshowWallpaper" )/2-1,L"SlideshowWallpaper" }; enum TAlbumType { EAlbumUser = 0, EAlbumUserPredefined = 1, EAlbumSystemFavourite = 2, EAlbumSystemCamera = 3, }; typedef MdeConstants::Album::TAlbumType AlbumType; } namespace Tag { const static TLitC<sizeof(L"Tag" )/2> KTagObject ={sizeof(L"Tag" )/2-1,L"Tag" }; const static TLitC<sizeof(L"application/vnd.nokia.mde.tag" )/2> KTagItemType ={sizeof(L"application/vnd.nokia.mde.tag" )/2-1,L"application/vnd.nokia.mde.tag" }; } namespace MediaObject { const static TLitC<sizeof(L"MediaObject" )/2> KMediaObject ={sizeof(L"MediaObject" )/2-1,L"MediaObject" }; const static TLitC<sizeof(L"Protected" )/2> KProtectedProperty ={sizeof(L"Protected" )/2-1,L"Protected" }; const static TLitC<sizeof(L"DRM" )/2> KDRMProperty ={sizeof(L"DRM" )/2-1,L"DRM" }; const static TLitC<sizeof(L"ThumbnailPresent" )/2> KThumbnailPresentProperty ={sizeof(L"ThumbnailPresent" )/2-1,L"ThumbnailPresent" }; const static TLitC<sizeof(L"Resized" )/2> KResizedProperty ={sizeof(L"Resized" )/2-1,L"Resized" }; const static TLitC<sizeof(L"Sample" )/2> KSampleProperty ={sizeof(L"Sample" )/2-1,L"Sample" }; const static TLitC<sizeof(L"Rating" )/2> KRatingProperty ={sizeof(L"Rating" )/2-1,L"Rating" }; const static TLitC<sizeof(L"Privacy" )/2> KPrivacyProperty ={sizeof(L"Privacy" )/2-1,L"Privacy" }; const static TLitC<sizeof(L"ResolutionUnit" )/2> KResolutionUnitProperty ={sizeof(L"ResolutionUnit" )/2-1,L"ResolutionUnit" }; const static TLitC<sizeof(L"Bitrate" )/2> KBitrateProperty ={sizeof(L"Bitrate" )/2-1,L"Bitrate" }; const static TLitC<sizeof(L"Width" )/2> KWidthProperty ={sizeof(L"Width" )/2-1,L"Width" }; const static TLitC<sizeof(L"Height" )/2> KHeightProperty ={sizeof(L"Height" )/2-1,L"Height" }; const static TLitC<sizeof(L"Preinstalled" )/2> KPreinstalledProperty ={sizeof(L"Preinstalled" )/2-1,L"Preinstalled" }; const static TLitC<sizeof(L"AccessCount" )/2> KAccessCountProperty ={sizeof(L"AccessCount" )/2-1,L"AccessCount" }; const static TLitC<sizeof(L"DownloadID" )/2> KDownloadIdProperty ={sizeof(L"DownloadID" )/2-1,L"DownloadID" }; const static TLitC<sizeof(L"Duration" )/2> KDurationProperty ={sizeof(L"Duration" )/2-1,L"Duration" }; const static TLitC<sizeof(L"ReleaseDate" )/2> KReleaseDateProperty ={sizeof(L"ReleaseDate" )/2-1,L"ReleaseDate" }; const static TLitC<sizeof(L"CaptureDate" )/2> KCaptureDateProperty ={sizeof(L"CaptureDate" )/2-1,L"CaptureDate" }; const static TLitC<sizeof(L"Artist" )/2> KArtistProperty ={sizeof(L"Artist" )/2-1,L"Artist" }; const static TLitC<sizeof(L"Author" )/2> KAuthorProperty ={sizeof(L"Author" )/2-1,L"Author" }; const static TLitC<sizeof(L"Copyright" )/2> KCopyrightProperty ={sizeof(L"Copyright" )/2-1,L"Copyright" }; const static TLitC<sizeof(L"Legal" )/2> KLegalProperty ={sizeof(L"Legal" )/2-1,L"Legal" }; const static TLitC<sizeof(L"Description" )/2> KDescriptionProperty ={sizeof(L"Description" )/2-1,L"Description" }; const static TLitC<sizeof(L"Comment" )/2> KCommentProperty ={sizeof(L"Comment" )/2-1,L"Comment" }; const static TLitC<sizeof(L"Genre" )/2> KGenreProperty ={sizeof(L"Genre" )/2-1,L"Genre" }; const static TLitC<sizeof(L"Track" )/2> KTrackProperty ={sizeof(L"Track" )/2-1,L"Track" }; const static TLitC<sizeof(L"AudioFourCC" )/2> KAudioFourCCProperty ={sizeof(L"AudioFourCC" )/2-1,L"AudioFourCC" }; enum TPreinstalledFlag { ENotPreinstalled = 0, EPreinstalled = 1 }; } namespace Video { const static TLitC<sizeof(L"Video" )/2> KVideoObject ={sizeof(L"Video" )/2-1,L"Video" }; const static TLitC<sizeof(L"AgeProfile" )/2> KAgeProfileProperty ={sizeof(L"AgeProfile" )/2-1,L"AgeProfile" }; const static TLitC<sizeof(L"RecordingFlags" )/2> KRecordingFlagsProperty ={sizeof(L"RecordingFlags" )/2-1,L"RecordingFlags" }; const static TLitC<sizeof(L"LastPlayPosition" )/2> KLastPlayPositionProperty ={sizeof(L"LastPlayPosition" )/2-1,L"LastPlayPosition" }; const static TLitC<sizeof(L"Framerate" )/2> KFramerateProperty ={sizeof(L"Framerate" )/2-1,L"Framerate" }; const static TLitC<sizeof(L"AudioLanguage" )/2> KAudioLanguageProperty ={sizeof(L"AudioLanguage" )/2-1,L"AudioLanguage" }; } namespace Image { const static TLitC<sizeof(L"Image" )/2> KImageObject ={sizeof(L"Image" )/2-1,L"Image" }; const static TLitC<sizeof(L"Draft" )/2> KDraftProperty ={sizeof(L"Draft" )/2-1,L"Draft" }; const static TLitC<sizeof(L"FocalPlaneResolutionUnit" )/2> KFocalPlaneResolutionUnitProperty ={sizeof(L"FocalPlaneResolutionUnit" )/2-1,L"FocalPlaneResolutionUnit" }; const static TLitC<sizeof(L"ExposureProgram" )/2> KExposureProgramProperty ={sizeof(L"ExposureProgram" )/2-1,L"ExposureProgram" }; const static TLitC<sizeof(L"FocalLengthIn35mmFilm" )/2> KFocalLengthIn35mmFilmProperty ={sizeof(L"FocalLengthIn35mmFilm" )/2-1,L"FocalLengthIn35mmFilm" }; const static TLitC<sizeof(L"ISOSpeedRatings" )/2> KISOSpeedRatingsProperty ={sizeof(L"ISOSpeedRatings" )/2-1,L"ISOSpeedRatings" }; const static TLitC<sizeof(L"MeteringMode" )/2> KMeteringModeProperty ={sizeof(L"MeteringMode" )/2-1,L"MeteringMode" }; const static TLitC<sizeof(L"WhiteBalance" )/2> KWhiteBalanceProperty ={sizeof(L"WhiteBalance" )/2-1,L"WhiteBalance" }; const static TLitC<sizeof(L"Flash" )/2> KFlashProperty ={sizeof(L"Flash" )/2-1,L"Flash" }; const static TLitC<sizeof(L"ColourSpace" )/2> KColourSpaceProperty ={sizeof(L"ColourSpace" )/2-1,L"ColourSpace" }; const static TLitC<sizeof(L"Orientation" )/2> KOrientationProperty ={sizeof(L"Orientation" )/2-1,L"Orientation" }; const static TLitC<sizeof(L"SamplesPerPixel" )/2> KSamplesPerPixelProperty ={sizeof(L"SamplesPerPixel" )/2-1,L"SamplesPerPixel" }; const static TLitC<sizeof(L"BitsPerSample" )/2> KBitsPerSampleProperty ={sizeof(L"BitsPerSample" )/2-1,L"BitsPerSample" }; const static TLitC<sizeof(L"YCbCrPositioning" )/2> KYCbCrPositioningProperty ={sizeof(L"YCbCrPositioning" )/2-1,L"YCbCrPositioning" }; const static TLitC<sizeof(L"ThumbCompression" )/2> KThumbCompressionProperty ={sizeof(L"ThumbCompression" )/2-1,L"ThumbCompression" }; const static TLitC<sizeof(L"ThumbResolutionUnit" )/2> KThumbResolutionUnitProperty ={sizeof(L"ThumbResolutionUnit" )/2-1,L"ThumbResolutionUnit" }; const static TLitC<sizeof(L"ThumbOrientation" )/2> KThumbOrientationProperty ={sizeof(L"ThumbOrientation" )/2-1,L"ThumbOrientation" }; const static TLitC<sizeof(L"FrameCount" )/2> KFrameCountProperty ={sizeof(L"FrameCount" )/2-1,L"FrameCount" }; const static TLitC<sizeof(L"PixelXDimension" )/2> KPixelXDimensionProperty ={sizeof(L"PixelXDimension" )/2-1,L"PixelXDimension" }; const static TLitC<sizeof(L"PixelYDimension" )/2> KPixelYDimensionProperty ={sizeof(L"PixelYDimension" )/2-1,L"PixelYDimension" }; const static TLitC<sizeof(L"ExifVersion" )/2> KExifVersionProperty ={sizeof(L"ExifVersion" )/2-1,L"ExifVersion" }; const static TLitC<sizeof(L"ComponentsConfiguration" )/2> KComponentsConfigurationProperty ={sizeof(L"ComponentsConfiguration" )/2-1,L"ComponentsConfiguration" }; const static TLitC<sizeof(L"FlashPixVersion" )/2> KFlashPixVersionProperty ={sizeof(L"FlashPixVersion" )/2-1,L"FlashPixVersion" }; const static TLitC<sizeof(L"ThumbXResolution" )/2> KThumbXResolutionProperty ={sizeof(L"ThumbXResolution" )/2-1,L"ThumbXResolution" }; const static TLitC<sizeof(L"ThumbYResolution" )/2> KThumbYResolutionProperty ={sizeof(L"ThumbYResolution" )/2-1,L"ThumbYResolution" }; const static TLitC<sizeof(L"FocalPlaneXResolution" )/2> KFocalPlaneXResolutionProperty ={sizeof(L"FocalPlaneXResolution" )/2-1,L"FocalPlaneXResolution" }; const static TLitC<sizeof(L"FocalPlaneYResolution" )/2> KFocalPlaneYResolutionProperty ={sizeof(L"FocalPlaneYResolution" )/2-1,L"FocalPlaneYResolution" }; const static TLitC<sizeof(L"ExposureTime" )/2> KExposureTimeProperty ={sizeof(L"ExposureTime" )/2-1,L"ExposureTime" }; const static TLitC<sizeof(L"ExposureBiasValue" )/2> KExposureBiasValueProperty ={sizeof(L"ExposureBiasValue" )/2-1,L"ExposureBiasValue" }; const static TLitC<sizeof(L"FNumber" )/2> KFNumberProperty ={sizeof(L"FNumber" )/2-1,L"FNumber" }; const static TLitC<sizeof(L"FocalLength" )/2> KFocalLengthProperty ={sizeof(L"FocalLength" )/2-1,L"FocalLength" }; const static TLitC<sizeof(L"ApertureValue" )/2> KApertureValueProperty ={sizeof(L"ApertureValue" )/2-1,L"ApertureValue" }; const static TLitC<sizeof(L"MaxAperture" )/2> KMaxApertureProperty ={sizeof(L"MaxAperture" )/2-1,L"MaxAperture" }; const static TLitC<sizeof(L"ShutterSpeedValue" )/2> KShutterSpeedValueProperty ={sizeof(L"ShutterSpeedValue" )/2-1,L"ShutterSpeedValue" }; const static TLitC<sizeof(L"XResolution" )/2> KXResolutionProperty ={sizeof(L"XResolution" )/2-1,L"XResolution" }; const static TLitC<sizeof(L"YResolution" )/2> KYResolutionProperty ={sizeof(L"YResolution" )/2-1,L"YResolution" }; const static TLitC<sizeof(L"DateTime" )/2> KDateTimeProperty ={sizeof(L"DateTime" )/2-1,L"DateTime" }; const static TLitC<sizeof(L"DateTimeDigitized" )/2> KDateTimeDigitizedProperty ={sizeof(L"DateTimeDigitized" )/2-1,L"DateTimeDigitized" }; const static TLitC<sizeof(L"DateTimeOriginal" )/2> KDateTimeOriginalProperty ={sizeof(L"DateTimeOriginal" )/2-1,L"DateTimeOriginal" }; const static TLitC<sizeof(L"PixelFormat" )/2> KPixelFormatProperty ={sizeof(L"PixelFormat" )/2-1,L"PixelFormat" }; const static TLitC<sizeof(L"Model" )/2> KModelProperty ={sizeof(L"Model" )/2-1,L"Model" }; const static TLitC<sizeof(L"Make" )/2> KMakeProperty ={sizeof(L"Make" )/2-1,L"Make" }; const static TLitC<sizeof(L"RelatedSoundFile" )/2> KRelatedSoundFileProperty ={sizeof(L"RelatedSoundFile" )/2-1,L"RelatedSoundFile" }; } namespace Audio { const static TLitC<sizeof(L"Audio" )/2> KAudioObject ={sizeof(L"Audio" )/2-1,L"Audio" }; const static TLitC<sizeof(L"SamplingFrequency" )/2> KSamplingFrequencyProperty ={sizeof(L"SamplingFrequency" )/2-1,L"SamplingFrequency" }; const static TLitC<sizeof(L"Album" )/2> KAlbumProperty ={sizeof(L"Album" )/2-1,L"Album" }; const static TLitC<sizeof(L"Composer" )/2> KComposerProperty ={sizeof(L"Composer" )/2-1,L"Composer" }; const static TLitC<sizeof(L"OriginalArtist" )/2> KOriginalArtistProperty ={sizeof(L"OriginalArtist" )/2-1,L"OriginalArtist" }; const static TLitC<sizeof(L"AlbumArtist" )/2> KAlbumArtistProperty ={sizeof(L"AlbumArtist" )/2-1,L"AlbumArtist" }; } namespace Events { const static TLitC<sizeof(L"Created" )/2> KCreated ={sizeof(L"Created" )/2-1,L"Created" }; const static TLitC<sizeof(L"Deleted" )/2> KDeleted ={sizeof(L"Deleted" )/2-1,L"Deleted" }; const static TLitC<sizeof(L"Opened" )/2> KOpened ={sizeof(L"Opened" )/2-1,L"Opened" }; const static TLitC<sizeof(L"Played" )/2> KPlayed ={sizeof(L"Played" )/2-1,L"Played" }; const static TLitC<sizeof(L"Edited" )/2> KEdited ={sizeof(L"Edited" )/2-1,L"Edited" }; const static TLitC<sizeof(L"Sent" )/2> KSent ={sizeof(L"Sent" )/2-1,L"Sent" }; const static TLitC<sizeof(L"Received" )/2> KReceived ={sizeof(L"Received" )/2-1,L"Received" }; } namespace Relations { const static TLitC<sizeof(L"Contains" )/2> KContains ={sizeof(L"Contains" )/2-1,L"Contains" }; const static TLitC<sizeof(L"Replaces" )/2> KReplaces ={sizeof(L"Replaces" )/2-1,L"Replaces" }; const static TLitC<sizeof(L"IsVersionOf" )/2> KIsVersionOf ={sizeof(L"IsVersionOf" )/2-1,L"IsVersionOf" }; const static TLitC<sizeof(L"Requires" )/2> KRequires ={sizeof(L"Requires" )/2-1,L"Requires" }; const static TLitC<sizeof(L"Uses" )/2> KUses ={sizeof(L"Uses" )/2-1,L"Uses" }; const static TLitC<sizeof(L"References" )/2> KReferences ={sizeof(L"References" )/2-1,L"References" }; const static TLitC<sizeof(L"Summarises" )/2> KSummarises ={sizeof(L"Summarises" )/2-1,L"Summarises" }; const static TLitC<sizeof(L"ContainsLocation" )/2> KContainsLocation ={sizeof(L"ContainsLocation" )/2-1,L"ContainsLocation" }; } namespace TrackLog { const static TLitC<sizeof(L"TrackLog" )/2> KTrackLogObject ={sizeof(L"TrackLog" )/2-1,L"TrackLog" }; const static TLitC<sizeof(L"application/vnd.nokia.mde.tracklog" )/2> KTrackLogItemType ={sizeof(L"application/vnd.nokia.mde.tracklog" )/2-1,L"application/vnd.nokia.mde.tracklog" }; const static TLitC<sizeof(L"Length" )/2> KLengthProperty ={sizeof(L"Length" )/2-1,L"Length" }; const static TLitC<sizeof(L"StartTime" )/2> KStartTimeProperty ={sizeof(L"StartTime" )/2-1,L"StartTime" }; const static TLitC<sizeof(L"StopTime" )/2> KStopTimeProperty ={sizeof(L"StopTime" )/2-1,L"StopTime" }; } }typedef MdeConstants::Object::TOrigin TOrigin;# 23 "X:/sf/mw/imghandling/imagehandlingutilities/thumbnailmanager/thumbagdaemon/src/thumbagdaemon.cpp" 2# 1 "X:/epoc32/include/platform/mw/mdequery.h" 1#define __MDEQUERY_H__class CMdESession;class CMdEQuery;class CMdELogicCondition;class TMdEOrderRule;class CMdENamespaceDef;class CMdEItem;class CMdEInstanceItem;class MMdEQueryObserver {public: virtual void HandleQueryNewResults(CMdEQuery& aQuery, TInt aFirstNewItemIndex, TInt aNewItemCount) = 0; virtual void HandleQueryCompleted(CMdEQuery& aQuery, TInt aError) = 0; };static const TUint KMdEQueryDefaultMaxCount = KMaxTUint;class CMdEQuery : public CBase {public: enum TState { EStateFirst = 0x0000, EStateNew, EStateSearching, EStateCompleted, EStateError, EStateLast }; virtual ~CMdEQuery(); IMPORT_C TQueryType Type() const; IMPORT_C CMdENamespaceDef& NamespaceDef() const; IMPORT_C CMdESession& Session() const; IMPORT_C CMdELogicCondition& Conditions() const; IMPORT_C void AppendOrderRuleL(const TMdEOrderRule& aRule); IMPORT_C void InsertOrderRuleL(const TMdEOrderRule& aRule, TInt aPos); IMPORT_C TInt OrderRuleCount() const; IMPORT_C void RemoveOrderRule(TInt aIndex); IMPORT_C TMdEOrderRule OrderRule(TInt aIndex) const; IMPORT_C void FindL(TUint aMaxCount = KMdEQueryDefaultMaxCount, TUint aNotifyCount = KMdEQueryDefaultMaxCount); IMPORT_C void Cancel(); IMPORT_C TBool IsComplete() const; IMPORT_C TInt Error() const; IMPORT_C TState State() const; IMPORT_C TInt Count() const; IMPORT_C CMdEItem& ResultItem(TInt aIndex) const; IMPORT_C TItemId ResultId(TInt aIndex) const; IMPORT_C const RArray<TItemId>& ResultIds() const; IMPORT_C CMdEItem* TakeOwnershipOfResult(TInt aIndex); IMPORT_C TBool OwnsResult(TInt aIndex); IMPORT_C void AddObserverL(MMdEQueryObserver& aObserver); IMPORT_C void RemoveObserver(MMdEQueryObserver& aObserver); IMPORT_C void SetResultMode( TQueryResultMode aMode ); IMPORT_C TQueryResultMode ResultMode() const; IMPORT_C CMdEItem& ResultObjectItem() const; IMPORT_C TPtrC16 ResultDistinctValue(TInt aIndex) const; RArray<TMdEOrderRule>& OrderRules(); void SetQueryId( TUint32 aQueryId ) const { iQueryId = aQueryId; } TUint32 GetQueryId() const { return iQueryId; }protected: CMdEQuery(TQueryType aType, CMdESession& aSession, CMdENamespaceDef& aNamespaceDef); void QueryConstructL(); virtual void DoFindL(TUint aMaxCount, TUint aNotifyCount) = 0; virtual void DoCancel(); virtual void NotifyNewResultsL(const RPointerArray<CMdEInstanceItem>& aNewResults); virtual void NotifyNewResultsL(const RArray<TItemId>& aNewResults); virtual void NotifyNewResultsL( const CDesCArray& aNewResults ); virtual void NotifyNewResults(TUint32 aResult); virtual void NotifyCompleted(TInt aError); void SetState(TState aState); void AssertInState(TState aState); void AssertNotInState(TState aState); private: struct TResult { CMdEItem* iItem; TBool iOwned; TResult(CMdEItem* aItem) : iItem(aItem), iOwned(EFalse) {} };private: void AppendResultsL(const RPointerArray<CMdEInstanceItem>& aNewResults); void AppendResultsL(const RArray<TItemId>& aNewResults); void AppendResultsL(const CDesCArray& aNewResults); private: mutable TUint32 iQueryId; CMdESession& iSession; CMdENamespaceDef& iNamespaceDef; TQueryType iType; TQueryResultMode iResultMode; TState iState; TInt iError; CMdELogicCondition* iConditions; RArray<TMdEOrderRule> iOrderRules; RArray<TResult> iResults; RArray<TItemId> iIdResults; TResult iObjectResult; TInt iCountResult; RPointerArray<MMdEQueryObserver> iObservers; CDesCArray* iDistinctResults; TBool iDestroyed; }; # 1 "X:/epoc32/include/platform/mw/mdeobjectquery.h" 1#define __MDEOBJECTQUERY_H__class CMdEObject;class CMdEObjectDef;class CMdEPropertyDef;class CMdEObjectDef;class CMdESession;class CMdEObjectQuery : public CMdEQuery {public: virtual ~CMdEObjectQuery(); IMPORT_C void AddPropertyFilterL( const CMdEPropertyDef* aPropertyDef ); IMPORT_C void ResetPropertyFilter(); IMPORT_C CMdEObject& Result(TInt aIndex) const; IMPORT_C CMdEObjectDef& ObjectDef() const;public: RPointerArray<CMdEPropertyDef>& PropertyFilter(); RPointerArray<CMdEObjectDef>* ObjectDefs() const;protected: CMdEObjectQuery(CMdESession& aSession, CMdENamespaceDef& aNamespaceDef, CMdEObjectDef& aObjectDef, RPointerArray<CMdEObjectDef>* aObjectDefs); void ObjectQueryConstructL(); virtual void DoCancel();private: private: RPointerArray<CMdEPropertyDef> iPropertyFilters; CMdEObjectDef& iObjectDef; RPointerArray<CMdEObjectDef>* iObjectDefs; TBool iFreetextsInResult; };# 662 "X:/epoc32/include/platform/mw/mdequery.h" 2# 1 "X:/epoc32/include/platform/mw/mderelationquery.h" 1#define __MDERELATIONQUERY_H__class CMdERelation;class CMdENamespaceDef;class CMdESession;class CMdERelationQuery : public CMdEQuery {public: virtual ~CMdERelationQuery(); IMPORT_C CMdERelation& Result(TInt aIndex) const;protected: CMdERelationQuery(CMdESession& aSession, CMdENamespaceDef& aNamespaceDef); void RelationQueryConstructL(); virtual void DoCancel();private: private: };# 663 "X:/epoc32/include/platform/mw/mdequery.h" 2# 1 "X:/epoc32/include/platform/mw/mdeeventquery.h" 1#define __MDEEVENTQUERY_H__class CMdEEvent;class CMdENamespaceDef;class CMdEEventQuery : public CMdEQuery {public: virtual ~CMdEEventQuery(); IMPORT_C CMdEEvent& Result(TInt aIndex) const;protected: CMdEEventQuery(CMdESession& aSession, CMdENamespaceDef& aNamespaceDef); void EventQueryConstructL(); virtual void DoCancel(); };# 664 "X:/epoc32/include/platform/mw/mdequery.h" 2# 1 "X:/epoc32/include/platform/mw/mdelogiccondition.h" 1#define __MDELOGICCONDITION_H__# 1 "X:/epoc32/include/platform/mw/mdecondition.h" 1#define __MDECONDITION_H__class CMdCSerializationBuffer;class CMdECondition : public CBase {public: virtual ~CMdECondition(); IMPORT_C TConditionType Type() const; IMPORT_C TBool Negate() const; IMPORT_C void SetNegate(TBool aNegate); IMPORT_C TBool Locked() const; IMPORT_C virtual void SetLocked(TBool aLocked = ETrue); virtual TUint32 InternalQueryOptimizationFlags(TUint32& aFlags) = 0; virtual TUint32 RequiredBufferSize() const = 0; virtual void SerializeL(CMdCSerializationBuffer& aBuffer, TMdCOffset& aFreespaceOffset) const = 0; CMdECondition(TConditionType aType); protected: void ConditionConstruct(); void AssertNotLocked() const;protected: TConditionType iType; TBool iNegated; TBool iLocked; };# 25 "X:/epoc32/include/platform/mw/mdelogiccondition.h" 2# 1 "X:/epoc32/include/platform/mw/mderange.h" 1#define __MDERANGE_H__class CMdCSerializationBuffer; enum TMdERangeType { EMdERangeTypeAny = 0, EMdERangeTypeEqual, EMdERangeTypeNotEqual, EMdERangeTypeLess, EMdERangeTypeLessOrEqual, EMdERangeTypeGreater, EMdERangeTypeGreaterOrEqual, EMdERangeTypeBetween, EMdERangeTypeNotBetween };class TMdESerializeRange { public: static void SerializeL( CMdCSerializationBuffer& aBuffer, TMdERangeType aType, void* aMin, void* aMax, TInt aValueSize ); static TUint32 RequiredBufferSize( TInt aValueSize ); }; # 1 "X:/epoc32/include/platform/mw/mderange.inl" 1#define MDERANGE_INL_template <class T>class TMdERange {public: inline const T& Min() const { return iMin; } inline const T& Max() const { return iMax; } inline const TMdERangeType& Type() const { return iType; } inline void SetMin(const T& aMin) { iMin = aMin; } inline void SetMax(const T& aMax) { iMax = aMax; } inline void SetType(TMdERangeType aType) { iType = aType; } TUint32 RequiredBufferSize() { return TMdESerializeRange::RequiredBufferSize( sizeof(T) ); } void SerializeL(CMdCSerializationBuffer& aBuffer) { TMdESerializeRange::SerializeL( aBuffer, iType, &iMin, &iMax, sizeof(T) ); } TMdERange(const T& aMin, const T& aMax, TMdERangeType aType = EMdERangeTypeAny) : iType(aType), iMin(aMin), iMax(aMax) { } TBool InRange(const T& aValue) { switch( iType ) { case EMdERangeTypeAny: { return ETrue; } case EMdERangeTypeEqual: { return ( aValue == iMin ); } case EMdERangeTypeNotEqual: { return ( aValue != iMin ); } case EMdERangeTypeLess: { return ( aValue < iMax ); } case EMdERangeTypeLessOrEqual: { return ( aValue <= iMax ); } case EMdERangeTypeGreater: { return ( aValue > iMin ); } case EMdERangeTypeGreaterOrEqual: { return ( aValue >= iMin ); } case EMdERangeTypeBetween: { return ( ( iMin <= aValue ) && ( aValue <= iMax ) ); } case EMdERangeTypeNotBetween: { return ( ( iMin > aValue ) || ( aValue > iMax ) ); } default: { return EFalse; } } }private: TMdERangeType iType; T iMin; T iMax; };template <class T>class TMdEAny : public TMdERange<T> {public: TMdEAny() : TMdERange<T>T(0), T(0), EMdERangeTypeAny) {} };template <class T> class TMdEEqual : public TMdERange<T> {public: TMdEEqual(const T& aValue) : TMdERange<T>aValue, aValue, EMdERangeTypeEqual) {} };template <class T> class TMdENotEqual : public TMdERange<T> {public: TMdENotEqual(const T& aValue) : TMdERange<T>aValue, aValue, EMdERangeTypeNotEqual) {} };template <class T> class TMdELess : public TMdERange<T> {public: TMdELess(const T& aLimit) : TMdERange<T>T(0), aLimit, EMdERangeTypeLess) {} };template <class T> class TMdELessEqual : public TMdERange<T> {public: TMdELessEqual(const T& aLimit) : TMdERange<T>T(0), aLimit, EMdERangeTypeLessOrEqual) {} };template <class T> class TMdEGreater : public TMdERange<T> {public: TMdEGreater(const T& aLimit) : TMdERange<T>aLimit, T(0), EMdERangeTypeGreater) {} };template <class T> class TMdEGreaterEqual : public TMdERange<T> {public: TMdEGreaterEqual(const T& aLimit) : TMdERange<T>aLimit, T(0), EMdERangeTypeGreaterOrEqual) {} };template <class T> class TMdEBetween : public TMdERange<T> {public: TMdEBetween(const T& aMin, const T& aMax) : TMdERange<T>aMin, aMax, EMdERangeTypeBetween) {} };template <class T> class TMdENotBetween : public TMdERange<T> {public: TMdENotBetween(const T& aMin, const T& aMax) : TMdERange<T>aMin, aMax, EMdERangeTypeNotBetween) {} };typedef TMdERange<TInt> TMdEIntRange;typedef TMdERange<TUint> TMdEUintRange;typedef TMdERange<TInt64> TMdEInt64Range;typedef TMdERange<TReal> TMdERealRange;typedef TMdERange<TTime> TMdETimeRange;#define MDE_DEFINE_ACTUAL_RANGE_TYPES(RangeName) typedef TMdEAny <TInt> TMdEIntAny ; typedef TMdEAny <TUint> TMdEUintAny ; typedef TMdEAny <TInt64> TMdEInt64Any ; typedef TMdEAny <TReal> TMdERealAny ; typedef TMdEAny <TTime> TMdETimeAny ;typedef TMdEEqual <TInt> TMdEIntEqual ; typedef TMdEEqual <TUint> TMdEUintEqual ; typedef TMdEEqual <TInt64> TMdEInt64Equal ; typedef TMdEEqual <TReal> TMdERealEqual ; typedef TMdEEqual <TTime> TMdETimeEqual ;typedef TMdENotEqual <TInt> TMdEIntNotEqual ; typedef TMdENotEqual <TUint> TMdEUintNotEqual ; typedef TMdENotEqual <TInt64> TMdEInt64NotEqual ; typedef TMdENotEqual <TReal> TMdERealNotEqual ; typedef TMdENotEqual <TTime> TMdETimeNotEqual ;typedef TMdELess <TInt> TMdEIntLess ; typedef TMdELess <TUint> TMdEUintLess ; typedef TMdELess <TInt64> TMdEInt64Less ; typedef TMdELess <TReal> TMdERealLess ; typedef TMdELess <TTime> TMdETimeLess ;typedef TMdELessEqual <TInt> TMdEIntLessEqual ; typedef TMdELessEqual <TUint> TMdEUintLessEqual ; typedef TMdELessEqual <TInt64> TMdEInt64LessEqual ; typedef TMdELessEqual <TReal> TMdERealLessEqual ; typedef TMdELessEqual <TTime> TMdETimeLessEqual ;typedef TMdEGreater <TInt> TMdEIntGreater ; typedef TMdEGreater <TUint> TMdEUintGreater ; typedef TMdEGreater <TInt64> TMdEInt64Greater ; typedef TMdEGreater <TReal> TMdERealGreater ; typedef TMdEGreater <TTime> TMdETimeGreater ;typedef TMdEGreaterEqual <TInt> TMdEIntGreaterEqual ; typedef TMdEGreaterEqual <TUint> TMdEUintGreaterEqual ; typedef TMdEGreaterEqual <TInt64> TMdEInt64GreaterEqual ; typedef TMdEGreaterEqual <TReal> TMdERealGreaterEqual ; typedef TMdEGreaterEqual <TTime> TMdETimeGreaterEqual ;typedef TMdEBetween <TInt> TMdEIntBetween ; typedef TMdEBetween <TUint> TMdEUintBetween ; typedef TMdEBetween <TInt64> TMdEInt64Between ; typedef TMdEBetween <TReal> TMdERealBetween ; typedef TMdEBetween <TTime> TMdETimeBetween ;typedef TMdENotBetween <TInt> TMdEIntNotBetween ; typedef TMdENotBetween <TUint> TMdEUintNotBetween ; typedef TMdENotBetween <TInt64> TMdEInt64NotBetween ; typedef TMdENotBetween <TReal> TMdERealNotBetween ; typedef TMdENotBetween <TTime> TMdETimeNotBetween ; # 47 "X:/epoc32/include/platform/mw/mderange.h" 2# 26 "X:/epoc32/include/platform/mw/mdelogiccondition.h" 2# 1 "X:/epoc32/include/platform/mw/mderangepropertycondition.h" 1#define __MDERANGEPROPERTYCONDITION_H__# 1 "X:/epoc32/include/platform/mw/mdepropertycondition.h" 1#define __MDEPROPERTYCONDITION_H__class CMdEPropertyDef;class CMdCSerializationBuffer;class CMdEPropertyCondition : public CMdECondition {public: static CMdEPropertyCondition* NewL( const CMdEPropertyDef& aPropertyDef ); static CMdEPropertyCondition* NewLC( const CMdEPropertyDef& aPropertyDef ); virtual ~CMdEPropertyCondition(); IMPORT_C const CMdEPropertyDef& PropertyDef() const; TUint32 InternalQueryOptimizationFlags(TUint32& aFlags); virtual TUint32 RequiredBufferSize() const; virtual void SerializeL(CMdCSerializationBuffer& aBuffer, TMdCOffset& aFreespaceOffset) const; protected: CMdEPropertyCondition(const CMdEPropertyDef& aPropertyDef); void ConstructL(); CMdEPropertyCondition(TConditionType aConditionType, const CMdEPropertyDef& aPropertyDef);protected: const CMdEPropertyDef& iPropertyDef; };# 23 "X:/epoc32/include/platform/mw/mderangepropertycondition.h" 2class CMdEPropertyDef;class CMdCSerializationBuffer;class TMdESerializeRangePropertyCondition{public: static void SerializeL( CMdCSerializationBuffer& aBuffer, const CMdEPropertyCondition& aPropertyCondition, TMdERangeType aType, const void* aMin, const void* aMax, TInt aValueSize, TMdCOffset& aFreespaceOffset ); static TUint32 RequiredBufferSize( TInt aValueSize );};template <TConditionType KConditionType, class T>class CMdERangePropertyCondition : public CMdEPropertyCondition {public: static CMdERangePropertyCondition* NewL( const CMdEPropertyDef& aPropertyDef, const TMdERange<T>& aValueRange) { CMdERangePropertyCondition* self = CMdERangePropertyCondition::NewLC( aPropertyDef, aValueRange ); CleanupStack::Pop( self ); return self; } static CMdERangePropertyCondition* NewLC( const CMdEPropertyDef& aPropertyDef, const TMdERange<T>& aValueRange) { CMdERangePropertyCondition* self = new ( ELeave ) CMdERangePropertyCondition( aPropertyDef, aValueRange ); CleanupStack::PushL( self ); self- | ConstructL | [static] |