Kexi API Documentation (2.0 alpha)

KexiDB::DriverManagerInternal Class Reference

#include <drivermanager_p.h>

Inheritance diagram for KexiDB::DriverManagerInternal:

KexiDB::Object List of all members.

Detailed Description

Internal class of driver manager.

Definition at line 32 of file drivermanager_p.h.

Public Member Functions

 ~DriverManagerInternal ()
KexiDB::Driverdriver (const QString &name)
KexiDB::Driver::Info driverInfo (const QString &name)
void incRefCount ()
void decRefCount ()
void aboutDelete (Driver *drv)

Static Public Member Functions

static DriverManagerInternalself ()

Protected Slots

void slotAppQuits ()

Protected Member Functions

 DriverManagerInternal ()
bool lookupDrivers ()

Protected Attributes

DriverManager::ServicesMap m_services
DriverManager::ServicesMap m_services_lcase
 services map
DriverManager::ServicesMap m_services_by_mimetype
 as above but service names in lowercase
Driver::InfoMap m_driversInfo
QAsciiDict< KexiDB::Driverm_drivers
 used to store drivers information
ulong m_refCount
QString m_serverErrMsg
int m_serverResultNum
QString m_serverResultName
QMap< int, QStringm_componentLoadingErrors
 result names for KParts::ComponentFactory::ComponentLoadingError
QStringList possibleProblems
bool lookupDriversNeeded: 1

Static Protected Attributes

static KexiDB::DriverManagerInternals_self = 0L

Friends

class DriverManager


Constructor & Destructor Documentation

DriverManagerInternal::~DriverManagerInternal  ) 
 

Definition at line 61 of file drivermanager.cpp.

References KexiDBDbg, m_drivers, and s_self.

DriverManagerInternal::DriverManagerInternal  )  [protected]
 

Used by self()

Definition at line 49 of file drivermanager.cpp.

References m_drivers, and m_serverResultNum.

Referenced by self().


Member Function Documentation

void DriverManagerInternal::aboutDelete Driver drv  ) 
 

Called from Driver dtor (because sometimes KLibrary (used by Driver) is destroyed before DriverManagerInternal)

Definition at line 264 of file drivermanager.cpp.

References m_drivers.

void DriverManagerInternal::decRefCount  ) 
 

decrements the refcount for the manager if the refcount reaches a value less than 1 the manager is freed

Definition at line 253 of file drivermanager.cpp.

References KexiDBDbg, and m_refCount.

Referenced by KexiDB::DriverManager::~DriverManager().

Driver * DriverManagerInternal::driver const QString name  ) 
 

Tries to load db driver name.

Returns:
db driver, or 0 if error (then error message is also set)

Definition at line 193 of file drivermanager.cpp.

References KexiDB::Object::clearError(), KexiDB::Driver::d, ERR_DRIVERMANAGER, KexiDB::DriverPrivate::fileDBDriverMimeType, KexiDB::DriverPrivate::initInternalProperties(), KexiDB::Driver::isValid(), KexiDBDbg, lookupDrivers(), m_componentLoadingErrors, m_drivers, m_serverResultName, m_serverResultNum, m_services_lcase, KexiDB::DriverPrivate::service, and KexiDB::Object::setError().

Referenced by KexiDB::DriverManager::driver().

KexiDB::Driver::Info DriverManagerInternal::driverInfo const QString name  ) 
 

Definition at line 185 of file drivermanager.cpp.

References ERR_DRIVERMANAGER, KexiDB::Object::error(), m_driversInfo, KexiDB::Driver::Info::name, and KexiDB::Object::setError().

Referenced by KexiDB::DriverManager::driverInfo().

void DriverManagerInternal::incRefCount  ) 
 

increments the refcount for the manager

Definition at line 247 of file drivermanager.cpp.

References KexiDBDbg, and m_refCount.

Referenced by KexiDB::DriverManager::DriverManager().

bool DriverManagerInternal::lookupDrivers  )  [protected]
 

Definition at line 86 of file drivermanager.cpp.

References KexiDB::Object::clearError(), ERR_DRIVERMANAGER, KexiDBDbg, KexiDBWarn, lookupDriversNeeded, m_services, m_services_by_mimetype, m_services_lcase, possibleProblems, KexiDB::Object::setError(), slotAppQuits(), and KexiDB::version().

Referenced by driver(), KexiDB::DriverManager::driverNames(), KexiDB::DriverManager::driversInfo(), KexiDB::DriverManager::lookupByMime(), KexiDB::DriverManager::serviceInfo(), and KexiDB::DriverManager::services().

DriverManagerInternal * DriverManagerInternal::self  )  [static]
 

Definition at line 78 of file drivermanager.cpp.

References DriverManagerInternal(), and s_self.

void DriverManagerInternal::slotAppQuits  )  [protected, slot]
 

Used to destroy all drivers on QApplication quit, so even if there are DriverManager's static instances that are destroyed on program "static destruction", drivers are not kept after QApplication death.

Definition at line 70 of file drivermanager.cpp.

References KexiDBDbg, and m_drivers.

Referenced by lookupDrivers().


Friends And Related Function Documentation

friend class DriverManager [friend]
 

Definition at line 89 of file drivermanager_p.h.


Member Data Documentation

bool KexiDB::DriverManagerInternal::lookupDriversNeeded [protected]
 

Definition at line 87 of file drivermanager_p.h.

Referenced by lookupDrivers().

QMap<int,QString> KexiDB::DriverManagerInternal::m_componentLoadingErrors [protected]
 

result names for KParts::ComponentFactory::ComponentLoadingError

Definition at line 83 of file drivermanager_p.h.

Referenced by driver().

QAsciiDict<KexiDB::Driver> KexiDB::DriverManagerInternal::m_drivers [protected]
 

used to store drivers information

Definition at line 76 of file drivermanager_p.h.

Referenced by aboutDelete(), driver(), DriverManagerInternal(), slotAppQuits(), and ~DriverManagerInternal().

Driver::InfoMap KexiDB::DriverManagerInternal::m_driversInfo [protected]
 

Definition at line 75 of file drivermanager_p.h.

Referenced by driverInfo(), and KexiDB::DriverManager::driversInfo().

ulong KexiDB::DriverManagerInternal::m_refCount [protected]
 

Definition at line 77 of file drivermanager_p.h.

Referenced by decRefCount(), incRefCount(), and KexiDB::DriverManager::~DriverManager().

QString KexiDB::DriverManagerInternal::m_serverErrMsg [protected]
 

Definition at line 79 of file drivermanager_p.h.

Referenced by KexiDB::DriverManager::drv_clearServerResult(), and KexiDB::DriverManager::serverErrorMsg().

QString KexiDB::DriverManagerInternal::m_serverResultName [protected]
 

Reimplemented from KexiDB::Object.

Definition at line 81 of file drivermanager_p.h.

Referenced by driver(), KexiDB::DriverManager::drv_clearServerResult(), and KexiDB::DriverManager::serverResultName().

int KexiDB::DriverManagerInternal::m_serverResultNum [protected]
 

Definition at line 80 of file drivermanager_p.h.

Referenced by driver(), DriverManagerInternal(), KexiDB::DriverManager::drv_clearServerResult(), and KexiDB::DriverManager::serverResult().

DriverManager::ServicesMap KexiDB::DriverManagerInternal::m_services [protected]
 

Definition at line 72 of file drivermanager_p.h.

Referenced by KexiDB::DriverManager::driverNames(), KexiDB::DriverManager::driversInfo(), lookupDrivers(), and KexiDB::DriverManager::services().

DriverManager::ServicesMap KexiDB::DriverManagerInternal::m_services_by_mimetype [protected]
 

as above but service names in lowercase

Definition at line 74 of file drivermanager_p.h.

Referenced by KexiDB::DriverManager::lookupByMime(), and lookupDrivers().

DriverManager::ServicesMap KexiDB::DriverManagerInternal::m_services_lcase [protected]
 

services map

Definition at line 73 of file drivermanager_p.h.

Referenced by driver(), lookupDrivers(), and KexiDB::DriverManager::serviceInfo().

QStringList KexiDB::DriverManagerInternal::possibleProblems [protected]
 

Definition at line 85 of file drivermanager_p.h.

Referenced by lookupDrivers(), and KexiDB::DriverManager::possibleProblemsInfoMsg().

DriverManagerInternal * DriverManagerInternal::s_self = 0L [static, protected]
 

Definition at line 46 of file drivermanager.cpp.

Referenced by self(), and ~DriverManagerInternal().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:41 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003