CuteHMI - Data Acquisition (CuteHMI.DataAcquisition.0)
TableObject.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_DATAACQUISITION_0_INCLUDE_CUTEHMI_DATAACQUISITION_INTERNAL_TABLEOBJECT_HPP
2 #define H_EXTENSIONS_CUTEHMI_DATAACQUISITION_0_INCLUDE_CUTEHMI_DATAACQUISITION_INTERNAL_TABLEOBJECT_HPP
3 
4 #include "common.hpp"
5 #include "../DataObject.hpp"
6 #include "../Schema.hpp"
7 
8 
9 namespace cutehmi {
10 namespace dataacquisition {
11 namespace internal {
12 
13 class CUTEHMI_DATAACQUISITION_PRIVATE TableObject:
14  public DataObject
15 
16 {
17  Q_OBJECT
18 
19  public:
20  Q_PROPERTY(QString connectionName READ connectionName NOTIFY connectionNameChanged) // Overriden.
21 
22  Q_PROPERTY(Schema * schema READ schema WRITE setSchema NOTIFY schemaChanged)
23 
24  explicit TableObject(Schema * schema, QObject * parent = nullptr);
25 
26  Schema * schema() const;
27 
28  void setSchema(Schema * schema);
29 
30  signals:
31  void schemaChanged();
32 
33  private:
34  struct Members
35  {
36  Schema * schema;
37  };
38 
39  MPtr<Members> m;
40 };
41 
42 }
43 }
44 }
45 
46 #endif
47 
48 //(c)C: Copyright © 2020, Michał Policht <michal@policht.pl>. All rights reserved.
49 //(c)C: This file is a part of CuteHMI.
50 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
51 //(c)C: CuteHMI 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 Lesser General Public License for more details.
52 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>.
cutehmi::dataacquisition::DataObject
Database object.
Definition: DataObject.hpp:21
cutehmi::dataacquisition::internal::TableObject
Definition: TableObject.hpp:13
cutehmi::MPtr< Members >
QObject
cutehmi
QString
std::internal
T internal(T... args)
cutehmi::dataacquisition::Schema
Database schema.
Definition: Schema.hpp:13