~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to src/protocol/discoinfoquerier.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef DISCOINFOQUERIER_H
 
2
#define DISCOINFOQUERIER_H
 
3
 
 
4
#include <QObject>
 
5
 
 
6
namespace XMPP {
 
7
        class Jid;
 
8
        class DiscoItem;
 
9
};
 
10
 
 
11
namespace Protocol {
 
12
 
 
13
/**
 
14
 * A DiscoInfoQuerier is an object used to query Service Discovery information.
 
15
 */
 
16
class DiscoInfoQuerier : public QObject
 
17
{
 
18
        Q_OBJECT
 
19
 
 
20
public:
 
21
        /**
 
22
         * Retrieves Disco information of a jid on a specific node.
 
23
         */
 
24
        virtual void getDiscoInfo(const XMPP::Jid& jid, const QString& node) = 0;
 
25
 
 
26
signals:
 
27
        /**
 
28
         * Signals that a disco information request was succesful.
 
29
         * 
 
30
         * @param jid the jid on which the request was done
 
31
         * @param node the node on which the request was done
 
32
         * @param item the resulting disco item.
 
33
         */
 
34
        void getDiscoInfo_success(const XMPP::Jid& jid, const QString& node, const XMPP::DiscoItem& item);
 
35
 
 
36
        /**
 
37
         * Signals that a disco information request returned an error.
 
38
         * 
 
39
         * @param jid the jid on which the request was done
 
40
         * @param node the node on which the request was done
 
41
         * @param error_code the error code of the error
 
42
         * @param error_string the error text of the error
 
43
         */
 
44
        void getDiscoInfo_error(const XMPP::Jid& jid, const QString& node, int error_code, const QString& error_string);
 
45
};
 
46
};
 
47
 
 
48
#endif