2 * Copyright 2011 The WebRTC Project Authors. All rights reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
11 #ifndef WEBRTC_LIBJINGLE_XMPP_MUCROOMCONFIGTASK_H_
12 #define WEBRTC_LIBJINGLE_XMPP_MUCROOMCONFIGTASK_H_
15 #include "webrtc/libjingle/xmpp/iqtask.h"
19 // This task configures the muc room for document sharing and other enterprise
21 class MucRoomConfigTask : public IqTask {
23 MucRoomConfigTask(XmppTaskParentInterface* parent,
25 const std::string& room_name,
26 const std::vector<std::string>& room_features);
28 // Room configuration does not return any reasonable error
29 // values. The First config request configures the room, subseqent
30 // ones are just ignored by server and server returns empty
32 sigslot::signal1<MucRoomConfigTask*> SignalResult;
34 const Jid& room_jid() const { return room_jid_; }
37 virtual void HandleResult(const XmlElement* stanza);
40 static XmlElement* MakeRequest(const std::string& room_name,
41 const std::vector<std::string>& room_features);
47 #endif // WEBRTC_LIBJINGLE_XMPP_MUCROOMCONFIGTASK_H_