|
1 /* |
|
2 * Copyright (c) 2010 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: QT Bindings for TMS |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef QTMS_GAIN_EFFECT_IMPL_H |
|
19 #define QTMS_GAIN_EFFECT_IMPL_H |
|
20 |
|
21 #include <qtms.h> |
|
22 #include <tms.h> |
|
23 #include <qtmsgaineffect.h> |
|
24 #include <tmseffectobsrvr.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 namespace TMS { |
|
28 class TMSEffect; |
|
29 } |
|
30 |
|
31 namespace QTMS { |
|
32 |
|
33 // QTMSGainEffectImpl class |
|
34 class QTMSGainEffectImpl : public QTMSGainEffect, |
|
35 public TMS::TMSEffectObserver |
|
36 { |
|
37 public: |
|
38 static gint Create(QTMSEffect*& qvol, TMS::TMSEffect*& tmsvol); |
|
39 virtual ~QTMSGainEffectImpl(); |
|
40 |
|
41 gint AddObserver(TMS::TMSEffectObserver& obsrvr, gpointer user_data); |
|
42 gint RemoveObserver(TMS::TMSEffectObserver& obsrvr); |
|
43 |
|
44 gint GetEffect(TMS::TMSEffect*& tmseffect); |
|
45 |
|
46 //From TMSEffectObserver |
|
47 void EffectsEvent(const TMS::TMSEffect& tmseffect, |
|
48 TMS::TMSSignalEvent event); |
|
49 |
|
50 private: |
|
51 QTMSGainEffectImpl(); |
|
52 gint PostConstruct(); |
|
53 |
|
54 private: |
|
55 gpointer iUserData; |
|
56 }; |
|
57 |
|
58 } //namespace QTMS |
|
59 |
|
60 #endif // QTMS_GAIN_EFFECT_IMPL_H |
|
61 |
|
62 // End of file |