@@ -137,7 +137,7 @@ void MainWindow::RemoveListItem(QListWidgetItem* item)
137
137
}
138
138
139
139
140
- void MainWindow::OnNewMessage (std::string const & name,message::ptr const & data,bool hasAck,message::ptr &ack_resp)
140
+ void MainWindow::OnNewMessage (std::string const & name,message::ptr const & data,bool hasAck,message::list &ack_resp)
141
141
{
142
142
143
143
if (data->get_flag () == message::flag_object)
@@ -152,7 +152,7 @@ void MainWindow::OnNewMessage(std::string const& name,message::ptr const& data,b
152
152
}
153
153
}
154
154
155
- void MainWindow::OnUserJoined (std::string const & name,message::ptr const & data,bool hasAck,message::ptr &ack_resp)
155
+ void MainWindow::OnUserJoined (std::string const & name,message::ptr const & data,bool hasAck,message::list &ack_resp)
156
156
{
157
157
if (data->get_flag () == message::flag_object)
158
158
{
@@ -181,7 +181,7 @@ void MainWindow::OnUserJoined(std::string const& name,message::ptr const& data,b
181
181
182
182
}
183
183
184
- void MainWindow::OnUserLeft (std::string const & name,message::ptr const & data,bool hasAck,message::ptr &ack_resp)
184
+ void MainWindow::OnUserLeft (std::string const & name,message::ptr const & data,bool hasAck,message::list &ack_resp)
185
185
{
186
186
if (data->get_flag () == message::flag_object)
187
187
{
@@ -209,7 +209,7 @@ void MainWindow::OnUserLeft(std::string const& name,message::ptr const& data,boo
209
209
}
210
210
}
211
211
212
- void MainWindow::OnTyping (std::string const & name,message::ptr const & data,bool hasAck,message::ptr &ack_resp)
212
+ void MainWindow::OnTyping (std::string const & name,message::ptr const & data,bool hasAck,message::list &ack_resp)
213
213
{
214
214
if (m_typingItem == NULL )
215
215
{
@@ -223,7 +223,7 @@ void MainWindow::OnTyping(std::string const& name,message::ptr const& data,bool
223
223
}
224
224
}
225
225
226
- void MainWindow::OnStopTyping (std::string const & name,message::ptr const & data,bool hasAck,message::ptr &ack_resp)
226
+ void MainWindow::OnStopTyping (std::string const & name,message::ptr const & data,bool hasAck,message::list &ack_resp)
227
227
{
228
228
if (m_typingItem != NULL )
229
229
{
@@ -232,7 +232,7 @@ void MainWindow::OnStopTyping(std::string const& name,message::ptr const& data,b
232
232
}
233
233
}
234
234
235
- void MainWindow::OnLogin (std::string const & name,message::ptr const & data,bool hasAck,message::ptr &ack_resp)
235
+ void MainWindow::OnLogin (std::string const & name,message::ptr const & data,bool hasAck,message::list &ack_resp)
236
236
{
237
237
Q_EMIT RequestToggleInputs (true );
238
238
int numUser = data->get_map ()[" numUsers" ]->get_int ();
0 commit comments