mpengine/src/mpmediakeyhandler.cpp
author hgs
Fri, 23 Jul 2010 17:31:12 -0500
changeset 45 612c4815aebe
parent 20 82baf59ce8dd
permissions -rw-r--r--
201029

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Music Player media key handler.
*
*/

#include "mpmediakeyhandler.h"
#include "mpmediakeyhandler_p.h"
#include "mpengine.h"
#include "mptrace.h"

// ---------------------------------------------------------------------------
// MpMediaKeyHandler()
// ---------------------------------------------------------------------------
//
MpMediaKeyHandler::MpMediaKeyHandler( QObject *parent )
    : QObject(parent)
{
    TX_ENTRY
    d_ptr = new MpMediaKeyHandlerPrivate(this);
    d_ptr->init();
    TX_EXIT
}

// ---------------------------------------------------------------------------
// ~MpMediaKeyHandler()
// ---------------------------------------------------------------------------
//
MpMediaKeyHandler::~MpMediaKeyHandler()
{
    TX_ENTRY
    delete d_ptr;
    TX_EXIT
}

// ---------------------------------------------------------------------------
// setEnabled()
// ---------------------------------------------------------------------------
//
void MpMediaKeyHandler::setEnabled( bool enable )
{
    d_ptr->setEnabled( enable );
}