Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / libjingle / xmpp / presenceouttask.h
1 /*
2  *  Copyright 2004 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_PRESENCEOUTTASK_H_
12 #define WEBRTC_LIBJINGLE_XMPP_PRESENCEOUTTASK_H_
13
14 #include "webrtc/libjingle/xmpp/presencestatus.h"
15 #include "webrtc/libjingle/xmpp/xmppengine.h"
16 #include "webrtc/libjingle/xmpp/xmpptask.h"
17
18 namespace buzz {
19
20 class PresenceOutTask : public XmppTask {
21 public:
22   explicit PresenceOutTask(XmppTaskParentInterface* parent)
23       : XmppTask(parent) {}
24   virtual ~PresenceOutTask() {}
25
26   XmppReturnStatus Send(const PresenceStatus & s);
27   XmppReturnStatus SendDirected(const Jid & j, const PresenceStatus & s);
28   XmppReturnStatus SendProbe(const Jid& jid);
29
30   virtual int ProcessStart();
31 private:
32   XmlElement * TranslateStatus(const PresenceStatus & s);
33 };
34
35 }
36
37 #endif  // WEBRTC_LIBJINGLE_XMPP_PRESENCEOUTTASK_H_