Disable clipboardsharing in view only mode.
[kdenetwork.git] / kget / kget_export.h
blob551e7a08c62e48cc17536db566675a4725649eb7
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 #include <KPluginFactory>
15 #include <KPluginLoader>
17 /* needed for KDE_EXPORT macros */
18 #include <kdemacros.h>
20 /* export statements for unix */
21 #ifdef MAKE_KGETCORE_LIB
22 # define KGET_EXPORT KDE_EXPORT
23 #else
24 # define KGET_EXPORT KDE_IMPORT
25 #endif
28 /**
29 * @short Declares a class as plugin.
31 * Exports a common symbol in a shared library used as an entry point for
32 * the creation of an istance of the class.
34 * Usage example:
35 * KGET_EXPORT_PLUGIN( CoolKgetPlugin );
36 * class CoolKgetPlugin : public KGetPlugin {
37 * ....
38 * }
40 #define KGET_EXPORT_PLUGIN( classname ) \
41 K_PLUGIN_FACTORY( KGetFactory, registerPlugin< classname >(); ) \
42 K_EXPORT_PLUGIN( KGetFactory("classname") )
44 #define KGET_EXPORT_PLUGIN_CONFIG( classname ) \
45 K_PLUGIN_FACTORY( KGetFactory, registerPlugin< classname >(); ) \
46 K_EXPORT_PLUGIN( KGetFactory( "classname" ) )
48 #endif