![]() |
LeechCraft Azoth
0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
|
Interface for accounts supporting IM search. More...
#include "ihavesearch.h"
Public Member Functions | |
virtual | ~IHaveSearch () |
virtual QObject * | CreateSearchSession ()=0 |
Creates a new search session. More... | |
virtual QString | GetDefaultSearchServer () const =0 |
Returns a default search server for this account. More... | |
Interface for accounts supporting IM search.
Some protocols may support searching users or other data via IM services themselves. XEP-0055 (Jabber Search), or typical ICQ oor Skype users search are the examples of this.
This interface should be implemented by accounts that support this feature if they want to provide it for Azoth users in an uniform way.
Definition at line 82 of file ihavesearch.h.
|
inlinevirtual |
Definition at line 85 of file ihavesearch.h.
|
pure virtual |
Creates a new search session.
This function is called by Azoth core or other plugins whenever a new search session is required. This function is expected to return an object implementing ISDSession.
The ownership of the returned object is passed to the caller.
|
pure virtual |
Returns a default search server for this account.
This function returns the default search server for this account. For example, an XMPP implementation would want to return the same server as the user uses.