|
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: stub for equalizer framework. |
|
15 * |
|
16 */ |
|
17 |
|
18 // System includes |
|
19 #include <QStringList> |
|
20 #include <QDebug> |
|
21 |
|
22 // User includes |
|
23 #include "mpequalizerframeworkwrapper.h" |
|
24 |
|
25 /*! |
|
26 \class MpEqualizerFrameworkWrapper |
|
27 \ingroup musicplayer |
|
28 \brief Wrapper for equalizer framework. |
|
29 \since 10.1 |
|
30 |
|
31 Equalizer wrapper provides Qt style interface to the audio equalizer |
|
32 utilities. Its implementation is hidden using private class data pattern. |
|
33 |
|
34 This class defines several APIs that are needed from \a MpPlaybackView |
|
35 and other components in \a mpplaybackviewplugin. |
|
36 |
|
37 \sa MpEqualizerFrameworkWrapperPrivate |
|
38 */ |
|
39 |
|
40 /*! |
|
41 \fn MpEqualizerFrameworkWrapper::equalizerReady() |
|
42 |
|
43 This signal will be emitted when Audio Eqalizer is initialized. This is |
|
44 when all APIs, like \a applyPreset, are ready to be used. |
|
45 |
|
46 \sa MpEqualizerFrameworkWrapperPrivate::MapcInitComplete |
|
47 */ |
|
48 |
|
49 /*! |
|
50 Constructs a new MpEqualizerFrameworkWrapper with \a parent and initializes |
|
51 private imaplementation. |
|
52 |
|
53 */ |
|
54 MpEqualizerFrameworkWrapper::MpEqualizerFrameworkWrapper( QObject *parent ) |
|
55 : QObject(parent) |
|
56 { |
|
57 |
|
58 } |
|
59 |
|
60 /*! |
|
61 Destructs the class and its private imaplementation. |
|
62 |
|
63 */ |
|
64 MpEqualizerFrameworkWrapper::~MpEqualizerFrameworkWrapper() |
|
65 { |
|
66 |
|
67 } |
|
68 |
|
69 /*! |
|
70 Get the preset name key by giving \a presetIndex. The command then |
|
71 relays to its private implementation. |
|
72 |
|
73 */ |
|
74 int MpEqualizerFrameworkWrapper::getPresetNameKey( int presetIndex ) |
|
75 { |
|
76 Q_UNUSED(presetIndex); |
|
77 return 0; |
|
78 } |
|
79 |
|
80 /*! |
|
81 Get the preset index by giving \a presetNameKey. The command then |
|
82 relays to its private implementation. |
|
83 |
|
84 */ |
|
85 int MpEqualizerFrameworkWrapper::getPresetIndex( int presetNameKey ) |
|
86 { |
|
87 Q_UNUSED(presetNameKey); |
|
88 return 0; |
|
89 } |
|
90 |
|
91 /*! |
|
92 Returning the list of availale preset names. The command then relays to its |
|
93 private implementation. |
|
94 |
|
95 */ |
|
96 QStringList MpEqualizerFrameworkWrapper::presetNames() |
|
97 { |
|
98 return mList; |
|
99 } |
|
100 |
|
101 //End of File |