|
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: Implementation class for creating master and slave pattern objects. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "musavaavailabilitysettingobserverimp.h" |
|
20 #include "musunittesting.h" |
|
21 #include "musavaobserver.h" |
|
22 #include "CSipSseTestTls.h" |
|
23 #include "muslogger.h" |
|
24 |
|
25 |
|
26 #include <e32base.h> |
|
27 #include <e32std.h> |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // Two-phased constructor. |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CMusAvaAvailabilitySettingObserverImp* CMusAvaAvailabilitySettingObserverImp::NewL( ) |
|
34 { |
|
35 MUS_LOG( " [MUSAVA ] -> CMusAvaAvailabilitySettingObserverImp::NewL" ); |
|
36 CMusAvaAvailabilitySettingObserverImp* self = new (ELeave) CMusAvaAvailabilitySettingObserverImp(); |
|
37 CleanupStack::PushL( self ); |
|
38 self->ConstructL(); |
|
39 CleanupStack::Pop(); |
|
40 MUS_LOG( " [MUSAVA ] <- CMusAvaAvailabilitySettingObserverImp::NewL" ); |
|
41 return self; |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // C++ destructor. |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 CMusAvaAvailabilitySettingObserverImp::~CMusAvaAvailabilitySettingObserverImp() |
|
49 { |
|
50 MUS_LOG( " [MUSAVA ] -> CMusAvaAvailabilitySettingObserverImp::~CMusAvaAvailabilitySettingObserverImp" ); |
|
51 |
|
52 MUS_LOG( " [MUSAVA ] <- CMusAvaAvailabilitySettingObserverImp::~CMusAvaAvailabilitySettingObserverImp" ); |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // Symbian second-phase constructor. |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 void CMusAvaAvailabilitySettingObserverImp::ConstructL() |
|
60 { |
|
61 MUS_LOG( " [MUSAVA ] -> CMusAvaAvailabilitySettingObserverImp::ConstructL" ); |
|
62 iAvailabilityReport = EFalse; |
|
63 iStopComplete = EFalse; |
|
64 MUS_LOG( " [MUSAVA ] <- CMusAvaAvailabilitySettingObserverImp::ConstructL" ); |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // C++ constructor. |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 CMusAvaAvailabilitySettingObserverImp::CMusAvaAvailabilitySettingObserverImp( ) |
|
72 { |
|
73 MUS_LOG( "[MUSAVA ] -> CMusAvaAvailabilitySettingObserverImp::CMusAvaAvailabilitySettingObserverImp" ); |
|
74 |
|
75 MUS_LOG( "[MUSAVA ] <- CMusAvaAvailabilitySettingObserverImp::CMusAvaAvailabilitySettingObserverImp" ); |
|
76 } |
|
77 |
|
78 |
|
79 void CMusAvaAvailabilitySettingObserverImp::AvailabilityReport( |
|
80 MMusAvaObserver::TAvailabilityState aState, |
|
81 MMusAvaObserver::TAvailabilityStatus aStatus, |
|
82 MMusAvaObserver::TAvailabilityName aName, |
|
83 TInt aSystemError ) |
|
84 { |
|
85 iAvailabilityReport = ETrue; |
|
86 iState = aState; |
|
87 iStatus = aStatus; |
|
88 iName = aName; |
|
89 iSystemError = aSystemError; |
|
90 } |
|
91 |
|
92 |
|
93 void CMusAvaAvailabilitySettingObserverImp::StopComplete( MMusAvaObserver::TAvailabilityState aState, |
|
94 MMusAvaObserver::TAvailabilityName aName, |
|
95 TInt aSystemError ) |
|
96 { |
|
97 iStopComplete = ETrue; |
|
98 iState = aState; |
|
99 iName = aName; |
|
100 iSystemError = aSystemError; |
|
101 } |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |