|
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 #ifndef CPENGWVATTRIBUTEMODELBASE_H |
|
19 #define CPENGWVATTRIBUTEMODELBASE_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <E32Base.h> |
|
23 #include "MPEngPresenceAttrModelTypeImp.h" |
|
24 |
|
25 |
|
26 |
|
27 /** |
|
28 * Base class for WV attribute models. |
|
29 * |
|
30 * @lib PEngAttrLib |
|
31 * @since 3.0 |
|
32 */ |
|
33 NONSHARABLE_CLASS( CPEngWVAttributeModelBase ) : public CBase, |
|
34 public MPEngPresenceAttrModelTypeImp |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * C++ constructor. |
|
40 */ |
|
41 CPEngWVAttributeModelBase( TBool aUserOwnAttribute ); |
|
42 |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CPEngWVAttributeModelBase(); |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 public: // Functions from MPEngPresenceAttrModelTypeImp |
|
53 |
|
54 /** |
|
55 * From MPEngPresenceAttrModelTypeImp. |
|
56 * |
|
57 * Empty base implementation for such virtual functions |
|
58 * that most WV attribute do not support. |
|
59 * |
|
60 * @since 3.0 |
|
61 */ |
|
62 TBool SetDataL( TInt* aIntData, |
|
63 const TDesC8* a8Data, |
|
64 const TDesC16* a16Data, |
|
65 TInt aField, |
|
66 TInt aGroup ); |
|
67 |
|
68 |
|
69 TBool SetDataAsyncL( const TDesC8* a8Data, |
|
70 const TDesC16* a16Data, |
|
71 TRequestStatus& aRequestStatus, |
|
72 TInt aField, |
|
73 TInt aGroup ); |
|
74 |
|
75 void CancelSetDataAsync(); |
|
76 TAny* TypeExtension( TUint32 aType ); |
|
77 void HandleNetworkSessionStateChangeL( TBool aSessionOpen ); |
|
78 |
|
79 |
|
80 protected: //Helpers |
|
81 |
|
82 |
|
83 /** |
|
84 * Assertion helpers. |
|
85 * |
|
86 * @since 3.0 |
|
87 */ |
|
88 void __AssertAttrEnumValueOutOfBoundsL() const; |
|
89 void __AssertAttrEnumValueOutOfBounds() const; |
|
90 |
|
91 |
|
92 |
|
93 protected: //Data |
|
94 |
|
95 //OWN: Is instance user own attribute or not? |
|
96 const TBool iUserOwnModel; |
|
97 |
|
98 }; |
|
99 |
|
100 #endif //CPENGWVATTRIBUTEMODELBASE_H |
|
101 |
|
102 // End of File |
|
103 |