Nut
0.1
Main Page
Classes
Files
File List
All
Classes
Functions
src
tablesetbase_p.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 TABLESETBASE_H
22
#define TABLESETBASE_H
23
24
#include <QtCore/QObject>
25
#include <QtCore/qglobal.h>
26
#include <QtCore/QSet>
27
28
#include "defines.h"
29
30
class
Table
;
31
class
Database
;
32
class
TableSetBase
:
public
QObject
33
{
34
35
public
:
36
TableSetBase
(
Database
*parent);
37
TableSetBase
(
Table
*parent);
38
39
virtual
void
save(
Database
*db);
40
void
clearChilds();
41
void
add(
Table
* t);
42
QString childClassName()
const
;
43
44
Database
*database()
const
;
45
void
setDatabase(
Database
*database);
46
47
protected
:
48
QSet<Table*> _tables;
49
QList<Table*> _tablesList;
50
QString _tableName;
51
Database
*_database;
52
Table
*_table;
53
QString _childClassName;
54
};
55
56
#endif // TABLESETBASE_H
Generated on Sun Jun 5 2016 17:32:34 for Nut by
1.8.1.2