|
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 observer is used by |
|
15 * ECOM clients to get function call from the availability Plug-in |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include "musavaobserverimp.h" |
|
21 #include "musavaavailabilityobserver.h" |
|
22 #include "musavaobserver.h" |
|
23 #include "muslogger.h" |
|
24 |
|
25 |
|
26 // ------------------------------------------------------------------------- |
|
27 // Two-phased constructor. |
|
28 // ------------------------------------------------------------------------- |
|
29 // |
|
30 CMusAvaObserverImp* CMusAvaObserverImp::NewL() |
|
31 { |
|
32 MUS_LOG( " [MUSAVA ] -> CMusAvaObserverImp::NewL" ); |
|
33 CMusAvaObserverImp* self = new (ELeave) CMusAvaObserverImp(); |
|
34 CleanupStack::PushL (self); |
|
35 self->ConstructL(); |
|
36 CleanupStack::Pop(); |
|
37 MUS_LOG( " [MUSAVA ] <- CMusAvaObserverImp::NewL" ); |
|
38 return self; |
|
39 } |
|
40 |
|
41 // ------------------------------------------------------------------------- |
|
42 // C++ destructor. |
|
43 // ------------------------------------------------------------------------- |
|
44 // |
|
45 CMusAvaObserverImp::~CMusAvaObserverImp() |
|
46 { |
|
47 MUS_LOG( " [MUSAVA ] -> CMusAvaObserverImp::~CMusAvaObserverImp" ); |
|
48 |
|
49 MUS_LOG( " [MUSAVA ] <- CMusAvaObserverImp::~CMusAvaObserverImp" ); |
|
50 } |
|
51 |
|
52 // ------------------------------------------------------------------------- |
|
53 // Symbian second-phase constructor. |
|
54 // ------------------------------------------------------------------------- |
|
55 // |
|
56 void CMusAvaObserverImp::ConstructL() |
|
57 { |
|
58 MUS_LOG( " [MUSAVA ] -> CMusAvaObserverImp::ConstructL" ); |
|
59 |
|
60 MUS_LOG( " [MUSAVA ] <- CMusAvaObserverImp::ConstructL" ); |
|
61 } |
|
62 |
|
63 // ------------------------------------------------------------------------- |
|
64 // C++ constructor. |
|
65 // ------------------------------------------------------------------------- |
|
66 // |
|
67 CMusAvaObserverImp::CMusAvaObserverImp() |
|
68 { |
|
69 |
|
70 } |
|
71 // ----------------------------------------------------------------------------- |
|
72 // Availability report. |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 void CMusAvaObserverImp::AvailabilityChanged( |
|
76 MMusAvaObserver::TAvailabilityName aName, |
|
77 MMusAvaObserver::TAvailabilityStatus aStatus ) |
|
78 { |
|
79 iStatus= aStatus; |
|
80 iName = aName; |
|
81 } |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // Availability error report. |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 void CMusAvaObserverImp::AvailabilityError( |
|
88 MMusAvaObserver::TAvailabilityName aName, |
|
89 MMusAvaObserver::TAvailabilityStatus aStatus ) |
|
90 { |
|
91 iStatus= aStatus; |
|
92 iName = aName; |
|
93 } |
|
94 |
|
95 |
|
96 |