|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef SS_COMMSDATAOBJECT_H |
|
22 #define SS_COMMSDATAOBJECT_H |
|
23 |
|
24 |
|
25 #include <comms-infras/api_ext_list.h> |
|
26 #include <comms-infras/ss_platsec_apiext.h> |
|
27 #include <comms-infras/ss_commsprov.h> |
|
28 #include <comms-infras/metavirtctor.h> |
|
29 #include <metadatabase.h> |
|
30 #include <comms-infras/ss_nodemessages_legacy_internal.h> |
|
31 |
|
32 |
|
33 namespace ESock |
|
34 { |
|
35 class XCommsDataObject; |
|
36 |
|
37 |
|
38 class MQueryConnSettingsApiExt |
|
39 { |
|
40 public: |
|
41 static const TInt KInterfaceId = 0x102864D4; |
|
42 |
|
43 virtual TInt GetInt(CommsDat::TMDBElementId aElementId, TUint32& aValue, MPlatsecApiExt* aPlatsecApiExt) = 0; |
|
44 virtual TInt GetInt(CommsDat::TMDBElementId aElementId, TInt& aValue, MPlatsecApiExt* aPlatsecApiExt) = 0; |
|
45 virtual TInt GetBool(CommsDat::TMDBElementId aElementId, TBool& aValue, MPlatsecApiExt* aPlatsecApiExt) = 0; |
|
46 virtual TInt GetText(CommsDat::TMDBElementId aElementId, HBufC8*& aValue, MPlatsecApiExt* aPlatsecApiExt) = 0; |
|
47 virtual TInt GetText(CommsDat::TMDBElementId aElementId, HBufC16*& aValue, MPlatsecApiExt* aPlatsecApiExt) = 0; |
|
48 }; |
|
49 |
|
50 |
|
51 |
|
52 /** |
|
53 A self-propagating extension message. It advances down the stack looking for |
|
54 a MeshMachine::AMMNodeBase that implements the interface requested by the comms data object |
|
55 @internalComponent |
|
56 */ |
|
57 class TGetOrSetParameters : public ESock::TCFSigLegacyRMessage2PlatsecExt, |
|
58 public Messages::TSignatureBase::TTypeToMessageId<TCFLegacyMessageInternal::EGetOrSetParameters, TCFLegacyMessage::ERealmId> |
|
59 { |
|
60 public: |
|
61 inline TGetOrSetParameters() {}; |
|
62 TGetOrSetParameters(const Den::RSafeMessage& aMessage, XCommsDataObject*& aDataObject) |
|
63 : ESock::TCFSigLegacyRMessage2PlatsecExt(Messages::TNodeSignal::TMessageId(EId, ERealm), aMessage), |
|
64 iDataObject(&aDataObject) |
|
65 { |
|
66 } |
|
67 |
|
68 protected: |
|
69 virtual TBool CanProcess(MeshMachine::TNodeContextBase& aContext); |
|
70 virtual void ForwardL(MeshMachine::TNodeContextBase& aContext); |
|
71 virtual void ProcessL(MeshMachine::TNodeContextBase& aContext); |
|
72 |
|
73 virtual TInt CheckError(MeshMachine::TNodeContextBase& aContext, TInt aError); |
|
74 |
|
75 private: |
|
76 void Complete(MeshMachine::TNodeContextBase& aContext, TInt aError); |
|
77 |
|
78 public: |
|
79 DECLARE_MVIP_CTR(TGetOrSetParameters) |
|
80 EXPORT_DATA_VTABLE_AND_FN |
|
81 |
|
82 private: |
|
83 XCommsDataObject** iDataObject; |
|
84 }; |
|
85 |
|
86 |
|
87 |
|
88 } // namespace ESock |
|
89 |
|
90 #endif |
|
91 // SS_COMMSDATAOBJECT_H |
|
92 |