Commit f122b56f authored by Karel Slaný's avatar Karel Slaný

Moved SQLite table prototype to shared.

parent d492e0fc
......@@ -86,6 +86,7 @@ SOURCES += \
src/accounts.cpp \
src/auxiliaries/attachment_helper.cpp \
src/auxiliaries/email_helper.cpp \
src/datovka_shared/io/sqlite/table.cpp \
src/dialogues/dialogues.cpp \
src/dialogues/qml_dialogue_helper.cpp \
src/dialogues/qml_input_dialogue.cpp \
......@@ -95,7 +96,6 @@ SOURCES += \
src/files.cpp \
src/io/filesystem.cpp \
src/io/sqlite/db.cpp \
src/io/sqlite/table.cpp \
src/isds/isds_conversion.cpp \
src/locker.cpp \
src/log/log.cpp \
......@@ -147,6 +147,7 @@ HEADERS += \
src/auxiliaries/attachment_helper.h \
src/auxiliaries/email_helper.h \
src/common.h \
src/datovka_shared/io/sqlite/table.h \
src/dialogues/dialogues.h \
src/dialogues/qml_dialogue_helper.h \
src/dialogues/qml_input_dialogue.h \
......@@ -156,7 +157,6 @@ HEADERS += \
src/files.h \
src/io/filesystem.h \
src/io/sqlite/db.h \
src/io/sqlite/table.h \
src/isds/isds_conversion.h \
src/locker.h \
src/log/log.h \
......
/*
* Copyright (C) 2014-2016 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -26,7 +26,7 @@
#include <QSqlQuery>
#include <QVariant>
#include "src/io/sqlite/table.h"
#include "src/datovka_shared/io/sqlite/table.h"
#include "src/log/log.h"
SQLiteTbl::SQLiteTbl(const QString &name,
......
/*
* Copyright (C) 2014-2016 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -21,8 +21,7 @@
* the two.
*/
#ifndef _SQLITE_TABLE_H_
#define _SQLITE_TABLE_H_
#pragma once
#include <QMap>
#include <QPair>
......@@ -41,7 +40,12 @@ enum EntryType {
DB_BOOL_READ_LOCALLY, /* Boolean. */
DB_BOOL_ATTACHMENT_DOWNLOADED, /* Boolean. */
DB_DATETIME,
DB_DATE
DB_DATE,
DB_APPENDED_VARIANT /*
* This actually is not a database type. This value
* describes all types which were added beyond
* an SQL query.
*/
};
/*!
......@@ -119,5 +123,3 @@ private:
static
const QString emptyTblConstraint;
};
#endif /* _SQLITE_TABLE_H_ */
......@@ -27,8 +27,8 @@
#include <QSqlQuery>
#include <QVariant>
#include "src/datovka_shared/io/sqlite/table.h"
#include "src/io/sqlite/db.h"
#include "src/io/sqlite/table.h"
#include "src/log/log.h"
const QString SQLiteDb::memoryLocation(":memory:");
......
......@@ -24,7 +24,7 @@
#ifndef _DB_TABLES_H_
#define _DB_TABLES_H_
#include "src/io/sqlite/table.h"
#include "src/datovka_shared/io/sqlite/table.h"
/*
* Account database.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment