2025-08-26 17:26:05 -05:00
|
|
|
// SPDX-FileCopyrightText: 2021 Ernie Pasveer <epasveer@att.net>
|
|
|
|
|
//
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
2021-10-16 18:37:11 -05:00
|
|
|
#include "SeerSlashProcDialog.h"
|
|
|
|
|
|
|
|
|
|
SeerSlashProcDialog::SeerSlashProcDialog (QWidget* parent) : QDialog(parent) {
|
|
|
|
|
|
|
|
|
|
// Set up the UI.
|
|
|
|
|
setupUi(this);
|
|
|
|
|
|
|
|
|
|
// Setup the widgets
|
|
|
|
|
|
|
|
|
|
// Connect things.
|
2022-02-06 10:32:31 -06:00
|
|
|
QObject::connect(processInfoWidget, &QProcessInfoWidget::pidSelected, this, &SeerSlashProcDialog::handlePidSelected);
|
2021-10-16 18:37:11 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SeerSlashProcDialog::~SeerSlashProcDialog () {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int SeerSlashProcDialog::selectedPid () const {
|
|
|
|
|
|
2022-02-06 10:32:31 -06:00
|
|
|
return processInfoWidget->selectedPid();
|
2021-10-16 18:37:11 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString SeerSlashProcDialog::selectedName () const {
|
|
|
|
|
|
2022-02-06 10:32:31 -06:00
|
|
|
return processInfoWidget->selectedName();
|
2021-10-16 18:37:11 -05:00
|
|
|
}
|
|
|
|
|
|
2023-07-31 11:42:45 -05:00
|
|
|
QString SeerSlashProcDialog::selectedFullname () const {
|
|
|
|
|
|
|
|
|
|
return processInfoWidget->selectedFullname();
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-16 18:37:11 -05:00
|
|
|
QString SeerSlashProcDialog::selectedCommandLine () const {
|
|
|
|
|
|
2022-02-06 10:32:31 -06:00
|
|
|
return processInfoWidget->selectedCommandLine();
|
2021-10-16 18:37:11 -05:00
|
|
|
}
|
|
|
|
|
|
2021-11-28 07:28:07 -06:00
|
|
|
void SeerSlashProcDialog::handlePidSelected() {
|
|
|
|
|
|
|
|
|
|
done(QDialog::Accepted);
|
|
|
|
|
}
|
|
|
|
|
|