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().

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

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

Constructor & Destructor Documentation

◆ KDbVersionInfo()

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

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

Member Function Documentation

◆ isNull()

bool KDbVersionInfo::isNull ( ) const
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
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


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


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


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 Fri Jul 19 2024 12:00:08 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.