Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mobile Datovka
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Datovka projects
mobile Datovka
Commits
f122b56f
Commit
f122b56f
authored
Dec 08, 2017
by
Karel Slaný
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved SQLite table prototype to shared.
parent
d492e0fc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
12 deletions
+14
-12
mobile-datovka.pro
mobile-datovka.pro
+2
-2
src/datovka_shared/io/sqlite/table.cpp
src/datovka_shared/io/sqlite/table.cpp
+2
-2
src/datovka_shared/io/sqlite/table.h
src/datovka_shared/io/sqlite/table.h
+8
-6
src/io/sqlite/db.cpp
src/io/sqlite/db.cpp
+1
-1
src/sqlite/db_tables.h
src/sqlite/db_tables.h
+1
-1
No files found.
mobile-datovka.pro
View file @
f122b56f
...
...
@@ -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 \
...
...
src/io/sqlite/table.cpp
→
src/
datovka_shared/
io/sqlite/table.cpp
View file @
f122b56f
/*
* Copyright (C) 2014-201
6
CZ.NIC
* Copyright (C) 2014-201
7
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
,
...
...
src/io/sqlite/table.h
→
src/
datovka_shared/
io/sqlite/table.h
View file @
f122b56f
/*
* Copyright (C) 2014-201
6
CZ.NIC
* Copyright (C) 2014-201
7
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_ */
src/io/sqlite/db.cpp
View file @
f122b56f
...
...
@@ -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:"
);
...
...
src/sqlite/db_tables.h
View file @
f122b56f
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment