|
1 /* |
|
2 * Copyright (c) 2006 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: MXIMPDataSubscriptionState API object implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CXIMPDATASUBSCRIPTIONSTATEIMP_H |
|
19 #define CXIMPDATASUBSCRIPTIONSTATEIMP_H |
|
20 |
|
21 #include "ximpapidataobjbase.h" |
|
22 #include <ximpdatasubscriptionstate.h> |
|
23 #include <s32strm.h> |
|
24 |
|
25 /** |
|
26 * MXIMPDataSubscriptionState API object implementation. |
|
27 * |
|
28 * @lib ximpdatamodel.dll |
|
29 * @since S60 v3.2 |
|
30 */ |
|
31 NONSHARABLE_CLASS( CXIMPDataSubscriptionStateImp ): public CXIMPApiDataObjBase, |
|
32 public MXIMPDataSubscriptionState |
|
33 { |
|
34 public: |
|
35 /** The class ID. */ |
|
36 enum { KClassId = XIMPIMP_CLSID_CXIMPDATASUBSCRIPTIONSTATEIMP }; |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Construction methods. |
|
42 */ |
|
43 IMPORT_C static CXIMPDataSubscriptionStateImp* NewLC(); |
|
44 IMPORT_C static CXIMPDataSubscriptionStateImp* NewL(); |
|
45 |
|
46 /** |
|
47 * Destruction |
|
48 */ |
|
49 virtual ~CXIMPDataSubscriptionStateImp(); |
|
50 |
|
51 private: |
|
52 |
|
53 /** |
|
54 * Construction |
|
55 */ |
|
56 CXIMPDataSubscriptionStateImp(); |
|
57 void ConstructL(); |
|
58 |
|
59 /** |
|
60 * @see CXIMPApiDataObjBase |
|
61 */ |
|
62 XIMPIMP_DECLARE_DATAOBJ_BASE_PRIV_METHODS |
|
63 |
|
64 public: // From MXIMPBase |
|
65 |
|
66 /** |
|
67 * Implementation of MXIMPBase interface methods |
|
68 * @see MXIMPBase |
|
69 */ |
|
70 XIMPIMP_DECLARE_IF_BASE_METHODS |
|
71 |
|
72 /** |
|
73 * @see CXIMPApiDataObjBase |
|
74 */ |
|
75 XIMPIMP_DECLARE_DATAOBJ_BASE_METHODS |
|
76 |
|
77 |
|
78 public: // From MXIMPDataSubscriptionState |
|
79 |
|
80 /** |
|
81 * Implementation of MXIMPDataSubscriptionState interface methods |
|
82 * @see MXIMPDataSubscriptionState |
|
83 */ |
|
84 MXIMPDataSubscriptionState::TSubscriptionState SubscriptionState() const; |
|
85 |
|
86 /** |
|
87 * Implementation of MXIMPDataSubscriptionState interface methods |
|
88 * @see MXIMPDataSubscriptionState |
|
89 */ |
|
90 MXIMPDataSubscriptionState::TDataState DataState() const; |
|
91 |
|
92 /** |
|
93 * Implementation of MXIMPDataSubscriptionState interface methods |
|
94 * @see MXIMPDataSubscriptionState |
|
95 */ |
|
96 void SetSubscriptionStateL( MXIMPDataSubscriptionState::TSubscriptionState aSubscriptionState ); |
|
97 |
|
98 /** |
|
99 * Implementation of MXIMPDataSubscriptionState interface methods |
|
100 * @see MXIMPDataSubscriptionState |
|
101 */ |
|
102 void SetDataStateL( MXIMPDataSubscriptionState::TDataState aDataState ); |
|
103 |
|
104 public: // New functions |
|
105 |
|
106 /** |
|
107 * Internalizes object data from given stream. |
|
108 * @param aStream Stream to read. |
|
109 */ |
|
110 IMPORT_C void InternalizeL( RReadStream& aStream ); |
|
111 |
|
112 /** |
|
113 * Set subscriptionstate for internal usage. |
|
114 * Created as non leaving version of method. |
|
115 * @param aSubscriptionState New subscription state for state object. |
|
116 */ |
|
117 void SetSubscriptionState( MXIMPDataSubscriptionState::TSubscriptionState aSubscriptionState ); |
|
118 |
|
119 /** |
|
120 * Set data state for internal use. |
|
121 * Created as non leaving version of method. |
|
122 * @param aDataState New data state for state object. |
|
123 */ |
|
124 void SetDataState( MXIMPDataSubscriptionState::TDataState aDataState ); |
|
125 |
|
126 private: // data |
|
127 |
|
128 |
|
129 /** |
|
130 * Subscription state. |
|
131 * Own. |
|
132 */ |
|
133 TSubscriptionState iSubscriptionState; |
|
134 |
|
135 |
|
136 /** |
|
137 * Data state. |
|
138 * Own. |
|
139 */ |
|
140 TDataState iDataState; |
|
141 }; |
|
142 |
|
143 |
|
144 #endif // CXIMPDATASUBSCRIPTIONSTATEIMP_H |
|
145 |
|
146 |