|
1 /* |
|
2 * Copyright (c) 2007 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: Base class for accessory objects. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <accpolobjectbase.h> |
|
19 #include "acc_debug.h" |
|
20 |
|
21 // ----------------------------------------------------------------------------- |
|
22 // CAccPolObjectBase::CAccPolObjectBase |
|
23 // C++ default constructor can NOT contain any code, that |
|
24 // might leave. |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 EXPORT_C CAccPolObjectBase::CAccPolObjectBase() |
|
28 { |
|
29 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::CAccPolObjectBase - Enter" ); |
|
30 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::CAccPolObjectBase - Return" ); |
|
31 } |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // CAccPolObjectBase::CAccPolObjectBase |
|
35 // C++ default constructor can NOT contain any code, that |
|
36 // might leave. |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 EXPORT_C CAccPolObjectBase::CAccPolObjectBase( TUint8 aObjectType, CAccPolObjectCon* aObject ) |
|
40 : iObjectContainer( aObject ), |
|
41 iObjectType( aObjectType ) |
|
42 |
|
43 { |
|
44 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::CAccPolObjectBase - Enter" ); |
|
45 API_TRACE_1( "[AccFW:ACCPOLICY] CAccPolObjectBase::CAccPolObjectBase - ObjectType=%d", aObjectType ); |
|
46 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::CAccPolObjectBase - Return" ); |
|
47 } |
|
48 |
|
49 // Destructor |
|
50 EXPORT_C CAccPolObjectBase::~CAccPolObjectBase() |
|
51 { |
|
52 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::~CAccPolObjectBase - Enter" ); |
|
53 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::~CAccPolObjectBase - Return" ); |
|
54 } |
|
55 |
|
56 // --------------------------------------------------------------------------- |
|
57 // CAccPolObjectBase::operator |
|
58 // --------------------------------------------------------------------------- |
|
59 // |
|
60 EXPORT_C CAccPolObjectBase& CAccPolObjectBase::operator=( const CAccPolObjectBase &aObjectBase ) |
|
61 { |
|
62 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::operator - Enter" ); |
|
63 iObjectType = aObjectBase.ObjectType(); |
|
64 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::operator - Return" ); |
|
65 return ( *this ); |
|
66 } |
|
67 |
|
68 // --------------------------------------------------------------------------- |
|
69 // CAccPolObjectBase::SetObjectType |
|
70 // --------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C void CAccPolObjectBase::SetObjectType( TUint8 aObjectType ) |
|
73 { |
|
74 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::SetObjectType - Enter" ); |
|
75 API_TRACE_1( "[AccFW:ACCPOLICY] CAccPolObjectBase::SetObjectType=%d", aObjectType ); |
|
76 iObjectType = aObjectType; |
|
77 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::SetObjectType - Return" ); |
|
78 } |
|
79 |
|
80 // --------------------------------------------------------------------------- |
|
81 // CAccPolObjectBase::ObjectId |
|
82 // --------------------------------------------------------------------------- |
|
83 // |
|
84 EXPORT_C TUint8 CAccPolObjectBase::ObjectType() const |
|
85 { |
|
86 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::ObjectType - Enter" ); |
|
87 API_TRACE_1( "[AccFW:ACCPOLICY] CAccPolObjectBase::ObjectType=%d", iObjectType ); |
|
88 API_TRACE_( "[AccFW:ACCPOLICY] CAccPolObjectBase::ObjectType - Return" ); |
|
89 return iObjectType; |
|
90 } |