Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::DB::OSQLDriver Class Reference

#include </home/clem/local/src/opie/libopie2/opiedb/osqldriver.h>

Inheritance diagram for Opie::DB::OSQLDriver:

Inheritance graph
[legend]
Collaboration diagram for Opie::DB::OSQLDriver:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Capabilities { RowID = 0 }

Public Member Functions

 OSQLDriver (QLibrary *lib=0)
virtual ~OSQLDriver ()
virtual QString id () const =0
virtual void setUserName (const QString &)=0
virtual void setPassword (const QString &)=0
virtual void setUrl (const QString &)=0
virtual void setOptions (const QStringList &)=0
virtual bool open ()=0
virtual bool close ()=0
virtual OSQLError lastError ()=0
virtual OSQLResult query (OSQLQuery *)=0
virtual OSQLTable::ValueList tables () const =0l
virtual bool sync ()

Private Attributes

QLibrarym_lib
OSQLDriverPrivate * d

Detailed Description

A OSQLDriver implements the communication with a database. After you queried and loaded a driver you can set some informations and finally try to open the database

Definition at line 26 of file osqldriver.h.


Member Enumeration Documentation

enum Opie::DB::OSQLDriver::Capabilities
 

Enumeration values:
RowID 

Definition at line 29 of file osqldriver.h.


Constructor & Destructor Documentation

OSQLDriver::OSQLDriver QLibrary lib = 0  ) 
 

OSQLDriver constructor. It takes the QLibrary as parent.

Definition at line 7 of file osqldriver.cpp.

OSQLDriver::~OSQLDriver  )  [virtual]
 

Definition at line 10 of file osqldriver.cpp.

References m_lib.


Member Function Documentation

virtual bool Opie::DB::OSQLDriver::close  )  [pure virtual]
 

Implemented in Opie::DB::Internal::OSQLiteDriver.

Referenced by OTodoAccessBackendSQL::save(), Opie::OPimTodoAccessBackendSQL::save(), ODateBookAccessBackend_SQL::save(), Opie::ODateBookAccessBackend_SQL::save(), OContactAccessBackend_SQL::save(), and Opie::OPimContactAccessBackend_SQL::save().

virtual QString Opie::DB::OSQLDriver::id  )  const [pure virtual]
 

Id returns the identifier of the OSQLDriver

Implemented in Opie::DB::Internal::OSQLiteDriver.

Referenced by main().

virtual OSQLError Opie::DB::OSQLDriver::lastError  )  [pure virtual]
 

Implemented in Opie::DB::Internal::OSQLiteDriver.

virtual bool Opie::DB::OSQLDriver::open  )  [pure virtual]
 

tries to open a connection to the database

Implemented in Opie::DB::Internal::OSQLiteDriver.

Referenced by OTodoAccessBackendSQL::load(), Opie::OPimTodoAccessBackendSQL::load(), ODateBookAccessBackend_SQL::load(), Opie::ODateBookAccessBackend_SQL::load(), OContactAccessBackend_SQL::load(), Opie::OPimContactAccessBackend_SQL::load(), and main().

virtual OSQLResult Opie::DB::OSQLDriver::query OSQLQuery  )  [pure virtual]
 

Query the Database with a OSQLQuery OSQLResult holds the result

Implemented in Opie::DB::Internal::OSQLiteDriver.

Referenced by OTodoAccessBackendSQL::add(), Opie::OPimTodoAccessBackendSQL::add(), ODateBookAccessBackend_SQL::add(), Opie::ODateBookAccessBackend_SQL::add(), OContactAccessBackend_SQL::add(), Opie::OPimContactAccessBackend_SQL::add(), OTodoAccessBackendSQL::clear(), Opie::OPimTodoAccessBackendSQL::clear(), ODateBookAccessBackend_SQL::clear(), Opie::ODateBookAccessBackend_SQL::clear(), OContactAccessBackend_SQL::clear(), Opie::OPimContactAccessBackend_SQL::clear(), OTodoAccessBackendSQL::effectiveToDos(), Opie::OPimTodoAccessBackendSQL::effectiveToDos(), OTodoAccessBackendSQL::find(), ODateBookAccessBackend_SQL::find(), Opie::ODateBookAccessBackend_SQL::find(), OTodoAccessBackendSQL::load(), Opie::OPimTodoAccessBackendSQL::load(), ODateBookAccessBackend_SQL::load(), Opie::ODateBookAccessBackend_SQL::load(), OContactAccessBackend_SQL::load(), Opie::OPimContactAccessBackend_SQL::load(), main(), Opie::OPimTodoAccessBackendSQL::matchRegexp(), Opie::ODateBookAccessBackend_SQL::matchRegexp(), Opie::OPimContactAccessBackend_SQL::matchRegexp(), ODateBookAccessBackend_SQL::nonRepeats(), Opie::ODateBookAccessBackend_SQL::nonRepeats(), OTodoAccessBackendSQL::overDue(), Opie::OPimTodoAccessBackendSQL::overDue(), OContactAccessBackend_SQL::queryByExample(), Opie::OPimContactAccessBackend_SQL::queryByExample(), ODateBookAccessBackend_SQL::rawRepeats(), Opie::ODateBookAccessBackend_SQL::rawRepeats(), OTodoAccessBackendSQL::remove(), ODateBookAccessBackend_SQL::remove(), Opie::ODateBookAccessBackend_SQL::remove(), OContactAccessBackend_SQL::remove(), Opie::OPimContactAccessBackend_SQL::remove(), Opie::OPimTodoAccessBackendSQL::removeAllCompleted(), Opie::ODateBookAccessBackend_SQL::requestCustom(), OContactAccessBackend_SQL::requestCustom(), Opie::OPimContactAccessBackend_SQL::requestCustom(), OContactAccessBackend_SQL::requestNonCustom(), Opie::OPimContactAccessBackend_SQL::requestNonCustom(), OTodoAccessBackendSQL::sorted(), OContactAccessBackend_SQL::sorted(), Opie::OPimContactAccessBackend_SQL::sorted(), OTodoAccessBackendSQL::todo(), OTodoAccessBackendSQL::update(), Opie::OPimTodoAccessBackendSQL::update(), ODateBookAccessBackend_SQL::update(), Opie::ODateBookAccessBackend_SQL::update(), OContactAccessBackend_SQL::update(), and Opie::OPimContactAccessBackend_SQL::update().

virtual void Opie::DB::OSQLDriver::setOptions const QStringList  )  [pure virtual]
 

setOptions

Implemented in Opie::DB::Internal::OSQLiteDriver.

virtual void Opie::DB::OSQLDriver::setPassword const QString  )  [pure virtual]
 

set the PassWord to the database

Implemented in Opie::DB::Internal::OSQLiteDriver.

virtual void Opie::DB::OSQLDriver::setUrl const QString  )  [pure virtual]
 

set the Url

Implemented in Opie::DB::Internal::OSQLiteDriver.

Referenced by main(), OContactAccessBackend_SQL::OContactAccessBackend_SQL(), ODateBookAccessBackend_SQL::ODateBookAccessBackend_SQL(), Opie::ODateBookAccessBackend_SQL::ODateBookAccessBackend_SQL(), Opie::OPimContactAccessBackend_SQL::OPimContactAccessBackend_SQL(), Opie::OPimTodoAccessBackendSQL::OPimTodoAccessBackendSQL(), and OTodoAccessBackendSQL::OTodoAccessBackendSQL().

virtual void Opie::DB::OSQLDriver::setUserName const QString  )  [pure virtual]
 

set the UserName to the database

Implemented in Opie::DB::Internal::OSQLiteDriver.

bool OSQLDriver::sync  )  [virtual]
 

Definition at line 13 of file osqldriver.cpp.

virtual OSQLTable::ValueList Opie::DB::OSQLDriver::tables  )  const [pure virtual]
 

Get a list of tables

Implemented in Opie::DB::Internal::OSQLiteDriver.


Member Data Documentation

OSQLDriverPrivate* Opie::DB::OSQLDriver::d [private]
 

Definition at line 86 of file osqldriver.h.

QLibrary* Opie::DB::OSQLDriver::m_lib [private]
 

Definition at line 85 of file osqldriver.h.

Referenced by ~OSQLDriver().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:01:16 2005 for OPIE by  doxygen 1.4.2