update doku
parent
095956c4e6
commit
e87ddf534b
|
@ -25,7 +25,6 @@ public:
|
||||||
|
|
||||||
~SqliteConnector();
|
~SqliteConnector();
|
||||||
|
|
||||||
//TODO DOKU, open neede?
|
|
||||||
bool open();
|
bool open();
|
||||||
|
|
||||||
std::vector<WebDAVItem> getItemsChildren(const std::string &parenthPath);
|
std::vector<WebDAVItem> getItemsChildren(const std::string &parenthPath);
|
||||||
|
|
|
@ -10,12 +10,9 @@
|
||||||
#define WEBDAVITEM
|
#define WEBDAVITEM
|
||||||
|
|
||||||
#include "model.h"
|
#include "model.h"
|
||||||
//TODO use own
|
|
||||||
#include "item.h"
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
/*
|
|
||||||
enum Itemtype
|
enum Itemtype
|
||||||
{
|
{
|
||||||
IFILE,
|
IFILE,
|
||||||
|
@ -29,7 +26,6 @@ enum FileState
|
||||||
IOUTSYNCED,
|
IOUTSYNCED,
|
||||||
ILOCAL
|
ILOCAL
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
|
||||||
struct WebDAVItem : Entry{
|
struct WebDAVItem : Entry{
|
||||||
std::string etag;
|
std::string etag;
|
||||||
|
@ -39,7 +35,7 @@ struct WebDAVItem : Entry{
|
||||||
FileState state{FileState::ICLOUD};
|
FileState state{FileState::ICLOUD};
|
||||||
Itemtype type;
|
Itemtype type;
|
||||||
std::string lastEditDate{"Error"};
|
std::string lastEditDate{"Error"};
|
||||||
double size;
|
std::string size;
|
||||||
std::string fileType;
|
std::string fileType;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#define CONTEXT_MENU
|
#define CONTEXT_MENU
|
||||||
|
|
||||||
#include "inkview.h"
|
#include "inkview.h"
|
||||||
#include "item.h"
|
#include "webDAVModel.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
@ -46,11 +46,10 @@ private:
|
||||||
std::unique_ptr<LoginView> _loginView;
|
std::unique_ptr<LoginView> _loginView;
|
||||||
std::unique_ptr<ContextMenu> _contextMenu;
|
std::unique_ptr<ContextMenu> _contextMenu;
|
||||||
std::vector<WebDAVItem> _currentWebDAVItems;
|
std::vector<WebDAVItem> _currentWebDAVItems;
|
||||||
MainMenu _menu = MainMenu("Nextcloud");
|
std::unique_ptr<MainMenu> _menu;
|
||||||
Nextcloud _nextcloud = Nextcloud();
|
|
||||||
|
WebDAV _webDAV = WebDAV();
|
||||||
SqliteConnector _sqllite = SqliteConnector(DB_PATH);
|
SqliteConnector _sqllite = SqliteConnector(DB_PATH);
|
||||||
std::string _tempPath;
|
|
||||||
int _tempItemID;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function needed to call C function, redirects to real function
|
* Function needed to call C function, redirects to real function
|
||||||
|
|
|
@ -43,8 +43,8 @@ public:
|
||||||
*/
|
*/
|
||||||
static bool connectToNetwork();
|
static bool connectToNetwork();
|
||||||
|
|
||||||
//TODO Doku
|
static std::string accessConfig(const std::string &path, const Action &action, const std::string &name, const std::string &value = std::string());
|
||||||
static std::string accessConfig(const Action &action, const std::string &name, const std::string &value = std::string());
|
|
||||||
/**
|
/**
|
||||||
* Returns an integer representing the download progress
|
* Returns an integer representing the download progress
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue