Update capabilities
[kdenetwork.git] / kget / kget_export.h
blobb7ea5bdb73bad8f7340984233849150eee647ea4
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
8 of the License.
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