class Plugin

Access point to a specific DBMS. More...

Contains pure virtuals
Full nameKDB::Plugin
Definition#include <plugin.h>
InheritsKDB::Object
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Protected Methods

Protected Members


Detailed Description

A Plugin handles all connections related to a DBMS (Postgres, MySQL, and so on).

This class allows traversal of the list of available connections, and can be queryed about general informations and implemented capabilities trough provides

The Plugin is also responsible of creating "capability objects", that is objects that can implement a specific capabilities.

Actually whe have found the following capabilities:

typedef QListIterator<Connection> iterator

PluginInfo (struct)

 Plugin (const char * name = 0)

Plugin ()

[virtual]

PluginInfo  info ()

[pure virtual]

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.

Connection *  addConnection (const QString &host, int port = 0, const QString &user = QString::null, const QString &password = QString::null)

[virtual]

same as connect, but does not perform the connection

void  remove (Connection *)

removes a connection from the list of connections. This will delete the connection, so make sure to not have dangling reference to the connection

Connection *  find (const QString &host)

return a connection to the specified host, or OL if no connection to that host exists

iterator  begin ()

returns an iterator that points to the first Connection object

bool  provides (capability cap)

[pure virtual]

returns true if the plugin can handle a given capability

Capability *  createObject (capability cap)

[pure virtual]

create an object that will handle the specific capability if the plugin does not support a capability, an exception is thrown

Connection * createConnection (const QString& host, int port)

[protected pure virtual]

QList<Connection> m_connections

[protected]


Generated by: pradu@server.rete.casa on Fri Jul 28 15:15:55 2000, using kdoc 2.0a36.