• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. The KDE Frameworks
  3. KCoreAddons
  • KDE Home
  • Contact Us

Quick Links

Skip menu "KCoreAddons"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Dependencies
  • Related Pages

Class Picker

About

Addons to QtCore

Maintainer
Michael Pyne
Supported platforms
Android, FreeBSD, Linux, MacOSX, Windows
Community
IRC: #kde-devel on Freenode
Mailing list: kde-frameworks-devel
Use with CMake
find_package(KF5CoreAddons)
target_link_libraries(yourapp KF5::CoreAddons)
Use with QMake
QT += KCoreAddons 
Clone
git clone git://anongit.kde.org/kcoreaddons.git
Browse source
KCoreAddons on cgit.kde.org

KCoreAddons

  • View on LXR
Public Member Functions | Static Public Member Functions | List of all members
KPluginName Class Reference

#include <kpluginloader.h>

Public Member Functions

 KPluginName (const QString &name)
 
QString errorString () const
 
bool isValid () const
 
QString name () const
 

Static Public Member Functions

static KPluginName fromErrorString (const QString &errorString)
 

Detailed Description

Represents the name of a plugin intended for KPluginLoader.

This exists only so that classes such as KService can provide a cast operator to allow them to be used as arguments to KPluginLoader. Unless you are implementing such a cast operator, you should never need to use this class directly.

Definition at line 394 of file kpluginloader.h.

Constructor & Destructor Documentation

KPluginName::KPluginName ( const QString &  name)
inlineexplicit

Construct a (valid) plugin name from a string.

If there was an error and the name could not be determined, fromErrorString() should be used instead to construct an appropriate error message.

Parameters
nameThe name of the plugin; this should not be empty.

Definition at line 452 of file kpluginloader.h.

Member Function Documentation

QString KPluginName::errorString ( ) const
inline

The error string if no name could be determined.

Returns
The string passed to fromErrorString() if isValid() is false, QString() otherwise.

Definition at line 466 of file kpluginloader.h.

KPluginName KPluginName::fromErrorString ( const QString &  errorString)
inlinestatic

Construct an invalid plugin name with an error message.

When this object is passed to KPluginLoader, errorString will be used for KPluginLoader::errorString().

Parameters
errorStringThe (translated) error string.

Definition at line 470 of file kpluginloader.h.

bool KPluginName::isValid ( ) const
inline

Whether the name is valid.

Note that this only determines how the KPluginName was constructed, not anything about the value of the string.

Returns
true if the KPluginName(const QString&) constructor was used, false if fromErrorString() was used.

Definition at line 462 of file kpluginloader.h.

QString KPluginName::name ( ) const
inline

The name of the plugin.

Returns
The string passed to the constructor if isValid() is true, QString() otherwise.

Definition at line 458 of file kpluginloader.h.


The documentation for this class was generated from the following file:
  • kpluginloader.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Wed Dec 11 2019 06:44:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal