2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Definition of dm constants/exported methods
15 * This is part of remotemgmt_plat.
21 inline /*static*/ CSmlDmAdapter* CSmlDmAdapter::NewL(const TUid& aImplementationUid, MSmlDmCallback& aDmCallback)
23 The construction for CSmlDmAdapter class.
24 @param aDmCallback An address of the callback interface class.
29 TAny* arg = reinterpret_cast<TAny*>(&aDmCallback);
30 TAny* ptr = REComSession::CreateImplementationL(aImplementationUid,
31 _FOFF(CSmlDmAdapter, iDtor_ID_Key),
33 return static_cast<CSmlDmAdapter*>(ptr);
36 inline /*virtual*/ CSmlDmAdapter::~CSmlDmAdapter()
38 C++ default destructor.
43 REComSession::DestroyedImplementation(iDtor_ID_Key);
46 inline CSmlDmAdapter::CSmlDmAdapter(TAny* aEcomArguments)
47 : iCallback(*(reinterpret_cast<MSmlDmCallback*>(aEcomArguments)))
56 inline MSmlDmCallback& CSmlDmAdapter::Callback()
58 Accessor for the callback supplied to this adapter on construction.
66 inline TSmlDmAccessTypes::TSmlDmAccessTypes()
76 inline void TSmlDmAccessTypes::SetAdd()
78 The function sets Add access type property.
83 iACL |= EAccessType_Add;
86 inline void TSmlDmAccessTypes::SetCopy()
88 The function sets Copy access type property.
93 iACL |= EAccessType_Copy;
96 inline void TSmlDmAccessTypes::SetDelete()
98 The function sets Delete access type property.
103 iACL |= EAccessType_Delete;
106 inline void TSmlDmAccessTypes::SetExec()
108 The function sets Execute access type property.
113 iACL |= EAccessType_Exec;
116 inline void TSmlDmAccessTypes::SetGet()
118 The function sets Get access type property.
123 iACL |= EAccessType_Get;
126 inline void TSmlDmAccessTypes::SetReplace()
128 The function sets Replace access type property.
133 iACL |= EAccessType_Replace;
136 inline TUint8 TSmlDmAccessTypes::GetACL()
138 The function obtains the bitfield composed from each access type that has
147 inline void TSmlDmAccessTypes::Reset()
149 The function resets all access types previously defined in this object.