OLD | NEW |
(Empty) | |
| 1 // Copyright 2004 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WEBRTC_LIBJINGLE_XMPP_PRESENCEOUTTASK_H_ |
| 6 #define WEBRTC_LIBJINGLE_XMPP_PRESENCEOUTTASK_H_ |
| 7 |
| 8 #include "third_party/libjingle_xmpp/xmpp/presencestatus.h" |
| 9 #include "third_party/libjingle_xmpp/xmpp/xmppengine.h" |
| 10 #include "third_party/libjingle_xmpp/xmpp/xmpptask.h" |
| 11 |
| 12 namespace buzz { |
| 13 |
| 14 class PresenceOutTask : public XmppTask { |
| 15 public: |
| 16 explicit PresenceOutTask(XmppTaskParentInterface* parent) |
| 17 : XmppTask(parent) {} |
| 18 virtual ~PresenceOutTask() {} |
| 19 |
| 20 XmppReturnStatus Send(const PresenceStatus & s); |
| 21 XmppReturnStatus SendDirected(const Jid & j, const PresenceStatus & s); |
| 22 XmppReturnStatus SendProbe(const Jid& jid); |
| 23 |
| 24 virtual int ProcessStart(); |
| 25 private: |
| 26 XmlElement * TranslateStatus(const PresenceStatus & s); |
| 27 }; |
| 28 |
| 29 } |
| 30 |
| 31 #endif // WEBRTC_LIBJINGLE_XMPP_PRESENCEOUTTASK_H_ |
OLD | NEW |