Changeset View
Changeset View
Standalone View
Standalone View
src/kio_gdrive.h
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Line(s) | 71 | private: | |||
---|---|---|---|---|---|
94 | 94 | | |||
95 | QString rootFolderId(const QString &accountId); | 95 | QString rootFolderId(const QString &accountId); | ||
96 | 96 | | |||
97 | bool putUpdate(const QUrl &url); | 97 | bool putUpdate(const QUrl &url); | ||
98 | bool putCreate(const QUrl &url); | 98 | bool putCreate(const QUrl &url); | ||
99 | bool readPutData(QTemporaryFile &tmpFile); | 99 | bool readPutData(QTemporaryFile &tmpFile); | ||
100 | 100 | | |||
101 | /** | 101 | /** | ||
102 | * Executes a KGAPI2::Job in an event loop, retrying the job until success or failure. | ||||
103 | * If the Job fails, SlaveBase::error() with an appropriate error message will be called. | ||||
104 | * | ||||
102 | * @return Whether @p job succeeded. | 105 | * @return Whether @p job succeeded. | ||
103 | */ | 106 | */ | ||
104 | bool runJob(KGAPI2::Job &job, const QUrl &url, const QString &accountId); | 107 | bool runJob(KGAPI2::Job &job, const QUrl &url, const QString &accountId); | ||
105 | 108 | | |||
106 | std::unique_ptr<AbstractAccountManager> m_accountManager; | 109 | std::unique_ptr<AbstractAccountManager> m_accountManager; | ||
107 | PathCache m_cache; | 110 | PathCache m_cache; | ||
108 | 111 | | |||
109 | QMap<QString /* account */, QString /* rootId */> m_rootIds; | 112 | QMap<QString /* account */, QString /* rootId */> m_rootIds; | ||
110 | 113 | | |||
111 | }; | 114 | }; | ||
112 | 115 | | |||
113 | #endif // KIO_GDRIVE_H | 116 | #endif // KIO_GDRIVE_H |