-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsuggestnsbasewin.h
More file actions
63 lines (57 loc) · 1.7 KB
/
suggestnsbasewin.h
File metadata and controls
63 lines (57 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef WELCOMESCREEN_H
#define WELCOMESCREEN_H /// to CHANGE !!!!!!
#include <QMainWindow>
#include <QCloseEvent>
#include <QStringList>
#include <QItemDelegate>
#include <QTableWidget>
#include <QTreeWidgetItem>
#include <QDir>
#ifdef Q_OS_WIN
#include <QStandardPaths>
#endif
class PCloudApp;
namespace Ui {
class SuggestnsBaseWin;
}
class SuggestnsBaseWin : public QMainWindow
{
Q_OBJECT
public:
friend class addSyncDialog;
friend class SyncItemsDelegate;
explicit SuggestnsBaseWin(PCloudApp *a, bool addlocal, QStringList *fldrs, QWidget *parent = 0);
~SuggestnsBaseWin();
QStringList remoteFldrsNamesLst, newRemoteFldrsLst;
QString getCurrLocalPath();
QString getCurrRemotePath();
int getCurrType();
QTreeWidgetItem* getCurrItem();
void addNewItem(QString &localpath, QString &remotepath, int type);
void addLocalFldrs(QStringList *itemsLst);
void addRemoteFldrs(QStringList *itemsLst);
int getItemsNum();
bool getChangeItem();
void setChangeItem(bool);
QString checkRemoteName(QString &entryName);
void addNewRemoteFldr(QString &name);
private:
bool addLocalFldrsFlag;
QStringList *addFldrsLst; //indicates if user adds a new sync or changes a suggested one
QString getLocalName(QString &entryName);
bool isCrypto(const char* path);
protected:
Ui::SuggestnsBaseWin *ui;
void closeEvent(QCloseEvent *event);
PCloudApp *app;
QDir *dfltDir;
QString currentLocal, currentRemote;
int currentType;
bool isChangingItem;
public slots:
void addSync();
virtual void changeCurrItem(QModelIndex index);
// void modifyType(); //obsolete behaviuor
void finish();
};
#endif // WELCOMESCREEN_H