Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Datovka projects
mobile Datovka
Commits
de0ee1c9
Commit
de0ee1c9
authored
Oct 10, 2017
by
Martin Straka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some comments refactoring
parent
b3daa438
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
qml/pages/PageSettingsStorage.qml
qml/pages/PageSettingsStorage.qml
+1
-1
src/main.cpp
src/main.cpp
+4
-2
src/net/db_wrapper.h
src/net/db_wrapper.h
+2
-2
src/sqlite/zfo_db.h
src/sqlite/zfo_db.h
+2
-2
No files found.
qml/pages/PageSettingsStorage.qml
View file @
de0ee1c9
...
...
@@ -148,7 +148,7 @@ Item {
Text
{
id
:
zfoLifeLabel
color
:
datovkaPalette
.
text
text
:
qsTr
(
"
ZFO storage size in MB
"
)
text
:
qsTr
(
"
ZFO storage size
limit
in MB
"
)
}
SpinBox
{
/* Holds value in days. */
...
...
src/main.cpp
View file @
de0ee1c9
...
...
@@ -364,10 +364,12 @@ int main(int argc, char *argv[])
*/
}
/* true = zfo db store in disk, false = to memory */
/*
* Open ZFO database, the second parameter means: true = zfo db will
* store in disk, false = only in memory
*/
if
(
!
globZfoDbPtr
->
openDb
(
ZFO_DB_NAME
,
(
globSet
.
zfoDbSizeMBs
>
0
)))
{
qDebug
()
<<
"ERROR: zfo db not found!"
;
/* TODO - delete and create new db */
}
/* load UI (QML) */
...
...
src/net/db_wrapper.h
View file @
de0ee1c9
...
...
@@ -198,8 +198,8 @@ public:
* @brief Insert or update zfo file info to db.
*
* @param[in] msgId message ID.
* @param[in] isTestAccount True if account is ISDS test
ing
.
* @param[in] zfoSize Real size of zfo.
* @param[in] isTestAccount True if account is ISDS test
enviroment
.
* @param[in] zfoSize Real size of zfo
in Bytes
.
* @param[in] zfoData Zfo data.
* @return true if success.
*/
...
...
src/sqlite/zfo_db.h
View file @
de0ee1c9
...
...
@@ -152,7 +152,7 @@ public:
* @brief Update Zfo last access time.
*
* @param[in] msgId String with message id.
* @param[in] isTestAccount True if account is in the ISDS test
ing
environment.
* @param[in] isTestAccount True if account is in the ISDS test environment.
*/
void
updateZfoLastAccessTime
(
qint64
msgId
,
bool
isTestAccount
);
...
...
@@ -167,7 +167,7 @@ private:
};
/*!
* @brief Global
account
database.
* @brief Global
zfo
database
pointer
.
*/
extern
ZfoDb
*
globZfoDbPtr
;
...
...
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