File indexing completed on 2024-05-12 05:08:07

0001 /*
0002     SPDX-FileCopyrightText: 2006 Thomas Baumagrt <ipwizard@users.sourceforge.net>
0003     SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KMYMONEYWIZARDPAGE_P_H
0008 #define KMYMONEYWIZARDPAGE_P_H
0009 
0010 #include "kmm_wizard_export.h"
0011 
0012 // ----------------------------------------------------------------------------
0013 // QT Includes
0014 
0015 #include <QObject>
0016 
0017 // ----------------------------------------------------------------------------
0018 // KDE Includes
0019 
0020 // ----------------------------------------------------------------------------
0021 // Project Includes
0022 
0023 class KMandatoryFieldGroup;
0024 
0025 /**
0026   * @author Thomas Baumgart (C) 2006
0027   *
0028   * This class represents a helper object required
0029   * to be able to use Qt's signal/slot mechanism within
0030   * the KMyMoneyWizardPage object which cannot be
0031   * derived from QObject directly.
0032   */
0033 
0034 class KMM_WIZARD_EXPORT KMyMoneyWizardPagePrivate : public QObject
0035 {
0036     Q_OBJECT
0037     Q_DISABLE_COPY(KMyMoneyWizardPagePrivate)
0038 
0039 public:
0040     explicit KMyMoneyWizardPagePrivate(QObject* parent) :
0041         QObject(parent),
0042         m_step(0),
0043         m_widget(nullptr),
0044         m_mandatoryGroup(nullptr)
0045     {
0046     }
0047 
0048     virtual ~KMyMoneyWizardPagePrivate()
0049     {
0050     }
0051 
0052     void emitCompleteStateChanged()
0053     {
0054         Q_EMIT completeStateChanged();
0055     }
0056 
0057     uint                  m_step;
0058     QWidget              *m_widget;
0059     KMandatoryFieldGroup *m_mandatoryGroup;
0060 
0061 Q_SIGNALS:
0062     void completeStateChanged();
0063 };
0064 
0065 #endif