epoc32/include/comms-infras/es_parameterset.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/comms-infras/es_parameterset.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,61 @@
     1.4 +// Copyright (c) 2007-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 +// Generic parameter set base classes.
    1.18 +// XParameterSetBase exists to support interworking with old CSubConParameterSet classes.
    1.19 +// XParameterSet has richer functionality so should be used for all new applications of Parameter Sets.
    1.20 +// 
    1.21 +//
    1.22 +
    1.23 +/**
    1.24 + @file
    1.25 + @internalTechnology
    1.26 +*/
    1.27 +
    1.28 +#ifndef __ES_PARAMETERSET_H
    1.29 +#define __ES_PARAMETERSET_H
    1.30 +
    1.31 +#include <comms-infras/metadata.h>
    1.32 +
    1.33 +class XParameterSetBase : public Meta::SMetaDataECom
    1.34 +	{
    1.35 +	};
    1.36 +
    1.37 +
    1.38 +const TInt KParameterSetTypeUid = 0x10272F44;
    1.39 +
    1.40 +class XParameterSet : public XParameterSetBase
    1.41 +	{
    1.42 +public:
    1.43 +	IMPORT_C virtual ~XParameterSet();
    1.44 +
    1.45 +	// Updates this parameter set with new information. The interpretation and 
    1.46 +	//  importance of new information may depend on type-specific interpretation
    1.47 +	//  of the fields in the object (e.g. a field somehow marked "unknown" in the new
    1.48 +	//  set should not be copied to this set, or some kind of lock on a
    1.49 +	//  field in this set should prevent that field being copied from the
    1.50 +	//  new set).
    1.51 +	//
    1.52 +	// This base implementation asserts, so as to force the consideration of this
    1.53 +	//  function for derived types.
    1.54 +	IMPORT_C virtual void UpdateWithL(const XParameterSet& aRhsBase);
    1.55 +	IMPORT_C virtual TInt AppendPrintableTo(TDes& aDestination) const;
    1.56 +	IMPORT_C virtual TInt _extension(TUid aExtensionId, TAny*& aReturnedExtension);
    1.57 +
    1.58 +protected:
    1.59 +    // It's necessary to expose the typeid table to child classes so they can refer to it in their attribute tables (so IsTypeOf() works)
    1.60 +	EXPORT_TYPEID_TABLE
    1.61 +	};
    1.62 +
    1.63 +#endif // __ES_PARAMETERSET_H
    1.64 +