File indexing completed on 2024-05-12 04:39:42
0001 /* 0002 SPDX-FileCopyrightText: 2009 Aleix Pol <aleixpol@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef PROCESSSELECTION_H 0008 #define PROCESSSELECTION_H 0009 0010 #include <QDialog> 0011 0012 class KSysGuardProcessList; 0013 class QItemSelection; 0014 class QPushButton; 0015 0016 namespace KDevMI { 0017 0018 class ProcessSelectionDialog : public QDialog 0019 { 0020 Q_OBJECT 0021 public: 0022 explicit ProcessSelectionDialog( QWidget *parent=nullptr ); 0023 ~ProcessSelectionDialog() override; 0024 long int pidSelected(); 0025 QSize sizeHint() const override; 0026 0027 private Q_SLOTS: 0028 void selectionChanged( const QItemSelection& selected ); 0029 0030 private: 0031 KSysGuardProcessList* m_processList; 0032 QPushButton* m_attachButton; 0033 }; 0034 0035 } // end of namespace KDevMI 0036 0037 #endif