diff -r 4e84c994a771 -r 82baf59ce8dd mpengine/src/mpmediakeyhandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mpengine/src/mpmediakeyhandler.cpp Fri Apr 16 14:56:30 2010 +0300 @@ -0,0 +1,55 @@ +/* +* 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 ); +} +