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

KDECore

KLibrary Class Reference

#include <KLibrary>

Inheritance diagram for KLibrary:

Inheritance graph
[legend]

List of all members.


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.


Public Types

typedef void(* void_function_ptr )()

Public Member Functions

KPluginFactory * factory (const char *factoryname=0)
 KLibrary (const QString &name, int verNum, const KComponentData &cData=KGlobal::mainComponent(), QObject *parent=0)
 KLibrary (const QString &name, const KComponentData &cData=KGlobal::mainComponent(), QObject *parent=0)
 KLibrary (QObject *parent=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 ()
virtual ~KLibrary ()

Properties

QString fileName

Member Typedef Documentation

typedef void(* KLibrary::void_function_ptr)()


Constructor & Destructor Documentation

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

Definition at line 69 of file klibrary.cpp.

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

Definition at line 74 of file klibrary.cpp.

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

Definition at line 79 of file klibrary.cpp.

KLibrary::~KLibrary (  )  [virtual]

Definition at line 84 of file klibrary.cpp.


Member Function Documentation

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

Returns the factory of the library.

Parameters:
factoryname The 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:
name the name of the symbol to look up
Returns:
the address of the symbol, or 0 if it does not exist

Definition at line 177 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:
name the name of the symbol to look up
Returns:
the address of the symbol, or 0 if it does not exist

Definition at line 172 of file klibrary.cpp.

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

Definition at line 191 of file klibrary.cpp.

bool KLibrary::unload (  )  [inline]

Reimplemented from QLibrary.

Definition at line 79 of file klibrary.h.


Property Documentation

QString KLibrary::fileName [read, write]

Definition at line 41 of file klibrary.h.


The documentation for this class was generated from the following files:
  • klibrary.h
  • klibrary.cpp

KDECore

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal