libyui-qt
2.43.5
|
00001 /* 00002 Copyright (C) 2000-2012 Novell, Inc 00003 This library is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU Lesser General Public License as 00005 published by the Free Software Foundation; either version 2.1 of the 00006 License, or (at your option) version 3.0 of the License. This library 00007 is distributed in the hope that it will be useful, but WITHOUT ANY 00008 WARRANTY; without even the implied warranty of MERCHANTABILITY or 00009 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 00010 License for more details. You should have received a copy of the GNU 00011 Lesser General Public License along with this library; if not, write 00012 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth 00013 Floor, Boston, MA 02110-1301 USA 00014 */ 00015 00016 00017 /*-/ 00018 00019 File: YQPackageSelectorPluginStub.h 00020 00021 Authors: Katharina Machalkova <kmachalkova@suse.cz> 00022 Stephan Kulow <coolo@suse.de> 00023 00024 /-*/ 00025 00026 00027 #ifndef YQPackageSelectorPluginStub_h 00028 #define YQPackageSelectorPluginStub_h 00029 00030 #include <yui/YPackageSelectorPlugin.h> 00031 #include <yui/YDialog.h> 00032 #include <yui/YEvent.h> 00033 00034 #include "YQPackageSelectorPluginIf.h" 00035 00036 00037 /** 00038 * Simplified access to the package selector plugin. 00039 **/ 00040 class YQPackageSelectorPluginIf; 00041 00042 00043 class YQPackageSelectorPluginStub: public YPackageSelectorPlugin 00044 { 00045 public: 00046 /** 00047 * Constructor: Load the plugin library for the package selector. 00048 **/ 00049 YQPackageSelectorPluginStub(); 00050 00051 /** 00052 * Destructor. 00053 **/ 00054 virtual ~YQPackageSelectorPluginStub(); 00055 00056 /** 00057 * Create a package selector. 00058 * Implemented from YPackageSelectorPlugin. 00059 * 00060 * This might return 0 if the plugin lib could not be loaded or if the 00061 * appropriate symbol could not be located in the plugin lib. 00062 **/ 00063 virtual YPackageSelector * createPackageSelector( YWidget * parent, 00064 long modeFlags ); 00065 00066 /** 00067 * Create a pattern selector (optional widget). 00068 **/ 00069 virtual YWidget * createPatternSelector( YWidget * parent, 00070 long modeFlags ); 00071 00072 /** 00073 * Create a simple patch selector (optional widget). 00074 **/ 00075 virtual YWidget * createSimplePatchSelector( YWidget * parent, 00076 long modeFlags ); 00077 00078 00079 YQPackageSelectorPluginIf * impl; 00080 }; 00081 00082 00083 #endif // YQPackageSelectorPluginStub_h