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_MUCROOMUNIQUEHANGOUTIDTASK_H_
12 #define WEBRTC_LIBJINGLE_XMPP_MUCROOMUNIQUEHANGOUTIDTASK_H_
13 
14 #include "webrtc/libjingle/xmpp/iqtask.h"
15 
16 namespace buzz {
17 
18 // Task to request a unique hangout id to be used when starting a hangout.
19 // The protocol is described in https://docs.google.com/a/google.com/
20 // document/d/1EFLT6rCYPDVdqQXSQliXwqB3iUkpZJ9B_MNFeOZgN7g/edit
21 class MucRoomUniqueHangoutIdTask : public buzz::IqTask {
22  public:
23   MucRoomUniqueHangoutIdTask(buzz::XmppTaskParentInterface* parent,
24                         const Jid& lookup_server_jid);
25   // signal(task, hangout_id)
26   sigslot::signal2<MucRoomUniqueHangoutIdTask*, const std::string&> SignalResult;
27 
28  protected:
29   virtual void HandleResult(const buzz::XmlElement* stanza);
30 
31  private:
32   static buzz::XmlElement* MakeUniqueRequestXml();
33 
34 };
35 
36 } // namespace buzz
37 
38 #endif  // WEBRTC_LIBJINGLE_XMPP_MUCROOMUNIQUEHANGOUTIDTASK_H_
39