mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
5e3a475a87
http://www.qtcentre.org/threads/36131-Attempting-to-use-Sqlite-backup-api-from-driver-handle-fails on a post by chemmalion that allows one to save a memory sqlite3 database to file. This is really neat because now the strain on the hardrive is gone! This version loads the database on startup and saves it every 3 minutes to disk. The database is saved upon closing the program as well.
54 lines
1.2 KiB
Prolog
54 lines
1.2 KiB
Prolog
#-------------------------------------------------
|
|
#
|
|
# Project created by QtCreator 2011-10-30T17:04:10
|
|
#
|
|
#-------------------------------------------------
|
|
|
|
QT += core gui network xml sql
|
|
|
|
TARGET = owncloud_sync
|
|
TEMPLATE = app
|
|
|
|
|
|
SOURCES += main.cpp\
|
|
sqlite3_util.cpp \
|
|
SyncWindow.cpp \
|
|
qwebdav/QWebDAV.cpp
|
|
|
|
HEADERS += sqlite3_util.h \
|
|
SyncWindow.h \
|
|
qwebdav/QWebDAV.h
|
|
|
|
FORMS += SyncWindow.ui
|
|
INCLUDEPATH += qwebdav/
|
|
|
|
#INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/sqlite
|
|
#SOURCES += $$[QT_INSTALL_PREFIX]/src/3rdparty/sqlite/sqlite3.c
|
|
|
|
RESOURCES += \
|
|
owncloud_sync.qrc
|
|
|
|
|
|
unix:!symbian:!maemo5:isEmpty(MEEGO_VERSION_MAJOR) {
|
|
target.path = /opt/owncloud_sync/bin
|
|
INSTALLS += target
|
|
}
|
|
|
|
unix:!symbian:!maemo5:isEmpty(MEEGO_VERSION_MAJOR) {
|
|
desktopfile.files = $${TARGET}.desktop
|
|
desktopfile.path = /usr/share/applications
|
|
INSTALLS += desktopfile
|
|
}
|
|
|
|
unix:!symbian:!maemo5:isEmpty(MEEGO_VERSION_MAJOR) {
|
|
icon.files = owncloud_sync.png
|
|
icon.path = /usr/share/icons/hicolor/64x64/apps
|
|
INSTALLS += icon
|
|
}
|
|
|
|
|
|
|
|
unix:!macx:!symbian: LIBS += -L$$PWD/../../../../../usr/lib64/ -lsqlite3
|
|
|
|
INCLUDEPATH += $$PWD/../../../../../usr/include
|
|
DEPENDPATH += $$PWD/../../../../../usr/include
|