equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Class to hold description about one namespace and every objects, |
|
15 * properties and events it holds. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 inline CMdsNamespaceDef::CMdsNamespaceDef( TDefId aId, TBool aReadOnly, TUint32 aVendorId ) |
|
21 : iVendorId(aVendorId), iFlags(ENamespaceDefFlagsFirstRead) |
|
22 { |
|
23 SetId( aId ); |
|
24 if (aReadOnly) |
|
25 { |
|
26 iFlags |= ENamespaceDefFlagsReadOnly; |
|
27 } |
|
28 } |
|
29 |
|
30 inline TBool CMdsNamespaceDef::GetReadOnly() const |
|
31 { |
|
32 return iFlags&ENamespaceDefFlagsReadOnly ? ETrue : EFalse; |
|
33 } |
|
34 |
|
35 inline TBool CMdsNamespaceDef::GetFirstRead() const |
|
36 { |
|
37 return iFlags&ENamespaceDefFlagsFirstRead ? ETrue : EFalse; |
|
38 } |
|
39 |
|
40 inline void CMdsNamespaceDef::UnsetFirstRead() |
|
41 { |
|
42 iFlags &= ~ENamespaceDefFlagsFirstRead; |
|
43 } |
|
44 |
|
45 inline void CMdsNamespaceDef::SetBaseObject( CMdsObjectDef* const aBaseObject ) |
|
46 { |
|
47 iBaseObject = aBaseObject; |
|
48 } |
|
49 |
|
50 inline TInt32 CMdsNamespaceDef::GetVendorId() const |
|
51 { |
|
52 return iVendorId; |
|
53 } |
|
54 |
|
55 inline void CMdsNamespaceDef::SetVendorId(TInt32 aVendorId) |
|
56 { |
|
57 iVendorId = aVendorId; |
|
58 } |