File indexing completed on 2023-10-03 04:16:10
0001 /* This file is part of the KDE project 0002 0003 Copyright (C) 2006 Dario Massarin <nekkar@libero.it> 0004 0005 This program is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU General Public 0007 License as published by the Free Software Foundation; either 0008 version 2 of the License, or (at your option) any later version. 0009 */ 0010 0011 #ifndef KGET_EXPORT_H 0012 #define KGET_EXPORT_H 0013 0014 #include <KPluginFactory> 0015 0016 /** 0017 * @short Declares a class as plugin. 0018 * 0019 * Exports a common symbol in a shared library used as an entry point for 0020 * the creation of an instance of the class. 0021 * 0022 * Usage example: 0023 * KGET_EXPORT_PLUGIN( CoolKgetPlugin ); 0024 * class CoolKgetPlugin : public KGetPlugin { 0025 * .... 0026 * }u 0027 */ 0028 #define KGET_EXPORT_PLUGIN(classname) K_PLUGIN_FACTORY(KGetFactory, registerPlugin<TransferKioFactory>();) 0029 0030 #define KGET_EXPORT_PLUGIN_CONFIG(classname) K_PLUGIN_FACTORY(KGetFactory, registerPlugin<classname>();) 0031 0032 #endif