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