blob: d297d027f298866c7fe98311c71e0851be89c62a [file] [log] [blame]
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +00001/*
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved.
3 *
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.
9 */
10
11#ifndef WEBRTC_LIBJINGLE_XMPP_MUCROOMCONFIGTASK_H_
12#define WEBRTC_LIBJINGLE_XMPP_MUCROOMCONFIGTASK_H_
13
14#include <string>
15#include "webrtc/libjingle/xmpp/iqtask.h"
16
17namespace buzz {
18
19// This task configures the muc room for document sharing and other enterprise
20// specific goodies.
21class MucRoomConfigTask : public IqTask {
22 public:
23 MucRoomConfigTask(XmppTaskParentInterface* parent,
24 const Jid& room_jid,
25 const std::string& room_name,
26 const std::vector<std::string>& room_features);
27
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
31 // response.
32 sigslot::signal1<MucRoomConfigTask*> SignalResult;
33
34 const Jid& room_jid() const { return room_jid_; }
35
36 protected:
37 virtual void HandleResult(const XmlElement* stanza);
38
39 private:
40 static XmlElement* MakeRequest(const std::string& room_name,
41 const std::vector<std::string>& room_features);
42 Jid room_jid_;
43};
44
45} // namespace buzz
46
47#endif // WEBRTC_LIBJINGLE_XMPP_MUCROOMCONFIGTASK_H_