Kexi API Documentation (2.0 alpha)

KexiMigration::MigrateManagerInternal Class Reference

#include <migratemanager_p.h>

Inheritance diagram for KexiMigration::MigrateManagerInternal:

KexiDB::Object List of all members.

Detailed Description

Internal class of driver manager.

Definition at line 30 of file migratemanager_p.h.

Public Member Functions

 ~MigrateManagerInternal ()
KexiMigratedriver (const QString &name)
void incRefCount ()
void decRefCount ()

Static Public Member Functions

static MigrateManagerInternalself ()

Protected Slots

void slotAppQuits ()

Protected Member Functions

 MigrateManagerInternal ()
bool lookupDrivers ()

Protected Attributes

MigrateManager::ServicesMap m_services
MigrateManager::ServicesMap m_services_lcase
 services map
MigrateManager::ServicesMap m_services_by_mimetype
 as above but service names in lowercase
QAsciiDict< KexiMigratem_drivers
ulong m_refCount
QString m_serverErrMsg
int m_serverResultNum
QString m_serverResultName
QMap< int, QStringm_componentLoadingErrors
 result names for KParts::ComponentFactory::ComponentLoadingError
bool lookupDriversNeeded: 1
QStringList possibleProblems

Static Protected Attributes

static MigrateManagerInternals_self = 0L

Friends

class MigrateManager


Constructor & Destructor Documentation

MigrateManagerInternal::~MigrateManagerInternal  ) 
 

Definition at line 64 of file migratemanager.cpp.

References KexiDBDbg, m_drivers, and s_self.

MigrateManagerInternal::MigrateManagerInternal  )  [protected]
 

Used by self()

Definition at line 52 of file migratemanager.cpp.

References m_drivers, and m_serverResultNum.

Referenced by self().


Member Function Documentation

void MigrateManagerInternal::decRefCount  ) 
 

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

Definition at line 239 of file migratemanager.cpp.

References KexiDBDbg, and m_refCount.

Referenced by KexiMigration::MigrateManager::~MigrateManager().

KexiMigrate * MigrateManagerInternal::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 178 of file migratemanager.cpp.

References KexiDB::Object::clearError(), ERR_DRIVERMANAGER, KexiMigration::KexiMigrate::isValid(), KexiDBDbg, lookupDrivers(), m_componentLoadingErrors, m_drivers, m_serverResultName, m_serverResultNum, m_services_lcase, and KexiDB::Object::setError().

Referenced by KexiMigration::MigrateManager::driver().

void MigrateManagerInternal::incRefCount  ) 
 

increments the refcount for the manager

Definition at line 233 of file migratemanager.cpp.

References KexiDBDbg, and m_refCount.

Referenced by KexiMigration::MigrateManager::MigrateManager().

bool MigrateManagerInternal::lookupDrivers  )  [protected]
 

Todo:
could be merged. Copied from KexiDB::DriverManager.

Definition at line 89 of file migratemanager.cpp.

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

Referenced by driver(), KexiMigration::MigrateManager::driverForMimeType(), and KexiMigration::MigrateManager::driverNames().

MigrateManagerInternal * MigrateManagerInternal::self  )  [static]
 

Definition at line 81 of file migratemanager.cpp.

References MigrateManagerInternal(), and s_self.

void MigrateManagerInternal::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 73 of file migratemanager.cpp.

References KexiDBDbg, and m_drivers.

Referenced by lookupDrivers().


Friends And Related Function Documentation

friend class MigrateManager [friend]
 

Definition at line 81 of file migratemanager_p.h.


Member Data Documentation

bool KexiMigration::MigrateManagerInternal::lookupDriversNeeded [protected]
 

Definition at line 77 of file migratemanager_p.h.

Referenced by lookupDrivers().

QMap<int,QString> KexiMigration::MigrateManagerInternal::m_componentLoadingErrors [protected]
 

result names for KParts::ComponentFactory::ComponentLoadingError

Definition at line 75 of file migratemanager_p.h.

Referenced by driver().

QAsciiDict<KexiMigrate> KexiMigration::MigrateManagerInternal::m_drivers [protected]
 

Definition at line 68 of file migratemanager_p.h.

Referenced by driver(), MigrateManagerInternal(), slotAppQuits(), and ~MigrateManagerInternal().

ulong KexiMigration::MigrateManagerInternal::m_refCount [protected]
 

Definition at line 69 of file migratemanager_p.h.

Referenced by decRefCount(), incRefCount(), and KexiMigration::MigrateManager::~MigrateManager().

QString KexiMigration::MigrateManagerInternal::m_serverErrMsg [protected]
 

Definition at line 71 of file migratemanager_p.h.

Referenced by KexiMigration::MigrateManager::drv_clearServerResult(), and KexiMigration::MigrateManager::serverErrorMsg().

QString KexiMigration::MigrateManagerInternal::m_serverResultName [protected]
 

Reimplemented from KexiDB::Object.

Definition at line 73 of file migratemanager_p.h.

Referenced by driver(), KexiMigration::MigrateManager::drv_clearServerResult(), and KexiMigration::MigrateManager::serverResultName().

int KexiMigration::MigrateManagerInternal::m_serverResultNum [protected]
 

Definition at line 72 of file migratemanager_p.h.

Referenced by driver(), KexiMigration::MigrateManager::drv_clearServerResult(), MigrateManagerInternal(), and KexiMigration::MigrateManager::serverResult().

MigrateManager::ServicesMap KexiMigration::MigrateManagerInternal::m_services [protected]
 

Definition at line 64 of file migratemanager_p.h.

Referenced by KexiMigration::MigrateManager::driverNames(), and lookupDrivers().

MigrateManager::ServicesMap KexiMigration::MigrateManagerInternal::m_services_by_mimetype [protected]
 

as above but service names in lowercase

Definition at line 66 of file migratemanager_p.h.

Referenced by KexiMigration::MigrateManager::driverForMimeType(), and lookupDrivers().

MigrateManager::ServicesMap KexiMigration::MigrateManagerInternal::m_services_lcase [protected]
 

services map

Definition at line 65 of file migratemanager_p.h.

Referenced by driver(), and lookupDrivers().

QStringList KexiMigration::MigrateManagerInternal::possibleProblems [protected]
 

Definition at line 79 of file migratemanager_p.h.

Referenced by lookupDrivers(), and KexiMigration::MigrateManager::possibleProblemsInfoMsg().

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

Definition at line 43 of file migratemanager.cpp.

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


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:52 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003