|
1 /* |
|
2 * Copyright (c) 2004 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 WV attribute models. |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include <E32Base.h> |
|
20 #include "CPEngWVAttributeModelBase.h" |
|
21 #include "PEngWVAttributeModelBasePanics.h" |
|
22 |
|
23 |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CPEngWVAttributeModelBase::CPEngWVAttributeModelBase |
|
29 // C++ constructor can NOT contain any code, that |
|
30 // might leave. |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CPEngWVAttributeModelBase::CPEngWVAttributeModelBase( TBool aUserOwnAttribute ) |
|
34 : iUserOwnModel( aUserOwnAttribute ) |
|
35 { |
|
36 } |
|
37 |
|
38 |
|
39 // Destructor |
|
40 CPEngWVAttributeModelBase::~CPEngWVAttributeModelBase() |
|
41 { |
|
42 } |
|
43 |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // CPEngWVAttributeModelBase::SetDataL() |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 TBool CPEngWVAttributeModelBase::SetDataL( TInt* /*aIntData*/, |
|
50 const TDesC8* /*a8Data*/, |
|
51 const TDesC16* /*a16Data*/, |
|
52 TInt /*aField*/, |
|
53 TInt /*aGroup*/ ) |
|
54 { |
|
55 return EFalse; |
|
56 } |
|
57 |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // CPEngWVAttributeModelBase::SetDataAsyncL() |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 TBool CPEngWVAttributeModelBase::SetDataAsyncL( const TDesC8* /*a8Data*/, |
|
64 const TDesC16* /*a16Data*/, |
|
65 TRequestStatus& /*aRequestStatus*/, |
|
66 TInt /*aField*/, |
|
67 TInt /*aGroup*/ ) |
|
68 { |
|
69 return EFalse; |
|
70 } |
|
71 |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // CPEngWVAttributeModelBase::CancelSetDataAsync() |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 void CPEngWVAttributeModelBase::CancelSetDataAsync() |
|
78 { |
|
79 } |
|
80 |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // CPEngWVAttributeModelBase::TypeExtension() |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 TAny* CPEngWVAttributeModelBase::TypeExtension( TUint32 /*aType*/ ) |
|
87 { |
|
88 return NULL; |
|
89 } |
|
90 |
|
91 |
|
92 // ----------------------------------------------------------------------------- |
|
93 // CPEngWVAttributeModelBase::HandleNetworkSessionStateChangeL() |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 void CPEngWVAttributeModelBase::HandleNetworkSessionStateChangeL( TBool /*aSessionOpen*/ ) |
|
97 { |
|
98 } |
|
99 |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // CPEngWVAttributeModelBase::__AssertAttrEnumValueOutOfBoundsL() |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 void CPEngWVAttributeModelBase::__AssertAttrEnumValueOutOfBoundsL() const |
|
106 { |
|
107 #if defined(_DEBUG) |
|
108 __AssertAttrEnumValueOutOfBounds(); |
|
109 #else |
|
110 User::Leave( KErrArgument ); |
|
111 #endif |
|
112 } |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // CPEngWVAttributeModelBase::__AssertAttrEnumValueOutOfBounds() |
|
116 // ----------------------------------------------------------------------------- |
|
117 // |
|
118 void CPEngWVAttributeModelBase::__AssertAttrEnumValueOutOfBounds() const |
|
119 { |
|
120 #if defined(_DEBUG) |
|
121 User::Panic( KWVAttrModBasePanic, EAttrEnumValueOutOfBounds ); |
|
122 #endif |
|
123 } |
|
124 |
|
125 |
|
126 |
|
127 // End of File |