1 /* 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 17 namespace buzz { 18 19 // This task configures the muc room for document sharing and other enterprise 20 // specific goodies. 21 class 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 room_jid()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_ 48