equal
deleted
inserted
replaced
21 #include <glib.h> |
21 #include <glib.h> |
22 #include "tmscsdevsound.h" |
22 #include "tmscsdevsound.h" |
23 |
23 |
24 namespace TMS { |
24 namespace TMS { |
25 |
25 |
26 // |
|
27 class TMSCSPDevSoundObserver; |
|
28 |
|
29 /** |
26 /** |
30 * Provides Downlink functionality. |
27 * Provides Downlink stream functionality. |
31 * |
28 * |
32 */ |
29 */ |
33 NONSHARABLE_CLASS(TMSCSDownlink) : public TMSCSPDevSound |
30 NONSHARABLE_CLASS(TMSCSDownlink) : public TMSCSDevSound |
34 { |
31 { |
35 public: |
32 public: |
36 |
33 |
37 static TMSCSDownlink* NewL(TMSCSPDevSoundObserver& aObserver); |
34 static TMSCSDownlink* NewL(TMSCSDevSoundObserver& observer, |
|
35 const gint retrytime); |
38 |
36 |
39 virtual ~TMSCSDownlink(); |
37 virtual ~TMSCSDownlink(); |
40 |
38 |
41 /** |
39 /** |
42 * Sets volume. |
40 * Sets volume. |
43 * @param aVolume Volume. |
41 * @param volume Volume. |
44 */ |
42 */ |
45 void SetVolume(gint aVolume); |
43 void SetVolume(gint volume); |
46 |
44 |
47 /** |
45 /** |
48 * Gets volume. |
46 * Gets volume. |
49 * @return Current volume. |
47 * @return Current volume. |
50 */ |
48 */ |
58 |
56 |
59 // from base class MDevSoundObserver |
57 // from base class MDevSoundObserver |
60 |
58 |
61 /** |
59 /** |
62 * From MDevSoundObserver. |
60 * From MDevSoundObserver. |
63 * Indication from devsound that stream (Downlink) has been activated |
61 * Indication from the devsound that Downlink has been activated |
64 * successfully. |
62 * successfully. |
65 */ |
63 */ |
66 void BufferToBeFilled(CMMFBuffer* /*aBuffer*/); |
64 void BufferToBeFilled(CMMFBuffer* /*aBuffer*/); |
67 |
65 |
68 /** |
66 /** |
69 * From MDevSoundObserver. |
67 * From MDevSoundObserver. |
70 * Indication from devsound that activation of stream( Downlink) |
68 * Indication from devsound that Downlink activation has failed. |
71 * failed. |
|
72 */ |
69 */ |
73 void PlayError(TInt aErrorCode); |
70 void PlayError(TInt aErrorCode); |
74 |
71 |
75 private: |
72 private: |
76 |
73 |
77 /** |
74 /** |
78 * From CSPDevSound. |
75 * From TMSCSDevSound. |
79 * Tries to activate the mic stream. |
76 * Tries to activate the mic stream. |
80 */ |
77 */ |
81 void DoActivateL(); |
78 void DoActivateL(); |
82 |
79 |
83 protected: |
80 protected: |
84 |
81 |
85 TMSCSDownlink(TMSCSPDevSoundObserver& aObserver); |
82 TMSCSDownlink(TMSCSDevSoundObserver& observer); |
86 |
83 void ConstructL(const gint retrytime); |
87 void ConstructL(); |
|
88 }; |
84 }; |
89 |
85 |
90 } //namespace TMS |
86 } //namespace TMS |
91 |
87 |
92 #endif // TMSCSDOWNLINK_H |
88 #endif // TMSCSDOWNLINK_H |