equal
deleted
inserted
replaced
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #include "RadioMonitorBody.h" |
19 #include "RadioMonitorBody.h" |
20 #include "trace.h" |
|
21 |
20 |
22 |
21 |
23 // ======== MEMBER FUNCTIONS ======== |
22 // ======== MEMBER FUNCTIONS ======== |
24 |
23 |
25 // ----------------------------------------------------------------------------- |
24 // ----------------------------------------------------------------------------- |
28 // ----------------------------------------------------------------------------- |
27 // ----------------------------------------------------------------------------- |
29 // |
28 // |
30 EXPORT_C CRadioMonitor* CRadioMonitor::NewL( |
29 EXPORT_C CRadioMonitor* CRadioMonitor::NewL( |
31 MRadioMonitorObserver& aObserver ) |
30 MRadioMonitorObserver& aObserver ) |
32 { |
31 { |
33 FUNC_LOG; |
|
34 CRadioMonitor* self = new(ELeave) CRadioMonitor( aObserver ); |
32 CRadioMonitor* self = new(ELeave) CRadioMonitor( aObserver ); |
35 CleanupStack::PushL(self); |
33 CleanupStack::PushL(self); |
36 self->iBody = CRadioMonitor::CBody::NewL( aObserver ); |
34 self->iBody = CRadioMonitor::CBody::NewL( aObserver ); |
37 CleanupStack::Pop(); |
35 CleanupStack::Pop(); |
38 return self; |
36 return self; |
42 // Destructor. |
40 // Destructor. |
43 // ----------------------------------------------------------------------------- |
41 // ----------------------------------------------------------------------------- |
44 // |
42 // |
45 EXPORT_C CRadioMonitor::~CRadioMonitor() |
43 EXPORT_C CRadioMonitor::~CRadioMonitor() |
46 { |
44 { |
47 FUNC_LOG; |
|
48 delete iBody; |
45 delete iBody; |
49 } |
46 } |
50 |
47 |
51 // ----------------------------------------------------------------------------- |
48 // ----------------------------------------------------------------------------- |
52 // CRadioMonitor::CRadioMonitor |
49 // CRadioMonitor::CRadioMonitor |
54 // ----------------------------------------------------------------------------- |
51 // ----------------------------------------------------------------------------- |
55 // |
52 // |
56 CRadioMonitor::CRadioMonitor( |
53 CRadioMonitor::CRadioMonitor( |
57 MRadioMonitorObserver& /*aObserver*/ ) |
54 MRadioMonitorObserver& /*aObserver*/ ) |
58 { |
55 { |
59 FUNC_LOG; |
|
60 } |
56 } |
61 |
57 |
62 // ----------------------------------------------------------------------------- |
58 // ----------------------------------------------------------------------------- |
63 // CRadioMonitor::IsRadioOn |
59 // CRadioMonitor::IsRadioOn |
64 // Abstraction of PlayerState |
60 // Abstraction of PlayerState |
65 // (other items were commented in a header). |
61 // (other items were commented in a header). |
66 // ----------------------------------------------------------------------------- |
62 // ----------------------------------------------------------------------------- |
67 // |
63 // |
68 EXPORT_C TBool CRadioMonitor::IsRadioOn() const |
64 EXPORT_C TBool CRadioMonitor::IsRadioOn() const |
69 { |
65 { |
70 FUNC_LOG; |
|
71 ASSERT(iBody); |
66 ASSERT(iBody); |
72 return iBody->IsRadioOn(); |
67 return iBody->IsRadioOn(); |
73 } |
68 } |
74 |
69 |
75 |
70 |