59 // TMSIPUplink::NewL |
59 // TMSIPUplink::NewL |
60 // Symbian two-phase constructor |
60 // Symbian two-phase constructor |
61 // ----------------------------------------------------------------------------- |
61 // ----------------------------------------------------------------------------- |
62 // |
62 // |
63 TMSIPUplink* TMSIPUplink::NewL(TMSIPDevSoundObserver& observer, |
63 TMSIPUplink* TMSIPUplink::NewL(TMSIPDevSoundObserver& observer, |
64 const guint32 codecID, const TMMFPrioritySettings priority) |
64 const guint32 codecID, const TMMFPrioritySettings priority, |
|
65 const gint retrytime) |
65 { |
66 { |
66 TMSIPUplink* self = new (ELeave) TMSIPUplink(observer); |
67 TMSIPUplink* self = new (ELeave) TMSIPUplink(observer); |
67 CleanupStack::PushL(self); |
68 CleanupStack::PushL(self); |
68 self->ConstructL(codecID, priority); |
69 self->ConstructL(codecID, priority, retrytime); |
69 CleanupStack::Pop(self); |
70 CleanupStack::Pop(self); |
70 return self; |
71 return self; |
71 } |
72 } |
72 |
73 |
73 // ----------------------------------------------------------------------------- |
74 // ----------------------------------------------------------------------------- |
74 // TMSIPUplink::ConstructL |
75 // TMSIPUplink::ConstructL |
75 // Part two of Symbian two phase construction |
76 // Part two of Symbian two phase construction |
76 // ----------------------------------------------------------------------------- |
77 // ----------------------------------------------------------------------------- |
77 // |
78 // |
78 void TMSIPUplink::ConstructL(const guint32 codecID, |
79 void TMSIPUplink::ConstructL(const guint32 codecID, |
79 const TMMFPrioritySettings priority) |
80 const TMMFPrioritySettings priority, const gint /*retrytime*/) |
80 { |
81 { |
81 TRACE_PRN_FN_ENT; |
82 TRACE_PRN_FN_ENT; |
82 iCodecID = codecID; |
83 iCodecID = codecID; |
83 iPriority = priority; |
84 iPriority = priority; |
84 |
85 |
98 // ----------------------------------------------------------------------------- |
99 // ----------------------------------------------------------------------------- |
99 // TMSIPUplink::Start |
100 // TMSIPUplink::Start |
100 // |
101 // |
101 // ----------------------------------------------------------------------------- |
102 // ----------------------------------------------------------------------------- |
102 // |
103 // |
103 void TMSIPUplink::Start() |
104 void TMSIPUplink::Start(const gint /*retrytime*/) |
104 { |
105 { |
105 TRACE_PRN_FN_ENT; |
106 TRACE_PRN_FN_ENT; |
106 |
107 |
107 gint err = TMS_RESULT_ILLEGAL_OPERATION; |
108 gint err = TMS_RESULT_ILLEGAL_OPERATION; |
108 iWriteDataXferHndlToClient = FALSE; |
109 iWriteDataXferHndlToClient = FALSE; |
109 |
110 |
110 if (iStatus == EReady && iDevSound) |
111 if (iStatus == EReady && iDevSound) |
111 { |
112 { |
112 TRAP(err, iDevSound->RecordInitL()); |
113 TRAP(err, iDevSound->RecordInitL()); |
113 TRACE_PRN_IF_ERR(err); |
114 TRACE_PRN_IF_ERR(err); |
114 |
115 iObserver.UplinkStarted(err); |
115 if (err != TMS_RESULT_SUCCESS) |
|
116 { |
|
117 iStatus = EReady; |
|
118 iObserver.UplinkStarted(err); |
|
119 } |
|
120 } |
116 } |
121 TRACE_PRN_FN_EXT; |
117 TRACE_PRN_FN_EXT; |
122 } |
118 } |
123 |
119 |
124 // ----------------------------------------------------------------------------- |
120 // ----------------------------------------------------------------------------- |