equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: Definition of a CCH observer API |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VCCCCHOBSERVER_H |
|
21 #define VCCCCHOBSERVER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 /** |
|
26 * Observer class for CVccCchMonitor |
|
27 * |
|
28 * The class that defines observer interfaces. |
|
29 * Used to get notifications when CCH states changes. |
|
30 * @code |
|
31 * class CMyClass : public CBase, public MVccCchObserver |
|
32 * { |
|
33 * public: |
|
34 * ... |
|
35 * void CchServiceStatusChanged( TServiceStatus aStatus ); |
|
36 * ... |
|
37 * } |
|
38 * |
|
39 * void MyClass::CchServiceStatusChanged( TServiceStatus aStatus ) |
|
40 * { |
|
41 * if ( aStatus == MVccCchObserver::EServiceUnavailable ) |
|
42 * { |
|
43 * ServiceNotWorking(); |
|
44 * } |
|
45 * else |
|
46 * { |
|
47 * ServiceWorking(); |
|
48 * } |
|
49 * } |
|
50 * |
|
51 * @endcode |
|
52 * |
|
53 * @lib vcchotrigger.lib |
|
54 * @since S60 v3.2 |
|
55 */ |
|
56 class MVccCchObserver |
|
57 { |
|
58 public: |
|
59 |
|
60 /** Service status */ |
|
61 enum TServiceStatus |
|
62 { |
|
63 EServiceUnavailable = 0, |
|
64 EServiceAvailable |
|
65 }; |
|
66 |
|
67 /** |
|
68 * Observer interface. Called when the CCH status has been changed. |
|
69 * |
|
70 * @since S60 v3.2 |
|
71 * @param aStatus Status of the service availability. |
|
72 */ |
|
73 |
|
74 virtual void CchServiceStatusChanged( TServiceStatus aStatus ) = 0; |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // VCCCCHOBSERVER_H |