equal
deleted
inserted
replaced
|
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 key handler. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "mpmediakeyhandler.h" |
|
19 #include "mpmediakeyhandler_p.h" |
|
20 #include "mpengine.h" |
|
21 #include "mptrace.h" |
|
22 |
|
23 // --------------------------------------------------------------------------- |
|
24 // MpMediaKeyHandler() |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 MpMediaKeyHandler::MpMediaKeyHandler( QObject *parent ) |
|
28 : QObject(parent) |
|
29 { |
|
30 TX_ENTRY |
|
31 d_ptr = new MpMediaKeyHandlerPrivate(this); |
|
32 d_ptr->init(); |
|
33 TX_EXIT |
|
34 } |
|
35 |
|
36 // --------------------------------------------------------------------------- |
|
37 // ~MpMediaKeyHandler() |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 MpMediaKeyHandler::~MpMediaKeyHandler() |
|
41 { |
|
42 TX_ENTRY |
|
43 delete d_ptr; |
|
44 TX_EXIT |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // setEnabled() |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 void MpMediaKeyHandler::setEnabled( bool enable ) |
|
52 { |
|
53 d_ptr->setEnabled( enable ); |
|
54 } |
|
55 |