Changeset View
Changeset View
Standalone View
Standalone View
src/gdriveurl.h
Show All 28 Lines | |||||
29 | public: | 29 | public: | ||
30 | explicit GDriveUrl(const QUrl &url); | 30 | explicit GDriveUrl(const QUrl &url); | ||
31 | 31 | | |||
32 | QString account() const; | 32 | QString account() const; | ||
33 | QString filename() const; | 33 | QString filename() const; | ||
34 | bool isRoot() const; | 34 | bool isRoot() const; | ||
35 | bool isAccountRoot() const; | 35 | bool isAccountRoot() const; | ||
36 | bool isTopLevel() const; | 36 | bool isTopLevel() const; | ||
37 | bool isSharedDrivesRoot() const; | ||||
38 | bool isSharedDrive() const; | ||||
37 | bool isTrashDir() const; | 39 | bool isTrashDir() const; | ||
38 | bool isTrashed() const; | 40 | bool isTrashed() const; | ||
39 | QUrl url() const; | 41 | QUrl url() const; | ||
40 | QString parentPath() const; | 42 | QString parentPath() const; | ||
41 | QStringList pathComponents() const; | 43 | QStringList pathComponents() const; | ||
42 | 44 | | |||
43 | static const QString Scheme; | 45 | static const QString Scheme; | ||
46 | static const QString SharedDrivesDir; | ||||
44 | static const QString TrashDir; | 47 | static const QString TrashDir; | ||
45 | private: | 48 | private: | ||
46 | QUrl m_url; | 49 | QUrl m_url; | ||
47 | QStringList m_components; | 50 | QStringList m_components; | ||
48 | }; | 51 | }; | ||
49 | 52 | | |||
50 | #endif // GDRIVEURL_U | 53 | #endif // GDRIVEURL_U |