epoc32/include/cdbstore.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations

// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// 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
// which accompanies this distribution, and is available
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//



/**
 @file
 @deprecated since v9.1. Functionality is replaced with commsdat.
*/

#ifndef __CDBSTORE_H__
#define __CDBSTORE_H__

#include <s32mem.h>
#include <cdbover.h>

class CStoreableOverrideSettings : public CCommDbOverrideSettings
/**
Creates override settings for the columns of specific tables, and stores and
retrieves the override sets to and from both streams and buffers.

The buffer is a convenient way of passing this information across thread or 
process boundaries.

The CCommDbOverrideSettings base class provides the member functions for setting 
and fetching override values. 
@deprecated
	Overrides are deprecated from v9.1
*/
	{
public:
	IMPORT_C static CStoreableOverrideSettings* NewL(TParamList aParamList);
	IMPORT_C ~CStoreableOverrideSettings();

	IMPORT_C void InternalizeL(RReadStream& aStream);
	IMPORT_C void RestoreL(HBufC8* aBuf);
	IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
	IMPORT_C CBufFlat* StoreLC();
	inline CBufStore* GetStore() const;

	IMPORT_C static CStoreableOverrideSettings* NewL(TParamList aParamList, TCommDbDatabaseType aDbType);

protected:
	CStoreableOverrideSettings(TParamList aParamList);
	virtual void ConstructL();
private:
	/** @deprecated in v7.0. There is no need for this store */
	CBufStore* iStore;
	};

#include <cdbstore.inl>

#endif