 |
LeechCraft Azoth
0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
|
Go to the documentation of this file.
9 #ifndef PLUGINS_AZOTH_INTERFACES_IHAVESERVICEDISCOVERY_H
10 #define PLUGINS_AZOTH_INTERFACES_IHAVESERVICEDISCOVERY_H
13 class QAbstractItemModel;
52 virtual void SetQuery (
const QString& query) = 0;
64 virtual QString
GetQuery ()
const = 0;
123 virtual void ExecuteAction (
const QModelIndex& index,
const QByteArray&
id) = 0;
209 "org.Deviant.LeechCraft.Azoth.ISDSession/1.0")
210 Q_DECLARE_INTERFACE (
LC::Azoth::IHaveServiceDiscovery,
211 "org.Deviant.LeechCraft.Azoth.IHaveServiceDiscovery/1.0")
virtual QString GetQuery() const =0
Returns the query of this SD session.
virtual QObject * CreateSDSession()=0
Creates a new service discovery session.
virtual QAbstractItemModel * GetRepresentationModel() const =0
Returns the model representing discovery results.
Interface for service discovery sessions.
Interface for accounts supporting service discovery.
virtual void SetQuery(const QString &query)=0
Sets the service discovery query.
virtual void ExecuteAction(const QModelIndex &index, const QByteArray &id)=0
Executes the action with the given id.
virtual ~IHaveServiceDiscovery()
virtual void gotSDSession(QObject *session)=0
Notifies about a new service discovery session.
virtual QList< QPair< QByteArray, QString > > GetActionsFor(const QModelIndex &index)=0
Returns the list of actions for the given index.
virtual QString GetDefaultQuery() const =0
Returns the default query for this account.