Nut  0.1
changelogtable.h
1 /**************************************************************************
2 **
3 ** This file is part of Nut project.
4 ** https://github.com/HamedMasafi/Nut
5 **
6 ** Nut is free software: you can redistribute it and/or modify
7 ** it under the terms of the GNU Lesser General Public License as published by
8 ** the Free Software Foundation, either version 3 of the License, or
9 ** (at your option) any later version.
10 **
11 ** Nut is distributed in the hope that it will be useful,
12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ** GNU Lesser General Public License for more details.
15 **
16 ** You should have received a copy of the GNU Lesser General Public License
17 ** along with Nut. If not, see <http://www.gnu.org/licenses/>.
18 **
19 **************************************************************************/
20 
21 #ifndef CHANGELOGTABLE_H
22 #define CHANGELOGTABLE_H
23 
24 #include <QtCore/qglobal.h>
25 #include "table.h"
26 
27 QT_BEGIN_NAMESPACE
28 
29 class ChangeLogTable : public Table
30 {
31  Q_OBJECT
32 
33  NUT_PRIMARY_AUTO_INCREMENT(id)
34  NUT_DECLARE_FIELD(int, id, id, setId)
35 
36  NUT_DECLARE_FIELD(QString, data, data, setData)
37 
38  NUT_DECLARE_FIELD(int, versionMajor, versionMajor, setVersionMajor)
39 
40  NUT_DECLARE_FIELD(int, versionMinor, versionMinor, setVersionMinor)
41 
42 public:
44 };
45 
46 QT_END_NAMESPACE
47 
48 #endif // CHANGELOGTABLE_H