/* This file is part of the KDE libraries
    Copyright (C) 2000 David Faure <faure@kde.org>

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.

    You should have received a copy of the GNU Library General Public License
    along with this library; see the file COPYING.LIB.  If not, write to
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
    Boston, MA 02110-1301, USA.
*/

#ifndef KABSTRACTDEBUGDIALOG__H
#define KABSTRACTDEBUGDIALOG__H

#include <kdialog.h>

class QCheckBox;
class KConfig;
class QVBoxLayout;
class KPushButton;

class KAbstractDebugDialog : public KDialog
{
    Q_OBJECT
public:
    KDELIBS4SUPPORT_DEPRECATED explicit KAbstractDebugDialog(QWidget *parent);

    ~KAbstractDebugDialog() override;

    void buildButtons();

    void load();
    void save();
    virtual void doLoad() = 0;
    virtual void doSave() = 0;
    KConfig * config() { return pConfig; }

    typedef QMap<QString /*area name*/, QString /*description*/> AreaMap;

protected Q_SLOTS:
    void slotShowHelp();
    void slotApply();

protected:
    KConfig* pConfig;
    QCheckBox* m_disableAll;
};

#endif
