2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
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.
11 #ifndef WEBRTC_LIBJINGLE_XMPP_PRESENCEOUTTASK_H_
12 #define WEBRTC_LIBJINGLE_XMPP_PRESENCEOUTTASK_H_
14 #include "webrtc/libjingle/xmpp/presencestatus.h"
15 #include "webrtc/libjingle/xmpp/xmppengine.h"
16 #include "webrtc/libjingle/xmpp/xmpptask.h"
20 class PresenceOutTask : public XmppTask {
22 explicit PresenceOutTask(XmppTaskParentInterface* parent)
24 virtual ~PresenceOutTask() {}
26 XmppReturnStatus Send(const PresenceStatus & s);
27 XmppReturnStatus SendDirected(const Jid & j, const PresenceStatus & s);
28 XmppReturnStatus SendProbe(const Jid& jid);
30 virtual int ProcessStart();
32 XmlElement * TranslateStatus(const PresenceStatus & s);
37 #endif // WEBRTC_LIBJINGLE_XMPP_PRESENCEOUTTASK_H_