|
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: MXIMPContextState API object implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CXIMPPRESENCECONTEXTSTATEIMP_H |
|
19 #define CXIMPPRESENCECONTEXTSTATEIMP_H |
|
20 |
|
21 #include "ximpapidataobjbase.h" |
|
22 #include <ximpcontextstate.h> |
|
23 #include <s32strm.h> |
|
24 |
|
25 |
|
26 /** |
|
27 * MXIMPContextState API object implementation. |
|
28 * |
|
29 * @lib ximpdatamodel.dll |
|
30 * @since S60 v3.2 |
|
31 */ |
|
32 NONSHARABLE_CLASS( CXIMPContextStateImp ): public CXIMPApiDataObjBase, |
|
33 public MXIMPContextState |
|
34 { |
|
35 public: |
|
36 /** The class ID. */ |
|
37 enum { KClassId = XIMPIMP_CLSID_CXIMPCONTEXTSTATEIMP }; |
|
38 |
|
39 public: |
|
40 |
|
41 IMPORT_C static CXIMPContextStateImp* NewLC(); |
|
42 IMPORT_C static CXIMPContextStateImp* NewL(); |
|
43 virtual ~CXIMPContextStateImp(); |
|
44 |
|
45 |
|
46 private: |
|
47 |
|
48 CXIMPContextStateImp(); |
|
49 void ConstructL(); |
|
50 |
|
51 /** |
|
52 * @see CXIMPApiDataObjBase |
|
53 */ |
|
54 XIMPIMP_DECLARE_DATAOBJ_BASE_PRIV_METHODS |
|
55 |
|
56 public: // From MXIMPBase |
|
57 |
|
58 /** |
|
59 * Implementation of MXIMPBase interface methods |
|
60 * @see MXIMPBase |
|
61 */ |
|
62 XIMPIMP_DECLARE_IF_BASE_METHODS |
|
63 |
|
64 /** |
|
65 * @see CXIMPApiDataObjBase |
|
66 */ |
|
67 XIMPIMP_DECLARE_DATAOBJ_BASE_METHODS |
|
68 |
|
69 |
|
70 public: // From MXIMPContextState |
|
71 |
|
72 /** |
|
73 * Implementation of MXIMPContextState interface methods |
|
74 * @see MXIMPContextState |
|
75 */ |
|
76 MXIMPContextState::TState ContextState() const; |
|
77 |
|
78 |
|
79 |
|
80 public: // New functions |
|
81 |
|
82 /** |
|
83 * Internalizes object data from given stream. |
|
84 * @param aStream Stream to read. |
|
85 */ |
|
86 IMPORT_C void InternalizeL( RReadStream& aStream ); |
|
87 |
|
88 |
|
89 /** |
|
90 * |
|
91 * |
|
92 */ |
|
93 IMPORT_C void SetStateValue( MXIMPContextState::TState aState ); |
|
94 |
|
95 |
|
96 private: // data |
|
97 |
|
98 |
|
99 /** |
|
100 * Result code. |
|
101 * Own. |
|
102 */ |
|
103 TState iContextState; |
|
104 |
|
105 }; |
|
106 |
|
107 |
|
108 #endif // CXIMPPRESENCECONTEXTSTATEIMP_H |
|
109 |
|
110 |