Index: third_party/libjingle_xmpp/xmpp/presenceouttask.h |
diff --git a/third_party/libjingle_xmpp/xmpp/presenceouttask.h b/third_party/libjingle_xmpp/xmpp/presenceouttask.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a1414261370fbc29f4dfc1af19f05c8036c784f7 |
--- /dev/null |
+++ b/third_party/libjingle_xmpp/xmpp/presenceouttask.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2004 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WEBRTC_LIBJINGLE_XMPP_PRESENCEOUTTASK_H_ |
+#define WEBRTC_LIBJINGLE_XMPP_PRESENCEOUTTASK_H_ |
+ |
+#include "third_party/libjingle_xmpp/xmpp/presencestatus.h" |
+#include "third_party/libjingle_xmpp/xmpp/xmppengine.h" |
+#include "third_party/libjingle_xmpp/xmpp/xmpptask.h" |
+ |
+namespace buzz { |
+ |
+class PresenceOutTask : public XmppTask { |
+public: |
+ explicit PresenceOutTask(XmppTaskParentInterface* parent) |
+ : XmppTask(parent) {} |
+ virtual ~PresenceOutTask() {} |
+ |
+ XmppReturnStatus Send(const PresenceStatus & s); |
+ XmppReturnStatus SendDirected(const Jid & j, const PresenceStatus & s); |
+ XmppReturnStatus SendProbe(const Jid& jid); |
+ |
+ virtual int ProcessStart(); |
+private: |
+ XmlElement * TranslateStatus(const PresenceStatus & s); |
+}; |
+ |
+} |
+ |
+#endif // WEBRTC_LIBJINGLE_XMPP_PRESENCEOUTTASK_H_ |