File indexing completed on 2024-04-28 05:31:40

0001 /*
0002     SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 #include <QRunnable>
0011 
0012 namespace KSysGuard
0013 {
0014 class ReadProcSmapsRunnable : public QObject, public QRunnable
0015 {
0016     Q_OBJECT
0017 public:
0018     ReadProcSmapsRunnable(const QString &dir);
0019 
0020     void run() override;
0021 
0022     Q_SIGNAL void finished(qulonglong pss);
0023 
0024 private:
0025     QString m_dir;
0026 };
0027 
0028 } // namespace KSysGuard