Kexi API Documentation (2.0 alpha)

keximigrate.h File Reference

#include "kexidb/tableschema.h"
#include "kexidb/connection.h"
#include "keximigratedata.h"
#include <kgenericfactory.h>
#include <qstringlist.h>
#include <qguardedptr.h>

Go to the source code of this file.

Namespaces

namespace  Kexi
namespace  KexiMigration

Defines

#define KEXI_MIGRATION_VERSION_MAJOR   1
#define KEXI_MIGRATION_VERSION_MINOR   1
#define KEXIMIGRATE_DRIVER_INFO(class_name, internal_name)
 Driver's static version information (implementation), with KLibFactory symbol declaration.
#define KEXIMIGRATION_DRIVER

Functions

KEXIMIGR_EXPORT int versionMajor ()
 Returns the major number of Kexi's version, e.g.
KEXIMIGR_EXPORT int versionMinor ()
 Returns the minor number of Kexi's version, e.g.


Define Documentation

#define KEXI_MIGRATION_VERSION_MAJOR   1
 

KexiMigration implementation version. It is altered after every change:

Definition at line 47 of file keximigrate.h.

Referenced by KexiMigration::versionMajor().

#define KEXI_MIGRATION_VERSION_MINOR   1
 

Definition at line 48 of file keximigrate.h.

Referenced by KexiMigration::versionMinor().

#define KEXIMIGRATE_DRIVER_INFO class_name,
internal_name   ) 
 

Value:

int class_name::versionMajor() const { return KEXI_MIGRATION_VERSION_MAJOR; } \
    int class_name::versionMinor() const { return KEXI_MIGRATION_VERSION_MINOR; } \
    K_EXPORT_COMPONENT_FACTORY(keximigrate_ ## internal_name, \
      KGenericFactory<KexiMigration::class_name>( "keximigrate_" #internal_name ))
Driver's static version information (implementation), with KLibFactory symbol declaration.

Definition at line 296 of file keximigrate.h.

#define KEXIMIGRATION_DRIVER
 

Value:

public: \
    virtual int versionMajor() const; \
    virtual int versionMinor() const;
Driver's static version information, automatically implemented for KexiDB drivers. Put this into migration driver class declaration just like Q_OBJECT macro.

Definition at line 304 of file keximigrate.h.


Function Documentation

KEXIMIGR_EXPORT int KexiMigration::versionMajor  ) 
 

Returns the major number of Kexi's version, e.g.

1 for Kexi 1.2.3.

Returns:
the major version number

Definition at line 31 of file kexi_global.cpp.

References KEXI_VERSION_MAJOR.

Referenced by KexiMigration::KexiMigrate::isValid(), KexiMigration::MigrateManagerInternal::lookupDrivers(), and KexiDB::Connection::useDatabase().

KEXIMIGR_EXPORT int KexiMigration::versionMinor  ) 
 

Returns the minor number of Kexi's version, e.g.

2 for Kexi 1.2.3.

Returns:
the minor version number

Definition at line 36 of file kexi_global.cpp.

References KEXI_VERSION_MINOR.

Referenced by KexiMigration::KexiMigrate::isValid(), KexiMigration::MigrateManagerInternal::lookupDrivers(), and KexiDB::Connection::useDatabase().

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