|
1 /* |
|
2 * Copyright (c) 2005-2007 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 observer is used by |
|
15 * availabilities to observer function from the availability |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MMUSAVAAVAILABILITYOBSERVER |
|
22 #define MMUSAVAAVAILABILITYOBSERVER |
|
23 |
|
24 #include <e32def.h> |
|
25 |
|
26 #include "musavaobserver.h" |
|
27 |
|
28 /** |
|
29 * MusAvailability Observer base class |
|
30 * |
|
31 * Observer interface for ECOM clients. |
|
32 * |
|
33 * @lib musavailabilityplugin.lib |
|
34 */ |
|
35 |
|
36 class MMusAvaAvailabilityObserver |
|
37 { |
|
38 |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Availability report |
|
43 * |
|
44 * @param aStatus New status for availability. |
|
45 */ |
|
46 virtual void AvailabilityChanged( |
|
47 MMusAvaObserver::TAvailabilityName aName, |
|
48 MMusAvaObserver::TAvailabilityStatus aStatus ) = 0; |
|
49 |
|
50 virtual void AvailabilityError( |
|
51 MMusAvaObserver::TAvailabilityName aName, |
|
52 MMusAvaObserver::TAvailabilityStatus aStatus ) = 0; |
|
53 |
|
54 virtual TBool Available( |
|
55 MMusAvaObserver::TAvailabilityName aAvailability ) = 0; |
|
56 |
|
57 |
|
58 virtual MMusAvaObserver::TAvailabilityStatus |
|
59 AvailabilityPluginState() = 0; |
|
60 |
|
61 }; |
|
62 |
|
63 |
|
64 #endif //MMUSAVAAVAILABILITYOBSERVER |