Do not link to KAuth. But there is still a build time dependency on kauth-policy-gen.
This commit is contained in:
parent
6cff70567b
commit
e085ba9ed9
|
@ -37,7 +37,6 @@ target_link_libraries( kpmcore PUBLIC
|
||||||
KF5::I18n
|
KF5::I18n
|
||||||
KF5::CoreAddons
|
KF5::CoreAddons
|
||||||
KF5::WidgetsAddons
|
KF5::WidgetsAddons
|
||||||
KF5::AuthCore
|
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS kpmcore EXPORT KPMcoreTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
install(TARGETS kpmcore EXPORT KPMcoreTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
||||||
|
|
|
@ -37,8 +37,6 @@
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
|
|
||||||
#include <KAuth>
|
|
||||||
#include <KJob>
|
#include <KJob>
|
||||||
#include <KLocalizedString>
|
#include <KLocalizedString>
|
||||||
|
|
||||||
|
@ -53,10 +51,6 @@ struct ExternalCommandPrivate
|
||||||
QProcess::ProcessChannelMode processChannelMode;
|
QProcess::ProcessChannelMode processChannelMode;
|
||||||
};
|
};
|
||||||
|
|
||||||
KAuth::ExecuteJob* ExternalCommand::m_job;
|
|
||||||
QWidget* ExternalCommand::parent;
|
|
||||||
|
|
||||||
|
|
||||||
/** Creates a new ExternalCommand instance without Report.
|
/** Creates a new ExternalCommand instance without Report.
|
||||||
@param cmd the command to run
|
@param cmd the command to run
|
||||||
@param args the arguments to pass to the command
|
@param args the arguments to pass to the command
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace KAuth { class ExecuteJob; }
|
|
||||||
|
|
||||||
class KJob;
|
class KJob;
|
||||||
class Report;
|
class Report;
|
||||||
class CopySource;
|
class CopySource;
|
||||||
|
@ -89,13 +87,6 @@ public:
|
||||||
/**< @return pointer to the Report or nullptr */
|
/**< @return pointer to the Report or nullptr */
|
||||||
Report* report();
|
Report* report();
|
||||||
|
|
||||||
/**< Sets a parent widget for the authentication dialog.
|
|
||||||
* @param p parent widget
|
|
||||||
*/
|
|
||||||
static void setParentWidget(QWidget *p) {
|
|
||||||
parent = p;
|
|
||||||
}
|
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void progress(int);
|
void progress(int);
|
||||||
void reportSignal(const QString&);
|
void reportSignal(const QString&);
|
||||||
|
@ -109,9 +100,6 @@ private:
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<ExternalCommandPrivate> d;
|
std::unique_ptr<ExternalCommandPrivate> d;
|
||||||
|
|
||||||
// KAuth
|
|
||||||
static KAuth::ExecuteJob *m_job;
|
|
||||||
static QWidget *parent;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue