1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YQPackageSelectorPlugin.h
15 Author: Stefan Hundhammer <sh@suse.de>
20 #ifndef YQPackageSelectorPlugin_h
21 #define YQPackageSelectorPlugin_h
23 #include <YPackageSelectorPlugin.h>
24 #include "pkg/YQPackageSelector.h"
25 #include "pkg/YQPatternSelector.h"
26 #include "pkg/YQSimplePatchSelector.h"
30 * Simplified access to the Qt UI's package selector plugin.
32 class YQPackageSelectorPlugin: public YPackageSelectorPlugin
37 * Constructor: Load the plugin library for the Qt package selector.
39 YQPackageSelectorPlugin();
42 * Destructor. Calls dlclose() which will unload the plugin library if it
43 * is no longer used, i.e. if the reference count dlopen() uses reaches 0.
45 virtual ~YQPackageSelectorPlugin();
48 * Create a package selector.
49 * Implemented from YPackageSelectorPlugin.
51 * This might return 0 if the plugin lib could not be loaded or if the
52 * appropriate symbol could not be located in the plugin lib.
54 virtual YQPackageSelector * createPackageSelector ( YWidget * parent,
58 * Create a pattern selector.
60 * This might return 0 if the plugin lib could not be loaded or if the
61 * appropriate symbol could not be located in the plugin lib.
63 virtual YQPatternSelector * createPatternSelector ( YWidget * parent,
66 * Create a simple patch selector.
68 * This might return 0 if the plugin lib could not be loaded or if the
69 * appropriate symbol could not be located in the plugin lib.
71 virtual YQSimplePatchSelector * createSimplePatchSelector( YWidget * parent,
77 #endif // YQPackageSelectorPlugin_h