mmserv/radioutility/radio_utility/src/RadioMonitor.cpp
changeset 0 71ca22bcf22a
child 19 095bea5f582e
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 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:  Radio Monitor interface implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "RadioMonitorBody.h"
       
    20 
       
    21 
       
    22 // ======== MEMBER FUNCTIONS ========
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // CRadioMonitor::NewL
       
    26 // Two-phased constructor.
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 EXPORT_C CRadioMonitor* CRadioMonitor::NewL(
       
    30     MRadioMonitorObserver& aObserver )
       
    31     {
       
    32     CRadioMonitor* self = new(ELeave) CRadioMonitor( aObserver );
       
    33     CleanupStack::PushL(self);
       
    34     self->iBody = CRadioMonitor::CBody::NewL( aObserver );
       
    35     CleanupStack::Pop();
       
    36     return self;
       
    37     }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // Destructor.
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 EXPORT_C CRadioMonitor::~CRadioMonitor()
       
    44     {
       
    45     delete iBody;
       
    46     }
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // CRadioMonitor::CRadioMonitor
       
    50 // (other items were commented in a header).
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 CRadioMonitor::CRadioMonitor(
       
    54     MRadioMonitorObserver& /*aObserver*/ )
       
    55     {
       
    56     }
       
    57 
       
    58 // -----------------------------------------------------------------------------
       
    59 // CRadioMonitor::IsRadioOn
       
    60 // Abstraction of PlayerState
       
    61 // (other items were commented in a header).
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 EXPORT_C TBool CRadioMonitor::IsRadioOn() const
       
    65     {
       
    66     ASSERT(iBody);
       
    67     return iBody->IsRadioOn();
       
    68     }
       
    69 
       
    70 
       
    71 
       
    72 // End of File