• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright 2010 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_JINGLEINFOTASK_H_
12 #define WEBRTC_LIBJINGLE_XMPP_JINGLEINFOTASK_H_
13 
14 #include <vector>
15 
16 #include "webrtc/p2p/client/httpportallocator.h"
17 #include "webrtc/libjingle/xmpp/xmppengine.h"
18 #include "webrtc/libjingle/xmpp/xmpptask.h"
19 #include "webrtc/base/sigslot.h"
20 
21 namespace buzz {
22 
23 class JingleInfoTask : public XmppTask {
24  public:
JingleInfoTask(XmppTaskParentInterface * parent)25   explicit JingleInfoTask(XmppTaskParentInterface* parent) :
26     XmppTask(parent, XmppEngine::HL_TYPE) {}
27 
28   virtual int ProcessStart();
29   void RefreshJingleInfoNow();
30 
31   sigslot::signal3<const std::string &,
32                    const std::vector<std::string> &,
33                    const std::vector<rtc::SocketAddress> &>
34                        SignalJingleInfo;
35 
36  protected:
37   class JingleInfoGetTask;
38   friend class JingleInfoGetTask;
39 
40   virtual bool HandleStanza(const XmlElement * stanza);
41 };
42 }
43 
44 #endif  // WEBRTC_LIBJINGLE_XMPP_JINGLEINFOTASK_H_
45