-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsharespage.h
More file actions
45 lines (40 loc) · 1.22 KB
/
sharespage.h
File metadata and controls
45 lines (40 loc) · 1.22 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
#ifndef SHARESPAGE_H
#define SHARESPAGE_H
#include "changepermissionsdialog.h"
#include "acceptsharedialog.h"
#include <QObject>
#include <QTreeWidgetItem>
#include <QMessageBox>
class PCloudApp;
class PCloudWindow; // allows access to ui
class SharesPage : public QObject
{
Q_OBJECT
public:
friend class PCloudWindow;
explicit SharesPage(PCloudWindow *w, PCloudApp *a, QObject *parent = 0);
~SharesPage();
void selectErr();
void loadAll();
void setRequestsVisibility(int incoming, bool visible);
private:
PCloudWindow *win;
PCloudApp *app;
QString getPermissions(quint8 perm);
void fillSharesTable(bool incoming);
void fillRequestsTable(bool incoming);
void addSharesRow(QTreeWidget *table,QStringList data, quint64 id, quint64 fldrid,quint8 perms, int index);
void setTableProps(QTreeWidget* table);
void checkIsBusinessAccnt();
void getError(int res, char* err);
public slots:
void refreshTab(int i);
void stopShare();
void modifyShare();
void cancelRqst(); //cancel requests
void acceptRqst(); //incoming shares
void openSharedFldr(QTreeWidgetItem* item,int index);
void openBShares();
void openBRqsts();
};
#endif // SHARESPAGE_H