diff -r 000000000000 -r dfb7c4ff071f datacommsserver/esockserver/inc/ss_commsdataobject.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/datacommsserver/esockserver/inc/ss_commsdataobject.h Thu Dec 17 09:22:25 2009 +0200 @@ -0,0 +1,92 @@ +// 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 "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file + @internalTechnology +*/ + +#ifndef SS_COMMSDATAOBJECT_H +#define SS_COMMSDATAOBJECT_H + + +#include +#include +#include +#include +#include +#include + + +namespace ESock +{ +class XCommsDataObject; + + +class MQueryConnSettingsApiExt + { +public: + static const TInt KInterfaceId = 0x102864D4; + + virtual TInt GetInt(CommsDat::TMDBElementId aElementId, TUint32& aValue, MPlatsecApiExt* aPlatsecApiExt) = 0; + virtual TInt GetInt(CommsDat::TMDBElementId aElementId, TInt& aValue, MPlatsecApiExt* aPlatsecApiExt) = 0; + virtual TInt GetBool(CommsDat::TMDBElementId aElementId, TBool& aValue, MPlatsecApiExt* aPlatsecApiExt) = 0; + virtual TInt GetText(CommsDat::TMDBElementId aElementId, HBufC8*& aValue, MPlatsecApiExt* aPlatsecApiExt) = 0; + virtual TInt GetText(CommsDat::TMDBElementId aElementId, HBufC16*& aValue, MPlatsecApiExt* aPlatsecApiExt) = 0; + }; + + + +/** +A self-propagating extension message. It advances down the stack looking for +a MeshMachine::AMMNodeBase that implements the interface requested by the comms data object +@internalComponent +*/ +class TGetOrSetParameters : public ESock::TCFSigLegacyRMessage2PlatsecExt, + public Messages::TSignatureBase::TTypeToMessageId + { +public: + inline TGetOrSetParameters() {}; + TGetOrSetParameters(const Den::RSafeMessage& aMessage, XCommsDataObject*& aDataObject) + : ESock::TCFSigLegacyRMessage2PlatsecExt(Messages::TNodeSignal::TMessageId(EId, ERealm), aMessage), + iDataObject(&aDataObject) + { + } + +protected: + virtual TBool CanProcess(MeshMachine::TNodeContextBase& aContext); + virtual void ForwardL(MeshMachine::TNodeContextBase& aContext); + virtual void ProcessL(MeshMachine::TNodeContextBase& aContext); + + virtual TInt CheckError(MeshMachine::TNodeContextBase& aContext, TInt aError); + +private: + void Complete(MeshMachine::TNodeContextBase& aContext, TInt aError); + +public: + DECLARE_MVIP_CTR(TGetOrSetParameters) + EXPORT_DATA_VTABLE_AND_FN + +private: + XCommsDataObject** iDataObject; + }; + + + +} // namespace ESock + +#endif +// SS_COMMSDATAOBJECT_H +