File indexing completed on 2025-01-19 05:06:22
0001 /* 0002 SPDX-FileCopyrightText: 2010 Daniel Nicoletti <dantti12@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "GenericPage.h" 0008 0009 GenericPage::GenericPage(QWidget *parent) 0010 : QWidget(parent) 0011 , m_working(0) 0012 { 0013 } 0014 0015 void GenericPage::working() 0016 { 0017 if (m_working++ == 0) { 0018 Q_EMIT startWorking(); 0019 } 0020 } 0021 0022 void GenericPage::notWorking() 0023 { 0024 if (--m_working == 0) { 0025 Q_EMIT stopWorking(); 0026 } 0027 } 0028 0029 QVariantMap GenericPage::values() const 0030 { 0031 return m_args; 0032 } 0033 0034 void GenericPage::setValues(const QVariantMap &args) 0035 { 0036 m_args = args; 0037 } 0038 0039 #include "moc_GenericPage.cpp"