File indexing completed on 2024-04-28 05:26:51
0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0002 // SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org> 0003 0004 #include "doctore.h" 0005 0006 #include <QClipboard> 0007 #include <QGuiApplication> 0008 #include <QUrl> 0009 0010 #include "crashedapplication.h" 0011 #include "drkonqi.h" 0012 0013 void Doctore::saveReport(const QString &text) 0014 { 0015 DrKonqi::saveReport(text, nullptr); 0016 } 0017 0018 void Doctore::copyToClipboard(const QString &text) 0019 { 0020 QGuiApplication::clipboard()->setText(text.trimmed()); 0021 } 0022 0023 QString Doctore::appName() 0024 { 0025 return DrKonqi::crashedApplication()->name(); 0026 } 0027 0028 QString Doctore::kdeBugzillaURL() 0029 { 0030 return DrKonqi::kdeBugzillaURL(); 0031 } 0032 0033 QString Doctore::kdeBugzillaDomain() 0034 { 0035 QUrl bugzillaUrl(DrKonqi::kdeBugzillaURL()); 0036 return bugzillaUrl.host(); 0037 } 0038 0039 bool Doctore::isSafer() 0040 { 0041 return DrKonqi::isSafer(); 0042 } 0043 0044 SystemInformation *Doctore::systemInformation() 0045 { 0046 return DrKonqi::systemInformation(); 0047 } 0048 0049 Q_INVOKABLE bool Doctore::ignoreQuality() 0050 { 0051 return DrKonqi::ignoreQuality(); 0052 } 0053 0054 #include "moc_doctore.cpp"