KDbDriverMetaData
#include <KDbDriverMetaData.h>
Public Member Functions | |
QString | id () const |
bool | isFileBased () const |
bool | isImportingEnabled () const |
Public Member Functions inherited from KPluginMetaData | |
KPluginMetaData (const KPluginMetaData &) | |
KPluginMetaData (const QJsonObject &metaData, const QString &fileName) | |
KPluginMetaData (const QPluginLoader &loader, KPluginMetaDataOptions options={}) | |
KPluginMetaData (const QString &pluginFile, KPluginMetaDataOptions options={}) | |
QList< KAboutPerson > | authors () const |
QString | bugReportUrl () const |
QString | category () const |
QString | copyrightText () const |
QString | description () const |
QString | fileName () const |
QStringList | formFactors () const |
QString | iconName () const |
bool | isEnabled (const T &config) const |
bool | isEnabledByDefault () const |
bool | isHidden () const |
bool | isStaticPlugin () const |
bool | isValid () const |
QString | license () const |
QString | licenseText () const |
QStringList | mimeTypes () const |
QString | name () const |
bool | operator!= (const KPluginMetaData &other) const |
KPluginMetaData & | operator= (const KPluginMetaData &) |
bool | operator== (const KPluginMetaData &other) const |
QList< KAboutPerson > | otherContributors () const |
QString | pluginId () const |
QJsonObject | rawData () const |
bool | supportsMimeType (const QString &mimeType) const |
QList< KAboutPerson > | translators () const |
bool | value (QStringView key, bool defaultValue) const |
QString | value (QStringView key, const QString &defaultValue=QString()) const |
QStringList | value (QStringView key, const QStringList &defaultValue) const |
int | value (QStringView key, int defaultValue) const |
QString | version () const |
QString | website () const |
Protected Member Functions | |
KDbDriverMetaData (const QPluginLoader &loader) | |
Additional Inherited Members | |
Public Types inherited from KPluginMetaData | |
enum | KPluginMetaDataOption |
Static Public Member Functions inherited from KPluginMetaData | |
static KPluginMetaData | findPluginById (const QString &directory, const QString &pluginId, KPluginMetaDataOptions options={}) |
static QList< KPluginMetaData > | findPlugins (const QString &directory, std::function< bool(const KPluginMetaData &)> filter={}, KPluginMetaDataOptions options={}) |
static KPluginMetaData | fromJsonFile (const QString &jsonFile) |
Public Attributes inherited from KPluginMetaData | |
AllowEmptyMetaData | |
CacheMetaData | |
Detailed Description
Provides information about a single driver plugin.
Definition at line 28 of file KDbDriverMetaData.h.
Constructor & Destructor Documentation
◆ ~KDbDriverMetaData()
KDbDriverMetaData::~KDbDriverMetaData | ( | ) |
Definition at line 53 of file KDbDriverMetaData.cpp.
◆ KDbDriverMetaData()
|
explicitprotected |
Definition at line 48 of file KDbDriverMetaData.cpp.
Member Function Documentation
◆ id()
QString KDbDriverMetaData::id | ( | ) | const |
- Returns
- internal name of the plugin, a shortcut of pluginId()
Definition at line 58 of file KDbDriverMetaData.cpp.
◆ isFileBased()
bool KDbDriverMetaData::isFileBased | ( | ) | const |
- Returns
- true if the driver is for file-based databases like SQLite.
Defined by a "X-KDb-FileBased" field in .json information files.
Definition at line 63 of file KDbDriverMetaData.cpp.
◆ isImportingEnabled()
bool KDbDriverMetaData::isImportingEnabled | ( | ) | const |
- Returns
- true if the driver is for a backend that allows importing.
Defined by a "X-KDb-ImportingEnabled" field in .json information files. Used for database migration.
Definition at line 68 of file KDbDriverMetaData.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.