|
1 /* |
|
2 * Copyright (c) 2005-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: This is implementation class of availability setting class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __UT_MUSAVAAVAILABILITYSETTINGSOBSERVERIMP_H__ |
|
20 #define __UT_MUSAVAAVAILABILITYSETTINGSOBSERVERIMP_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include "musavaavailabilitysettingobserver.h" |
|
24 #include "musavaobserver.h" |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <e32std.h> |
|
28 |
|
29 //class MMusAvaObserver; |
|
30 |
|
31 /** |
|
32 * This class Implements mandatory setting baste behavior which is |
|
33 * need for availability report. |
|
34 * |
|
35 * CMusAvaAvailabilitySettingObserverImps is implementation class for madatory |
|
36 * setting which are needed for availability report. |
|
37 * class represent the interface of application. |
|
38 * |
|
39 * @lib musavailabilityplugin.lib |
|
40 * @since S60 v3.2 |
|
41 */ |
|
42 |
|
43 class CMusAvaAvailabilitySettingObserverImp : public CBase, |
|
44 public MMusAvaAvailabilitySettingObserver |
|
45 { |
|
46 public: |
|
47 |
|
48 /** |
|
49 * Two-phased constructor |
|
50 * |
|
51 * @since S60 v3.2 |
|
52 * @param aDefaultImp Pointer to observer interface |
|
53 * @return Returns pointer to CMusAvaAvailabilitySettingObserverImp object |
|
54 */ |
|
55 |
|
56 static CMusAvaAvailabilitySettingObserverImp* NewL(); |
|
57 |
|
58 /** |
|
59 * Destructor |
|
60 * |
|
61 * @since S60 v3.2 |
|
62 * @param |
|
63 * @return |
|
64 */ |
|
65 |
|
66 ~CMusAvaAvailabilitySettingObserverImp(); |
|
67 |
|
68 protected: |
|
69 /** |
|
70 * Constructor |
|
71 * |
|
72 * @since S60 v3.2 |
|
73 * @param aDefaultImp Pointer to observer interface |
|
74 * @return |
|
75 */ |
|
76 |
|
77 CMusAvaAvailabilitySettingObserverImp( ); |
|
78 |
|
79 /** |
|
80 * Perform the second phase construction of a |
|
81 * CMusAvaAvailabilitySettingObserverImp object |
|
82 * |
|
83 * @since S60 v3.2 |
|
84 * @param |
|
85 * @return |
|
86 */ |
|
87 |
|
88 void ConstructL(); |
|
89 |
|
90 |
|
91 // from base class MMusAvaAvailabilitySettingObserver |
|
92 |
|
93 public: |
|
94 |
|
95 /** |
|
96 * Availability report |
|
97 * |
|
98 * @since S60 v3.2 |
|
99 * @param aState Current availability State |
|
100 * @param aStatus Current availability Status |
|
101 * @param aName Availability name |
|
102 * @param aSystemError system wide error |
|
103 * @return |
|
104 */ |
|
105 void AvailabilityReport( |
|
106 MMusAvaObserver::TAvailabilityState aState, |
|
107 MMusAvaObserver::TAvailabilityStatus aStatus, |
|
108 MMusAvaObserver::TAvailabilityName aName, |
|
109 TInt aSystemError ); |
|
110 |
|
111 |
|
112 /** |
|
113 * MusAvailability shutdown is completed |
|
114 * |
|
115 * @since S60 v3.2 |
|
116 * @param aState Current availability State |
|
117 * @param aName Availability name |
|
118 * @param aSystemError system wide error |
|
119 * @return |
|
120 */ |
|
121 void StopComplete( MMusAvaObserver::TAvailabilityState aState, |
|
122 MMusAvaObserver::TAvailabilityName aName, |
|
123 TInt aSystemError ); |
|
124 |
|
125 MMusAvaObserver::TAvailabilityState iState; |
|
126 MMusAvaObserver::TAvailabilityStatus iStatus; |
|
127 MMusAvaObserver::TAvailabilityName iName; |
|
128 TInt iSystemError; |
|
129 TBool iAvailabilityReport; |
|
130 TBool iStopComplete; |
|
131 }; |
|
132 |
|
133 #endif //__UT_MUSAVAAVAILABILITYSETTINGSOBSERVERIMP_H__ |
|
134 |
|
135 |