Relicense all GPLv2 only code to GPLv2+.
[kdenetwork.git] / kget / kget_export.h
blob3ddcf72b2fd35363e96b0ff4b4970b02434d6c8e
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; either
8 version 2 of the License, or (at your option) any later version.
9 */
11 #ifndef KGET_EXPORT_H
12 #define KGET_EXPORT_H
14 /* needed for KDE_EXPORT macros */
15 #include <kdemacros.h>
17 /* export statements for unix */
18 #define KGET_EXPORT KDE_EXPORT
21 /**
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.
27 * Usage example:
28 * KGET_EXPORT_PLUGIN( CoolKgetPlugin );
29 * class CoolKgetPlugin : public KGetPlugin {
30 * ....
31 * }
33 #define KGET_EXPORT_PLUGIN( classname ) \
34 extern "C" { \
35 KDE_EXPORT KGetPlugin * create_plugin() { return new classname; } \
39 #endif