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

KDECore

klibrary.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2007 Bernhard Loos <nhuh.put@web.de.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 #ifndef KLIBRARY_H
00019 #define KLIBRARY_H
00020 
00021 #include <kdecore_export.h>
00022 
00023 #include <kglobal.h>
00024 
00025 #include <QtCore/QLibrary>
00026 
00027 class KLibraryPrivate;
00028 
00029 class KPluginFactory;
00030 
00038 class KDECORE_EXPORT KLibrary : public QLibrary
00039 {
00040     Q_OBJECT
00041     Q_PROPERTY(QString fileName READ fileName WRITE setFileName)
00042 public:
00043     typedef void (*void_function_ptr) ();
00044 
00045     explicit KLibrary(QObject *parent = 0);
00046     explicit KLibrary(const QString &name, const KComponentData &cData = KGlobal::mainComponent(), QObject *parent = 0);
00047     KLibrary(const QString &name, int verNum, const KComponentData &cData = KGlobal::mainComponent(), QObject *parent = 0);
00048 
00049     virtual ~KLibrary();
00050 
00059     KDE_DEPRECATED KPluginFactory* factory( const char* factoryname = 0 );
00060 
00067     void *resolveSymbol(const char *name);
00068 
00075     void_function_ptr resolveFunction(const char *name);
00076 
00077     void setFileName(const QString &name, const KComponentData &data = KGlobal::mainComponent());
00078 
00079     bool unload() { return false; } //this is only temporary. i will remove it as soon as I have removed all dangerous users of it
00080 private:
00081     KLibraryPrivate *d_ptr;
00082 };
00083 
00084 #endif

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
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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