41 #include "YQPackageSelectorPluginImpl.h" 42 #include "YQPackageSelector.h" 43 #include "YQPatternSelector.h" 44 #include "YQSimplePatchSelector.h" 46 #define YUILogComponent "qt-pkg" 61 YPackageSelector * YQPackageSelectorPluginImpl::createPackageSelector( YWidget * parent,
73 catch (
const std::exception & e)
75 yuiError() <<
"Caught std::exception: " << e.what() << endl;
76 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
80 yuiError() <<
"Caught unspecified exception." << endl;
81 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
84 YUI_CHECK_NEW( packageSelector );
86 return packageSelector;
90 YWidget *YQPackageSelectorPluginImpl::createPatternSelector( YWidget * parent,
long modeFlags )
101 catch (
const std::exception & e)
103 yuiError() <<
"Caught std::exception: " << e.what() << endl;
104 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
108 yuiError() <<
"Caught unspecified exception." << endl;
109 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
112 YUI_CHECK_NEW( patternSelector );
114 return patternSelector;
118 YWidget *YQPackageSelectorPluginImpl::createSimplePatchSelector( YWidget * parent,
long modeFlags )
129 catch (
const std::exception & e)
131 yuiError() <<
"Caught std::exception: " << e.what() << endl;
132 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
136 yuiError() <<
"Caught unspecified exception." << endl;
137 yuiError() <<
"This is a libzypp problem. Do not file a bug against the UI!" << endl;
140 YUI_CHECK_NEW( simplePatchSelector );
142 return simplePatchSelector;