42 #include "YQPackageSelectorPlugin.h" 43 #define YUILogComponent "qt-ui" 45 #include "pkg/YQPackageSelector.h" 46 #include "pkg/YQPatternSelector.h" 47 #include "pkg/YQSimplePatchSelector.h" 48 #include "YUIException.h" 50 #define PLUGIN_BASE_NAME "qt-pkg" 54 : YPackageSelectorPlugin( PLUGIN_BASE_NAME )
58 yuiMilestone() <<
"Loaded " << PLUGIN_BASE_NAME
59 <<
" plugin successfully from " << pluginLibFullPath()
63 YUI_THROW( YUIPluginException( PLUGIN_BASE_NAME ) );
85 catch (
const std::exception & e)
87 yuiError() <<
"Caught std::exception: " << e.what() << endl;
88 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
92 yuiError() <<
"Caught unspecified exception." << endl;
93 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
96 YUI_CHECK_NEW( packageSelector );
98 return packageSelector;
114 catch (
const std::exception & e)
116 yuiError() <<
"Caught std::exception: " << e.what() << endl;
117 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
121 yuiError() <<
"Caught unspecified exception." << endl;
122 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
125 YUI_CHECK_NEW( patternSelector );
127 return patternSelector;
143 catch (
const std::exception & e)
145 yuiError() <<
"Caught std::exception: " << e.what() << endl;
146 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
150 yuiError() <<
"Caught unspecified exception." << endl;
151 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
154 YUI_CHECK_NEW( simplePatchSelector );
156 return simplePatchSelector;
virtual YQPackageSelector * createPackageSelector(YWidget *parent, long modeFlags=0)
Create a package selector.
virtual YQSimplePatchSelector * createSimplePatchSelector(YWidget *parent, long modeFlags=0)
Create a simple patch selector.
YQPackageSelectorPlugin()
Constructor: Load the plugin library for the Qt package selector.
virtual ~YQPackageSelectorPlugin()
Destructor.
virtual YQPatternSelector * createPatternSelector(YWidget *parent, long modeFlags=0)
Create a pattern selector.