• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

Public Types | Public Member Functions | Properties | List of all members
KLibrary Class Reference

#include <KLibrary>

Inheritance diagram for KLibrary:
Inheritance graph
[legend]

Public Types

typedef void(* void_function_ptr )()
 

Public Member Functions

 KLibrary (QObject *parent=0)
 
 KLibrary (const QString &name, const KComponentData &cData=KGlobal::mainComponent(), QObject *parent=0)
 
 KLibrary (const QString &name, int verNum, const KComponentData &cData=KGlobal::mainComponent(), QObject *parent=0)
 
virtual ~KLibrary ()
 
KPluginFactory * factory (const char *factoryname=0)
 
void_function_ptr resolveFunction (const char *name)
 
void * resolveSymbol (const char *name)
 
void setFileName (const QString &name, const KComponentData &data=KGlobal::mainComponent())
 
bool unload ()
 

Properties

QString fileName
 

Detailed Description

Thin wrapper around QLibrary; you should rarely use this directly, see KPluginLoader for higher-level loading of plugins.

KLibrary adds kde3-factory and kde4-factory support to QLibrary (for the deprecated KLibLoader) KLibrary also searches libs in the kde search paths.

Definition at line 38 of file klibrary.h.

Member Typedef Documentation

typedef void(* KLibrary::void_function_ptr)()

Definition at line 43 of file klibrary.h.

Constructor & Destructor Documentation

KLibrary::KLibrary ( QObject *  parent = 0)
explicit

Definition at line 73 of file klibrary.cpp.

KLibrary::KLibrary ( const QString &  name,
const KComponentData &  cData = KGlobal::mainComponent(),
QObject *  parent = 0 
)
explicit

Definition at line 78 of file klibrary.cpp.

KLibrary::KLibrary ( const QString &  name,
int  verNum,
const KComponentData &  cData = KGlobal::mainComponent(),
QObject *  parent = 0 
)

Definition at line 83 of file klibrary.cpp.

KLibrary::~KLibrary ( )
virtual

Definition at line 88 of file klibrary.cpp.

Member Function Documentation

KPluginFactory * KLibrary::factory ( const char *  factoryname = 0)

Returns the factory of the library.

Parameters
factorynameThe postfix to the init_ symbol used to create the factory object. It corresponds to the first parameter to K_EXPORT_COMPONENT_FACTORY.
Returns
The factory of the library if there is any, otherwise 0
Deprecated:
use KPluginLoader::factory

Definition at line 163 of file klibrary.cpp.

KLibrary::void_function_ptr KLibrary::resolveFunction ( const char *  name)

Looks up a symbol from the library.

This is a very low level function that you usually don't want to use.

Parameters
namethe name of the symbol to look up
Returns
the address of the symbol, or 0 if it does not exist

Definition at line 181 of file klibrary.cpp.

void * KLibrary::resolveSymbol ( const char *  name)

Looks up a symbol from the library.

This is a very low level function that you usually don't want to use.

Parameters
namethe name of the symbol to look up
Returns
the address of the symbol, or 0 if it does not exist

Definition at line 176 of file klibrary.cpp.

void KLibrary::setFileName ( const QString &  name,
const KComponentData &  data = KGlobal::mainComponent() 
)

Definition at line 195 of file klibrary.cpp.

bool KLibrary::unload ( )
inline

Definition at line 79 of file klibrary.h.

Property Documentation

QString KLibrary::fileName
readwrite

Definition at line 41 of file klibrary.h.


The documentation for this class was generated from the following files:
  • klibrary.h
  • klibrary.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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