Changeset View
Changeset View
Standalone View
Standalone View
analyzers/heaptrack/plugin.h
- This file was added.
1 | /* This file is part of KDevelop | ||||
---|---|---|---|---|---|
2 | Copyright 2017 Anton Anikin <anton.anikin@htower.ru> | ||||
3 | | ||||
4 | This program is free software; you can redistribute it and/or | ||||
5 | modify it under the terms of the GNU General Public | ||||
6 | License as published by the Free Software Foundation; either | ||||
7 | version 2 of the License, or (at your option) any later version. | ||||
8 | | ||||
9 | This program is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
12 | General Public License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU General Public License | ||||
15 | along with this program; see the file COPYING. If not, write to | ||||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||||
17 | Boston, MA 02110-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
20 | #pragma once | ||||
21 | | ||||
22 | #include <interfaces/iplugin.h> | ||||
23 | | ||||
24 | class KJob; | ||||
25 | | ||||
26 | namespace Heaptrack | ||||
27 | { | ||||
28 | | ||||
29 | class Plugin : public KDevelop::IPlugin | ||||
30 | { | ||||
31 | Q_OBJECT | ||||
32 | | ||||
33 | public: | ||||
34 | Plugin(QObject* parent, const QVariantList& = QVariantList()); | ||||
35 | ~Plugin() override; | ||||
36 | | ||||
37 | int configPages() const override; | ||||
38 | KDevelop::ConfigPage* configPage(int number, QWidget* parent) override; | ||||
39 | | ||||
40 | private: | ||||
41 | void launchHeaptrack(); | ||||
42 | void attachHeaptrack(); | ||||
43 | | ||||
44 | void jobFinished(KJob* job); | ||||
45 | | ||||
46 | QAction* m_launchAction; | ||||
47 | QAction* m_attachAction; | ||||
48 | }; | ||||
49 | | ||||
50 | } |