KDbVersionInfo

Search for usage in LXR

#include <KDbVersionInfo.shared.h>

Public Member Functions

 KDbVersionInfo (int majorVersion, int minorVersion, int releaseVersion)
 
bool isNull () const
 
bool matches (int major, int minor) const
 

Public Attributes

int major
 
int minor
 
int release
 

Detailed Description

Provides version information.

KDb::version() provides library version that can be compared to driver's plugin version KDbDriverMetaData::version().

Note
There is also KDbConnection::databaseVersion() that is retrieved from database/connection properties.
See also
KDbConnection::serverVersion()

Definition at line 43 of file KDbVersionInfo.shared.h.

Constructor & Destructor Documentation

◆ KDbVersionInfo()

KDbVersionInfo::KDbVersionInfo ( int majorVersion,
int minorVersion,
int releaseVersion )
inline

Definition at line 70 of file KDbVersionInfo.shared.h.

Member Function Documentation

◆ isNull()

bool KDbVersionInfo::isNull ( ) const
Returns
true if this version info is null, i.e. all the version numbers are zero.

Definition at line 47 of file KDbVersionInfo.cpp.

◆ matches()

bool KDbVersionInfo::matches ( int major,
int minor ) const
inline
Returns
true if major and minor exatcly matches major and minor version of this info, respectively.

Definition at line 79 of file KDbVersionInfo.shared.h.

Member Data Documentation

◆ major

int KDbVersionInfo::major

@getter

Returns
major version number, e.g. 1 for 1.8.9 @setter Sets the major version number.

Definition at line 52 of file KDbVersionInfo.shared.h.

◆ minor

int KDbVersionInfo::minor

@getter

Returns
minor version number, e.g. 8 for 1.8.9 @setter Sets the minor version number.

Definition at line 60 of file KDbVersionInfo.shared.h.

◆ release

int KDbVersionInfo::release

@getter

Returns
release version number, e.g. 9 for 1.8.9 @setter Sets the release version number.

Definition at line 68 of file KDbVersionInfo.shared.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.