File indexing completed on 2024-04-21 04:04:43
0001 /* 0002 Copyright (c) 2008 by Igor Janssen <alaves17@gmail.com> 0003 0004 Kopete (c) 2008 by the Kopete developers <kopete-devel@kde.org> 0005 0006 ************************************************************************* 0007 * * 0008 * This program is free software; you can redistribute it and/or modify * 0009 * it under the terms of the GNU General Public License as published by * 0010 * the Free Software Foundation; either either version 2 0011 of the License, or (at your option) any later version.of the License, or * 0012 * (at your option) any later version. * 0013 * * 0014 ************************************************************************* 0015 */ 0016 0017 #ifndef JT_PUBSUB_H 0018 #define JT_PUBSUB_H 0019 0020 // XEP-0060: Publish-Subscribe 0021 0022 #include "xmpp_task.h" 0023 #include "xmpp_jid.h" 0024 #include "xmpp_pubsubitem.h" 0025 #include <QDomElement> 0026 0027 class QString; 0028 //class PubSubItem; 0029 0030 class JT_PubSubPublish : public XMPP::Task 0031 { 0032 Q_OBJECT 0033 public: 0034 JT_PubSubPublish(XMPP::Task *parent, const QString &node, XMPP::PubSubItem &psitem); 0035 ~JT_PubSubPublish(); 0036 0037 void onGo(); 0038 bool take(const QDomElement &); 0039 0040 private: 0041 QDomElement mIQ; 0042 }; 0043 0044 #endif