21 #include <qtms.h> |
21 #include <qtms.h> |
22 #include <qtmsglobalvoleffect.h> |
22 #include <qtmsglobalvoleffect.h> |
23 #include <tmseffectobsrvr.h> |
23 #include <tmseffectobsrvr.h> |
24 |
24 |
25 // FORWARD DECLARATIONS |
25 // FORWARD DECLARATIONS |
26 namespace TMS { |
26 namespace TMS |
|
27 { |
27 class TMSEffect; |
28 class TMSEffect; |
28 } |
29 } |
29 |
30 |
30 namespace QTMS { |
31 namespace QTMS |
|
32 { |
31 |
33 |
32 // FORWARD DECLARATIONS |
34 // FORWARD DECLARATIONS |
33 class QTMSEffect; |
35 class QTMSEffect; |
34 |
36 |
35 // QTMSGlobalVolEffectImpl class |
37 // QTMSGlobalVolEffectImpl class |
36 class QTMSGlobalVolEffectImpl : public QTMSGlobalVolEffect, |
38 class QTMSGlobalVolEffectImpl: public QTMSGlobalVolEffect, public TMS::TMSEffectObserver |
37 public TMS::TMSEffectObserver |
39 { |
38 { |
|
39 public: |
40 public: |
40 |
41 |
41 static gint Create(QTMSEffect*& qglobalvol, TMS::TMSEffect*& tmsglobalvol); |
42 static gint Create(QTMSEffect*& qglobalvol, TMS::TMSEffect*& tmsglobalvol); |
42 virtual ~QTMSGlobalVolEffectImpl(); |
43 virtual ~QTMSGlobalVolEffectImpl(); |
43 |
44 |
44 gint AddObserver(TMS::TMSEffectObserver& obsrvr, gpointer user_data); |
45 gint AddObserver(TMS::TMSEffectObserver& obsrvr, gpointer user_data); |
45 gint RemoveObserver(TMS::TMSEffectObserver& obsrvr); |
46 gint RemoveObserver(TMS::TMSEffectObserver& obsrvr); |
46 |
47 |
47 //from TMSEffectObserver |
48 //from TMSEffectObserver |
48 void EffectsEvent(const TMS::TMSEffect& tmseffect, |
49 void EffectsEvent(const TMS::TMSEffect& tmseffect, TMS::TMSSignalEvent event); |
49 TMS::TMSSignalEvent event); |
|
50 |
50 |
51 private: |
51 private: |
52 QTMSGlobalVolEffectImpl(); |
52 QTMSGlobalVolEffectImpl(); |
53 gint PostConstruct(); |
53 gint PostConstruct(); |
54 }; |
54 }; |
55 |
55 |
56 } //namespace QTMS |
56 } //namespace QTMS |
57 |
57 |
58 #endif // QTMS_GLOBAL_VOLUME_EFFECT_IMPL_H |
58 #endif // QTMS_GLOBAL_VOLUME_EFFECT_IMPL_H |
59 |
|
60 // End of file |
59 // End of file |