1 /*************************************************************************** 2 * SPDX-FileCopyrightText: 2021 S. MANKOWSKI stephane@mankowski.fr 3 * SPDX-FileCopyrightText: 2021 G. DE BURE support@mankowski.fr 4 * SPDX-License-Identifier: GPL-3.0-or-later 5 ***************************************************************************/ 6 #ifndef SKGSCHEDULEDBOARDWIDGET_H 7 #define SKGSCHEDULEDBOARDWIDGET_H 8 /** @file 9 * This file is Skrooge plugin for scheduled operation management. 10 * 11 * @author Stephane MANKOWSKI / Guillaume DE BURE 12 */ 13 #include "skghtmlboardwidget.h" 14 15 /** 16 * This file is Skrooge plugin for scheduled operation management 17 */ 18 class SKGScheduledBoardWidget : public SKGHtmlBoardWidget 19 { 20 Q_OBJECT 21 22 public: 23 /** 24 * Default Constructor 25 * @param iParent the parent widget 26 * @param iDocument the document 27 */ 28 explicit SKGScheduledBoardWidget(QWidget* iParent, SKGDocument* iDocument); 29 30 /** 31 * Default Destructor 32 */ 33 ~SKGScheduledBoardWidget() override; 34 35 /** 36 * Get the current state 37 * MUST BE OVERWRITTEN 38 * @return a string containing all information needed to set the same state. 39 * Could be an XML stream 40 */ 41 QString getState() override; 42 43 /** 44 * Set the current state 45 * MUST BE OVERWRITTEN 46 * @param iState must be interpreted to set the state of the widget 47 */ 48 void setState(const QString& iState) override; 49 50 protected Q_SLOTS: 51 void dataModified(const QString& iTableName = QString(), int iIdTransaction = 0) override; 52 53 private: 54 Q_DISABLE_COPY(SKGScheduledBoardWidget) 55 SKGComboBox* m_daysmax; 56 }; 57 58 #endif // SKGSCHEDULEDBOARDWIDGET_H 59