williamr@2: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: @file williamr@2: @deprecated since v9.1. Functionality is replaced with commsdat. williamr@2: */ williamr@2: williamr@2: #ifndef __CDBSTORE_H__ williamr@2: #define __CDBSTORE_H__ williamr@2: williamr@2: #include williamr@2: #include williamr@2: williamr@2: class CStoreableOverrideSettings : public CCommDbOverrideSettings williamr@2: /** williamr@2: Creates override settings for the columns of specific tables, and stores and williamr@2: retrieves the override sets to and from both streams and buffers. williamr@2: williamr@2: The buffer is a convenient way of passing this information across thread or williamr@2: process boundaries. williamr@2: williamr@2: The CCommDbOverrideSettings base class provides the member functions for setting williamr@2: and fetching override values. williamr@2: @deprecated williamr@2: Overrides are deprecated from v9.1 williamr@2: */ williamr@2: { williamr@2: public: williamr@2: IMPORT_C static CStoreableOverrideSettings* NewL(TParamList aParamList); williamr@2: IMPORT_C ~CStoreableOverrideSettings(); williamr@2: williamr@2: IMPORT_C void InternalizeL(RReadStream& aStream); williamr@2: IMPORT_C void RestoreL(HBufC8* aBuf); williamr@2: IMPORT_C void ExternalizeL(RWriteStream& aStream) const; williamr@2: IMPORT_C CBufFlat* StoreLC(); williamr@2: inline CBufStore* GetStore() const; williamr@2: williamr@2: IMPORT_C static CStoreableOverrideSettings* NewL(TParamList aParamList, TCommDbDatabaseType aDbType); williamr@2: williamr@2: protected: williamr@2: CStoreableOverrideSettings(TParamList aParamList); williamr@2: virtual void ConstructL(); williamr@2: private: williamr@2: /** @deprecated in v7.0. There is no need for this store */ williamr@2: CBufStore* iStore; williamr@2: }; williamr@2: williamr@2: #include williamr@2: williamr@2: #endif