1 /*
2  *  Copyright 2012 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_MUCROOMDISCOVERYTASK_H_
12 #define WEBRTC_LIBJINGLE_XMPP_MUCROOMDISCOVERYTASK_H_
13 
14 #include <map>
15 #include <string>
16 #include "webrtc/libjingle/xmpp/iqtask.h"
17 
18 namespace buzz {
19 
20 // This task requests the feature capabilities of the room. It is based on
21 // XEP-0030, and extended using XEP-0004.
22 class MucRoomDiscoveryTask : public IqTask {
23  public:
24   MucRoomDiscoveryTask(XmppTaskParentInterface* parent,
25                        const Jid& room_jid);
26 
27   // Signal (exists, name, conversationId, features, extended_info)
28   sigslot::signal6<MucRoomDiscoveryTask*,
29                    bool,
30                    const std::string&,
31                    const std::string&,
32                    const std::set<std::string>&,
33                    const std::map<std::string, std::string>& > SignalResult;
34 
35  protected:
36   virtual void HandleResult(const XmlElement* stanza);
37 };
38 
39 }  // namespace buzz
40 
41 #endif  // WEBRTC_LIBJINGLE_XMPP_MUCROOMDISCOVERYTASK_H_
42