Public Methods |
| | Plugin (const char * name = 0, QObject *parent = 0) |
| virtual | ~Plugin () |
| virtual PluginInfo | info () = 0 |
| | Returns the information about the plugin.
|
| Connection* | openConnection (const QString &host, int port = 0, const QString &user = QString::null, const QString &password = QString::null) |
| | Create a connection, append it to the connection list, open the connection and return it.
|
| virtual Connection* | addConnection (const QString &host, int port = 0, const QString &user = QString::null, const QString &password = QString::null) |
| | Same as connect, but does not perform the connection.
|
| void | remove (Connection *) |
| | Removes a connection from the list of connections. More...
|
| Connection* | findConnection (const QString &host, const QString & user) |
| | Return a connection to the specified host for the given user. More...
|
| ConnectionIterator | begin () |
| | Returns an iterator that points to the first Connection object.
|
| virtual bool | provides (capability cap) = 0 |
| | returns true if the plugin can handle a given capability.
|
| virtual Capability* | createObject (capability cap) = 0 |
| | Create an object that will handle the specific capability if the plugin does not support a capability, an exception is thrown.
|
Signals |
| void | closing (Plugin *) |
Protected Methods |
| void | registerConnection (Connection *) |
| virtual Connector* | createConnector () = 0 |
Protected Slots |
| void | slotConnectionClose (Connection *) |
Friends |
| class | Connection |
This class allows traversal of the list of available connections, and can be queried about general informations and implemented capabilities through provides()