utilities/mpmediacontroller/src/mpmediacontroller.cpp
changeset 48 af3740e3753f
equal deleted inserted replaced
42:79c49924ae23 48:af3740e3753f
       
     1 /*
       
     2 * Copyright (c) 2009 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: Music Player Media Controller.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "mpmediacontroller.h"
       
    20 #include "mpmediakeyhandler.h"
       
    21 #include "mpvolumeslider.h"
       
    22 #include "mptrace.h"
       
    23 
       
    24 
       
    25 /*!
       
    26  Constructs the MpMediaController.
       
    27  */
       
    28 MpMediaController::MpMediaController( QObject *parent )
       
    29     : QObject( parent ),
       
    30       mMpMediaKeyHandler( 0 ),
       
    31       mMpVolumeSlider( 0 )
       
    32 {
       
    33     TX_ENTRY
       
    34     mMpMediaKeyHandler = new MpMediaKeyHandler();
       
    35     mMpVolumeSlider = new MpVolumeSlider();
       
    36     TX_EXIT
       
    37 }
       
    38 
       
    39 /*!
       
    40  Destructs MpMediaController.
       
    41  */
       
    42 MpMediaController::~MpMediaController()
       
    43 {
       
    44     delete mMpMediaKeyHandler;
       
    45     delete mMpVolumeSlider;
       
    46 }
       
    47