File indexing completed on 2024-04-21 04:36:01

0001 /* This file is part of KDevelop
0002  * Copyright 2011 Mathieu Lornac <mathieu.lornac@gmail.com>
0003  * Copyright 2011 Damien Coppel <damien.coppel@gmail.com>
0004  * Copyright 2011 Lionel Duc <lionel.data@gmail.com>
0005  * Copyright 2017 Anton Anikin <anton@anikin.xyz>
0006 
0007    This program is free software; you can redistribute it and/or
0008    modify it under the terms of the GNU General Public
0009    License as published by the Free Software Foundation; either
0010    version 2 of the License, or (at your option) any later version.
0011 
0012    This program is distributed in the hope that it will be useful,
0013    but WITHOUT ANY WARRANTY; without even the implied warranty of
0014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0015     General Public License for more details.
0016 
0017    You should have received a copy of the GNU General Public License
0018    along with this program; see the file COPYING.  If not, write to
0019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0020    Boston, MA 02110-1301, USA.
0021 */
0022 
0023 #pragma once
0024 
0025 #include "configpage.h"
0026 
0027 class QPushButton;
0028 
0029 namespace Valgrind
0030 {
0031 
0032 class MemcheckConfigPage : public ConfigPage
0033 {
0034     Q_OBJECT
0035 
0036 public:
0037     explicit MemcheckConfigPage(QWidget* parent = nullptr);
0038     ~MemcheckConfigPage() override = default;
0039 };
0040 
0041 class MemcheckConfigPageFactory : public KDevelop::LaunchConfigurationPageFactory
0042 {
0043 public:
0044     MemcheckConfigPageFactory()
0045     {
0046     }
0047 
0048     ~MemcheckConfigPageFactory() override = default;
0049 
0050     KDevelop::LaunchConfigurationPage* createWidget(QWidget* parent) override
0051     {
0052         return new MemcheckConfigPage(parent);
0053     }
0054 };
0055 
0056 }