50 SatAppMainHandler::~SatAppMainHandler() |
51 SatAppMainHandler::~SatAppMainHandler() |
51 { |
52 { |
52 TFLOGSTRING("SATAPP: SatAppMainHandler::~SatAppMainHandler call-exit") |
53 TFLOGSTRING("SATAPP: SatAppMainHandler::~SatAppMainHandler call-exit") |
53 } |
54 } |
54 |
55 |
55 |
56 // ---------------------------------------------------------------------------- |
|
57 // SatAppMainHandler::initConnections |
|
58 // |
|
59 // ---------------------------------------------------------------------------- |
|
60 // |
56 void SatAppMainHandler::initConnections() |
61 void SatAppMainHandler::initConnections() |
57 { |
62 { |
58 TFLOGSTRING("SATAPP: SatAppMainHandler::initConnections call") |
63 TFLOGSTRING("SATAPP: SatAppMainHandler::initConnections call") |
59 bool ret = false; |
|
60 // For SetUpMenu |
64 // For SetUpMenu |
61 ret = connect(mEvent, SIGNAL(setUpMenuEvent(TSatUiResponse &, |
65 bool ret = connect(mEvent, SIGNAL(setUpMenuEvent(TSatUiResponse &, |
62 QString, QStringList, /*const HbIcon& ,*/ bool, bool)), |
66 QString, QStringList, bool, bool)), |
63 mCommand, SLOT(setUpMenu(TSatUiResponse &, |
67 mCommand, SLOT(setUpMenu(TSatUiResponse &, |
64 QString, QStringList, /*const HbIcon& ,*/ bool, bool)), |
68 QString, QStringList, bool, bool)), |
65 Qt::DirectConnection); |
69 Qt::DirectConnection); |
66 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
70 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
67 SetUpMenu=%d", ret) |
71 SetUpMenu=%d", ret) |
68 |
72 |
69 // For SelectItem |
73 // For SelectItem |
70 ret = connect(mEvent, SIGNAL(selectItemEvent(TSatUiResponse&, |
74 ret = connect(mEvent, SIGNAL(selectItemEvent(TSatUiResponse&, |
71 QString, QStringList, /*const HbIcon& ,*/ |
75 QString, QStringList, |
72 int, unsigned char&, bool, bool)), |
76 int, unsigned char&, bool, bool)), |
73 mCommand, SLOT(selectItem(TSatUiResponse&, |
77 mCommand, SLOT(selectItem(TSatUiResponse&, |
74 QString,QStringList, /*const HbIcon& ,*/ |
78 QString,QStringList, |
75 int, unsigned char&, bool, bool)), |
79 int, unsigned char&, bool, bool)), |
76 Qt::DirectConnection); |
80 Qt::DirectConnection); |
77 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
81 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
78 SelectItem=%d", ret) |
82 SelectItem=%d", ret) |
79 |
83 |
80 // for display text |
84 // for display text |
81 ret = connect(mEvent, SIGNAL(displayTextEvent(TSatUiResponse &, |
85 ret = connect(mEvent, SIGNAL(displayTextEvent(TSatUiResponse &, |
82 QString, QString, /*const HbIcon & ,*/ bool &, bool, int, bool)), |
86 QString, QString, bool &, bool, int, bool)), |
83 mCommand, SLOT(displayText(TSatUiResponse&, |
87 mCommand, SLOT(displayText(TSatUiResponse&, |
84 QString, QString, /*const HbIcon & ,*/ bool &, bool, int, bool)), |
88 QString, QString, bool &, bool, int, bool)), |
85 Qt::DirectConnection); |
89 Qt::DirectConnection); |
86 |
90 |
87 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
91 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
88 DisplayText=%d", ret) |
92 DisplayText=%d", ret) |
89 |
93 |
128 ret = connect(mEvent, SIGNAL(getInputEvent(TSatUiResponse &, QString, |
130 ret = connect(mEvent, SIGNAL(getInputEvent(TSatUiResponse &, QString, |
129 TSatCharacterSet, QString &, int, int, bool, bool, unsigned int &)), |
131 TSatCharacterSet, QString &, int, int, bool, bool, unsigned int &)), |
130 mCommand, SLOT(getInput(TSatUiResponse &, QString, TSatCharacterSet, |
132 mCommand, SLOT(getInput(TSatUiResponse &, QString, TSatCharacterSet, |
131 QString &, int, int, bool, bool, unsigned int &)), |
133 QString &, int, int, bool, bool, unsigned int &)), |
132 Qt::DirectConnection); |
134 Qt::DirectConnection); |
133 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: GetInput=%d", ret) |
135 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
134 |
136 GetInput=%d", ret) |
|
137 |
|
138 // For CallControl |
|
139 ret = connect(mEvent, SIGNAL(callControlEvent(QString, |
|
140 TSatAlphaIdStatus)), |
|
141 mCommand, SLOT(callControl(QString, TSatAlphaIdStatus)), |
|
142 Qt::DirectConnection); |
|
143 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
|
144 CallControl=%d", ret) |
|
145 |
|
146 // For MoSmControl |
|
147 ret = connect(mEvent, SIGNAL(moSmControlEvent(QString, |
|
148 TSatAlphaIdStatus)), |
|
149 mCommand, SLOT(moSmControl(QString, TSatAlphaIdStatus)), |
|
150 Qt::DirectConnection); |
|
151 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
|
152 MoSmControl=%d", ret) |
|
153 |
135 // For send confirm |
154 // For send confirm |
136 ret = connect(mEvent, SIGNAL(confirmSendEvent(TSatUiResponse &, QString, |
|
137 bool &, int)), |
|
138 mCommand, SLOT(confirmSend(TSatUiResponse&, QString, bool &, int)), |
|
139 Qt::DirectConnection); |
|
140 TFLOGSTRING2("SATAPP: SatAppSendSms::initConnections: confirmSend=%d", ret) |
|
141 |
|
142 ret = connect(mEvent, SIGNAL(showSmsWaitNoteEvent(QString, |
155 ret = connect(mEvent, SIGNAL(showSmsWaitNoteEvent(QString, |
143 /*const CFbsBitmap* aIconBitmapSendSM,*/ bool)), |
156 bool)), |
144 mCommand, SLOT(showSmsWaitNote(QString, |
157 mCommand, SLOT(showSmsWaitNote(QString, |
145 /*const CFbsBitmap* aIconBitmapSendSM,*/bool)), |
158 bool)), |
146 Qt::DirectConnection); |
159 Qt::DirectConnection); |
147 |
|
148 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
160 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
149 showSmsWaitNote=%d", ret) |
161 showSmsWaitNote=%d", ret) |
|
162 |
150 //For Send DTMF |
163 //For Send DTMF |
151 ret = connect(mEvent, SIGNAL(showDtmfWaitNoteEvent( |
164 ret = connect(mEvent, SIGNAL(showDtmfWaitNoteEvent( |
152 TSatUiResponse &, QString/*, |
165 TSatUiResponse &, QString)), |
153 const CFbsBitmap* aIconBitmapSendDTMF, bool*/)), |
166 mCommand, SLOT(showDtmfWaitNote( |
154 mCommand, SLOT(showDtmfWaitNote(TSatUiResponse &, QString |
167 TSatUiResponse &, QString)), |
155 /*const CFbsBitmap* aIconBitmapSendDTMF,bool*/)), |
168 Qt::DirectConnection); |
156 Qt::DirectConnection); |
169 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
157 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: showDtmfsWaitNote=%d", ret) |
170 showDtmfsWaitNote=%d", ret) |
158 //For DTMF cancel |
171 |
159 ret = connect(mUi, SIGNAL(userCancelDtmfResponse()), |
172 //For DTMF, BIP cancel |
160 mEvent, SLOT(userCancelDtmfResponse()), |
173 ret = connect(mUi, SIGNAL(userCancelResponse()), |
161 Qt::DirectConnection); |
174 mEvent, SLOT(userCancelResponse()), |
162 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: userCancelDtmfResponse=%d", ret) |
175 Qt::DirectConnection); |
|
176 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
|
177 userCancelResponse=%d", ret) |
163 |
178 |
164 //Stop wait note |
179 //Stop wait note |
165 ret = connect(mEvent, SIGNAL(stopShowWaitNoteEvent()), |
180 ret = connect(mEvent, SIGNAL(stopShowWaitNoteEvent()), |
166 mCommand, SLOT(stopShowWaitNote()), |
181 mCommand, SLOT(stopShowWaitNote()), |
167 Qt::DirectConnection); |
182 Qt::DirectConnection); |
168 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
183 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
169 stopShowWaitNote=%d", ret) |
184 stopShowWaitNote=%d", ret) |
|
185 |
170 // For SetUpCall |
186 // For SetUpCall |
171 ret = connect(mEvent, SIGNAL(showSetUpCallConfirmEvent( |
187 ret = connect(mEvent, SIGNAL(showSetUpCallConfirmEvent( |
172 QString, QString, bool &)), |
188 QString, QString, bool &)), |
173 mCommand, SLOT(confirmSetUpCall( |
189 mCommand, SLOT(confirmSetUpCall( |
174 QString, QString, bool &)), |
190 QString, QString, bool &)), |
175 Qt::DirectConnection); |
191 Qt::DirectConnection); |
176 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
192 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
177 showSetUpCallConfirm=%d", ret) |
193 showSetUpCallConfirm=%d", ret) |
178 |
194 |
|
195 ret = connect(mEvent, SIGNAL(showSsWaitNoteEvent(QString, |
|
196 bool)), |
|
197 mCommand, SLOT(showSsWaitNote(QString, |
|
198 bool)), |
|
199 Qt::DirectConnection); |
|
200 |
|
201 // For Send SS or USSD |
|
202 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
|
203 showSsWaitNote=%d", ret) |
|
204 |
|
205 //For showWaitNoteWithoutDelay |
|
206 ret = connect(mEvent, SIGNAL(showWaitNoteWithoutDelayEvent()), |
|
207 mUi, SLOT(showWaitNoteWithoutDelay()), |
|
208 Qt::DirectConnection); |
|
209 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
|
210 showWaitNoteWithoutDelayEvent=%d", ret) |
|
211 |
|
212 //For showSsErrorNote |
|
213 ret = connect(mEvent, SIGNAL(showSsErrorNoteEvent()), |
|
214 mUi, SLOT(showSsErrorNote()), |
|
215 Qt::DirectConnection); |
|
216 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
|
217 showSsErrorNoteEvent=%d", ret) |
|
218 |
|
219 // For Open Channel |
|
220 ret = connect(mEvent, SIGNAL(showOpenChannelConfirmEvent( |
|
221 QString, bool &)), |
|
222 mUi, SLOT(showConfirmOpenChannelQuery( |
|
223 QString, bool &)), |
|
224 Qt::DirectConnection); |
|
225 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
|
226 showOpenChannelConfirm=%d", ret) |
|
227 |
|
228 // For BIP wait note |
|
229 ret = connect(mEvent, SIGNAL(showBIPNoteEvent( |
|
230 int, QString)), |
|
231 mCommand, SLOT(showBIPWaitNote( |
|
232 int, QString)), |
|
233 Qt::DirectConnection); |
|
234 TFLOGSTRING2("SATAPP: SatAppMainHandler::initConnections: \ |
|
235 showBIPNote=%d", ret) |
|
236 |
179 TFLOGSTRING("SATAPP: SatAppMainHandler::initConnections exit") |
237 TFLOGSTRING("SATAPP: SatAppMainHandler::initConnections exit") |
180 } |
238 } |
181 |
239 |
182 //End of file |
240 //End of file |