mmserv/radioutility/radio_utility/src/RadioUtility.cpp
changeset 16 43d09473c595
parent 12 5a06f39ad45b
child 46 0ac9a5310753
equal deleted inserted replaced
14:80975da52420 16:43d09473c595
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #include "RadioUtilityBody.h"
    19 #include "RadioUtilityBody.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 CRadioUtility* CRadioUtility::NewL(
    30 EXPORT_C CRadioUtility* CRadioUtility::NewL(
    30     TBool aPrimaryClient )
    31     TBool aPrimaryClient )
    31     {
    32     {
       
    33     FUNC_LOG;
    32     CRadioUtility* self = new(ELeave) CRadioUtility();
    34     CRadioUtility* self = new(ELeave) CRadioUtility();
    33     CleanupStack::PushL(self);
    35     CleanupStack::PushL(self);
    34     self->iBody = CRadioUtility::CBody::NewL(aPrimaryClient);
    36     self->iBody = CRadioUtility::CBody::NewL(aPrimaryClient);
    35     CleanupStack::Pop();
    37     CleanupStack::Pop(self);
    36     return self;
    38     return self;
    37     }
    39     }
    38 
    40 
    39 // -----------------------------------------------------------------------------
    41 // -----------------------------------------------------------------------------
    40 // Destructor.
    42 // Destructor.
    41 // -----------------------------------------------------------------------------
    43 // -----------------------------------------------------------------------------
    42 //
    44 //
    43 EXPORT_C CRadioUtility::~CRadioUtility()
    45 EXPORT_C CRadioUtility::~CRadioUtility()
    44     {
    46     {
       
    47     FUNC_LOG;
    45     delete iBody;
    48     delete iBody;
    46     }
    49     }
    47 
    50 
    48 // -----------------------------------------------------------------------------
    51 // -----------------------------------------------------------------------------
    49 // CRadioUtility::CRadioUtility
    52 // CRadioUtility::CRadioUtility
    50 // (other items were commented in a header).
    53 // (other items were commented in a header).
    51 // -----------------------------------------------------------------------------
    54 // -----------------------------------------------------------------------------
    52 //
    55 //
    53 CRadioUtility::CRadioUtility()
    56 CRadioUtility::CRadioUtility()
    54     {
    57     {
       
    58     FUNC_LOG;
    55     }
    59     }
    56 
    60 
    57 // -----------------------------------------------------------------------------
    61 // -----------------------------------------------------------------------------
    58 // CRadioUtility::RadioFmTunerUtilityL
    62 // CRadioUtility::RadioFmTunerUtilityL
    59 // (other items were commented in a header).
    63 // (other items were commented in a header).
    60 // -----------------------------------------------------------------------------
    64 // -----------------------------------------------------------------------------
    61 //
    65 //
    62 EXPORT_C CRadioFmTunerUtility& CRadioUtility::RadioFmTunerUtilityL(
    66 EXPORT_C CRadioFmTunerUtility& CRadioUtility::RadioFmTunerUtilityL(
    63     MRadioFmTunerObserver& aObserver )
    67     MRadioFmTunerObserver& aObserver )
    64     {
    68     {
       
    69     FUNC_LOG;
    65     ASSERT(iBody);
    70     ASSERT(iBody);
    66     return iBody->RadioFmTunerUtilityL(aObserver);
    71     return iBody->RadioFmTunerUtilityL(aObserver);
    67     }
    72     }
    68 
    73 
    69 // -----------------------------------------------------------------------------
    74 // -----------------------------------------------------------------------------
    72 // -----------------------------------------------------------------------------
    77 // -----------------------------------------------------------------------------
    73 //
    78 //
    74 EXPORT_C CRadioPlayerUtility& CRadioUtility::RadioPlayerUtilityL(
    79 EXPORT_C CRadioPlayerUtility& CRadioUtility::RadioPlayerUtilityL(
    75     MRadioPlayerObserver& aObserver )
    80     MRadioPlayerObserver& aObserver )
    76     {
    81     {
       
    82     FUNC_LOG;
    77     ASSERT(iBody);
    83     ASSERT(iBody);
    78     return iBody->RadioPlayerUtilityL(aObserver);
    84     return iBody->RadioPlayerUtilityL(aObserver);
    79     }
    85     }
    80 
    86 
    81 // -----------------------------------------------------------------------------
    87 // -----------------------------------------------------------------------------
    84 // -----------------------------------------------------------------------------
    90 // -----------------------------------------------------------------------------
    85 //
    91 //
    86 EXPORT_C CRadioRdsUtility& CRadioUtility::RadioRdsUtilityL(
    92 EXPORT_C CRadioRdsUtility& CRadioUtility::RadioRdsUtilityL(
    87     MRadioRdsObserver& aObserver )
    93     MRadioRdsObserver& aObserver )
    88     {
    94     {
       
    95     FUNC_LOG;
    89     ASSERT(iBody);
    96     ASSERT(iBody);
    90     return iBody->RadioRdsUtilityL(aObserver);
    97     return iBody->RadioRdsUtilityL(aObserver);
    91     }
    98     }
    92 
    99 
    93 
   100