1 /* This file is part of the KDE project
3 Copyright (C) 2006 Dario Massarin <nekkar@libero.it>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; version 2
14 /* needed for KDE_EXPORT macros */
15 #include <kdemacros.h>
17 /* export statements for unix */
18 #define KGET_EXPORT KDE_EXPORT
22 * @short Declares a class as plugin.
24 * Exports a common symbol in a shared library used as an entry point for
25 * the creation of an istance of the class.
28 * KGET_EXPORT_PLUGIN( CoolKgetPlugin );
29 * class CoolKgetPlugin : public KGetPlugin {
33 #define KGET_EXPORT_PLUGIN( classname ) \
35 KDE_EXPORT KGetPlugin * create_plugin() { return new classname; } \