equal
deleted
inserted
replaced
|
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_VOLUME_EFFECT_IMPL_H |
|
19 #define QTMS_VOLUME_EFFECT_IMPL_H |
|
20 |
|
21 #include <qtms.h> |
|
22 #include <tms.h> |
|
23 #include <qtmsvolumeeffect.h> |
|
24 #include <tmseffectobsrvr.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 namespace TMS |
|
28 { |
|
29 class TMSEffect; |
|
30 } |
|
31 |
|
32 namespace QTMS |
|
33 { |
|
34 |
|
35 // QTMSVolumeEffectImpl class |
|
36 class QTMSVolumeEffectImpl: public QTMSVolumeEffect, public TMS::TMSEffectObserver |
|
37 { |
|
38 public: |
|
39 static gint Create(QTMSEffect*& qvol, TMS::TMSEffect*& tmsvol); |
|
40 virtual ~QTMSVolumeEffectImpl(); |
|
41 |
|
42 gint AddObserver(TMS::TMSEffectObserver& obsrvr, gpointer user_data); |
|
43 gint RemoveObserver(TMS::TMSEffectObserver& obsrvr); |
|
44 |
|
45 gint GetEffect(TMS::TMSEffect*& tmseffect); |
|
46 |
|
47 //From TMSEffectObserver |
|
48 void EffectsEvent(const TMS::TMSEffect& tmseffect, TMS::TMSSignalEvent event); |
|
49 |
|
50 private: |
|
51 QTMSVolumeEffectImpl(); |
|
52 gint PostConstruct(); |
|
53 }; |
|
54 |
|
55 } //namespace QTMS |
|
56 |
|
57 #endif // QTMS_VOLUME_EFFECT_IMPL_H |
|
58 // End of file |