1 | /* |
2 | SPDX-FileCopyrightText: 2016-2021 Harald Sitter <sitter@kde.org> |
3 | |
4 | SPDX-License-Identifier: LGPL-2.0-or-later |
5 | */ |
6 | |
7 | #ifndef KCRASH_CORECONFIG_H |
8 | #define KCRASH_CORECONFIG_H |
9 | |
10 | #include <QString> |
11 | |
12 | namespace KCrash |
13 | { |
14 | class CoreConfig |
15 | { |
16 | public: |
17 | CoreConfig(const QString &path = QStringLiteral("/proc/sys/kernel/core_pattern" )); |
18 | |
19 | bool isProcess() const; |
20 | // should this need expansion please refactor to enum. could also store cmdline and compare in kcrash.cpp |
21 | bool isCoredumpd() const; |
22 | |
23 | private: |
24 | bool m_supported = false; |
25 | bool m_process = false; |
26 | bool m_coredumpd = false; |
27 | }; |
28 | |
29 | } // namespace KCrash |
30 | |
31 | #endif // KCRASH_CORECONFIG_H |
32 | |