Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
kdebase4-runtime
ksuseinstall.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ksuseinstall.diff of Package kdebase4-runtime
--- drkonqi/susedebugpackageinstaller.cpp.sav 2010-03-22 23:26:01.351710150 +0100 +++ drkonqi/susedebugpackageinstaller.cpp 2010-03-22 23:26:01.352604393 +0100 @@ -0,0 +1,51 @@ +/******************************************************************* +* debugpackageinstaller.cpp +* Copyright 2009 Dario Andres Rodriguez <andresbajotierra@gmail.com> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +* +******************************************************************/ + +#include "susedebugpackageinstaller.h" + +#include <klocale.h> +#include <qdebug.h> +#include <qwidget.h> + +#include "ksuseinstall.h" + +SUSEDebugPackageInstaller::SUSEDebugPackageInstaller(QWidget *parent) + : QObject(parent) +{ +} + +bool SUSEDebugPackageInstaller::canInstallDebugPackages() const +{ + return KSUSEInstall::canInstallDebuginfo(); +} + +void SUSEDebugPackageInstaller::setMissingLibraries(const QStringList & libraries) +{ + m_missingLibraries = libraries; +} + +void SUSEDebugPackageInstaller::installDebugPackages() +{ + Q_ASSERT(canInstallDebugPackages()); + qDebug() << "MISSING:" << m_missingLibraries; + if( KSUSEInstall::installDebuginfo( m_missingLibraries, static_cast< QWidget* >( parent()))) + emit packagesInstalled(); + else + emit error(i18nc("@info", "Could not find debug symbol packages for this application.")); +} --- drkonqi/susedebugpackageinstaller.h.sav 2010-03-22 23:26:01.352604393 +0100 +++ drkonqi/susedebugpackageinstaller.h 2010-03-22 23:26:01.352604393 +0100 @@ -0,0 +1,46 @@ +/******************************************************************* +* debugpackageinstaller.h +* Copyright 2009 Dario Andres Rodriguez <andresbajotierra@gmail.com> +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +* +******************************************************************/ +#ifndef SUSEDEBUGPACKAGEINSTALLER__H +#define SUSEDEBUGPACKAGEINSTALLER__H + +#include "debugpackageinstaller.h" + +class SUSEDebugPackageInstaller: public QObject +{ + Q_OBJECT + + enum Results { ResultInstalled = 0, ResultError = 1, + ResultSymbolsNotFound = 2, ResultCanceled = 3 }; + + public: + explicit SUSEDebugPackageInstaller(QWidget *parent = 0); + bool canInstallDebugPackages() const; + void setMissingLibraries(const QStringList &); + void installDebugPackages(); + + Q_SIGNALS: + void packagesInstalled(); + void error(const QString &); + void canceled(); + + private: + QStringList m_missingLibraries; +}; + +#endif --- drkonqi/backtracewidget.cpp 2010-04-07 13:23:32.000000000 +0200 +++ drkonqi/backtracewidget.cpp 2010-04-14 16:23:49.772202327 +0200 @@ -39,6 +39,10 @@ #include <KToolInvocation> #include <KGlobalSettings> +#if 1 +#include "susedebugpackageinstaller.h" +#endif + const char *extraDetailsLabelMargin = " margin: 5px; "; BacktraceWidget::BacktraceWidget(BacktraceGenerator *generator, QWidget *parent, @@ -49,7 +53,11 @@ ui.setupUi(this); //Debug package installer +#if 1 + m_debugPackageInstaller = new SUSEDebugPackageInstaller(this); +#else m_debugPackageInstaller = new DebugPackageInstaller(this); +#endif connect(m_debugPackageInstaller, SIGNAL(error(QString)), this, SLOT(debugPackageError(QString))); connect(m_debugPackageInstaller, SIGNAL(packagesInstalled()), this, SLOT(regenerateBacktrace())); connect(m_debugPackageInstaller, SIGNAL(canceled()), this, SLOT(debugPackageCanceled())); --- drkonqi/backtracewidget.h 2010-02-20 12:31:40.000000000 +0100 +++ drkonqi/backtracewidget.h 2010-04-14 16:25:37.228953082 +0200 @@ -29,6 +29,10 @@ class BacktraceRatingWidget; class BacktraceGenerator; +#if 1 +class SUSEDebugPackageInstaller; +#endif + class BacktraceWidget: public QWidget { Q_OBJECT @@ -55,7 +59,11 @@ Ui::Form ui; BacktraceRatingWidget * m_backtraceRatingWidget; QSyntaxHighlighter *m_highlighter; +#if 1 + SUSEDebugPackageInstaller * m_debugPackageInstaller; +#else DebugPackageInstaller * m_debugPackageInstaller; +#endif private Q_SLOTS: void loadData(); --- drkonqi/CMakeLists.txt 2010-03-03 19:24:58.000000000 +0100 +++ drkonqi/CMakeLists.txt 2010-04-14 16:22:10.185946487 +0200 @@ -40,6 +40,7 @@ debugpackageinstaller.cpp systeminformation.cpp crashedapplication.cpp + susedebugpackageinstaller.cpp debugger.cpp debuggerlaunchers.cpp debuggermanager.cpp @@ -64,6 +65,6 @@ kde4_add_executable(drkonqi ${drkonqi_SRCS}) -target_link_libraries(drkonqi ${KDE4_KIO_LIBS} drkonqi_backtrace_parser) +target_link_libraries(drkonqi ${KDE4_KIO_LIBS} ksuseinstall drkonqi_backtrace_parser) install(TARGETS drkonqi DESTINATION ${LIBEXEC_INSTALL_DIR})
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor