# class KLibrary

###

Module | kdecore
Namespace |
Class | KLibrary
Inherits | QLibrary

\class KLibrary klibrary.h <KLibrary>

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.

### methods

- KLibrary (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QObject | 0

- KLibrary (name, cData, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  cData | KComponentData | KGlobal.mainComponent()
  parent | QObject | 0

- KLibrary (name, verNum, cData, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  verNum | int |
  cData | KComponentData | KGlobal.mainComponent()
  parent | QObject | 0

- KLibrary (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject | 0

- KLibrary (a0, a1, a2)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | KComponentData | KGlobal.mainComponent()
  a2 | QObject | 0

- factory (factoryname)

  returns KPluginFactory

  Argument | Type | Default
  --- | --- | ---
  factoryname | char | 0

  Returns the factory of the library.

  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

- resolveFunction (name)

  returns KLibrary.void_function_ptr
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  name | char |

  Looks up a symbol from the library. This is a very low level function that you usually don't want to use.

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

- resolveSymbol (name)

  returns void
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  name | char |

  Looks up a symbol from the library. This is a very low level function that you usually don't want to use.

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

- setFileName (name, data)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  data | KComponentData | KGlobal.mainComponent()

- unload ( )

  returns bool