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