Changeset View
Changeset View
Standalone View
Standalone View
src/drive/driveshidejob.h
- This file was copied from src/drive/teamdrivecreatejob.h.
Show All 14 Lines | |||||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU Lesser General Public License for more details. | 17 | * GNU Lesser General Public License for more details. | ||
18 | * | 18 | * | ||
19 | * You should have received a copy of the GNU Lesser General Public | 19 | * You should have received a copy of the GNU Lesser General Public | ||
20 | * License along with this library. If not, see <https://www.gnu.org/licenses/>. | 20 | * License along with this library. If not, see <https://www.gnu.org/licenses/>. | ||
21 | */ | 21 | */ | ||
22 | 22 | | |||
23 | #ifndef KGAPI2_DRIVETEAMDRIVECREATEJOB_H | 23 | #ifndef KGAPI2_DRIVEDRIVESHIDEJOB_H | ||
24 | #define KGAPI2_DRIVETEAMDRIVECREATEJOB_H | 24 | #define KGAPI2_DRIVEDRIVESHIDEJOB_H | ||
25 | 25 | | |||
26 | #include "createjob.h" | 26 | #include "createjob.h" | ||
27 | #include "kgapidrive_export.h" | 27 | #include "kgapidrive_export.h" | ||
28 | 28 | | |||
29 | namespace KGAPI2 | 29 | namespace KGAPI2 | ||
30 | { | 30 | { | ||
31 | 31 | | |||
32 | namespace Drive | 32 | namespace Drive | ||
33 | { | 33 | { | ||
34 | 34 | | |||
35 | class KGAPIDRIVE_EXPORT TeamdriveCreateJob : public KGAPI2::CreateJob | 35 | class KGAPIDRIVE_EXPORT DrivesHideJob : public KGAPI2::CreateJob | ||
36 | { | 36 | { | ||
37 | Q_OBJECT | 37 | Q_OBJECT | ||
38 | 38 | | |||
39 | public: | 39 | public: | ||
40 | TeamdriveCreateJob(const QString &requestId, | 40 | DrivesHideJob(const DrivesPtr &drives, | ||
41 | const TeamdrivePtr &teamdrive, | 41 | bool hide, | ||
42 | const AccountPtr &account, QObject *parent = nullptr); | 42 | const AccountPtr &account, QObject *parent = nullptr); | ||
43 | TeamdriveCreateJob(const QString &requestId, | 43 | DrivesHideJob(const DrivesList &drives, | ||
44 | const TeamdrivesList &teamdrives, | 44 | bool hide, | ||
45 | const AccountPtr &account, QObject *parent = nullptr); | 45 | const AccountPtr &account, QObject *parent = nullptr); | ||
46 | ~TeamdriveCreateJob() override; | 46 | ~DrivesHideJob() override; | ||
47 | | ||||
48 | /** | | |||
49 | * @brief Returns the requestId used in this create request. | | |||
50 | */ | | |||
51 | QString requestId() const; | | |||
52 | 47 | | |||
53 | protected: | 48 | protected: | ||
54 | void start() override; | 49 | void start() override; | ||
55 | KGAPI2::ObjectsList handleReplyWithItems(const QNetworkReply *reply, | 50 | KGAPI2::ObjectsList handleReplyWithItems(const QNetworkReply *reply, | ||
56 | const QByteArray &rawData) override; | 51 | const QByteArray &rawData) override; | ||
57 | 52 | | |||
58 | private: | 53 | private: | ||
59 | class Private; | 54 | class Private; | ||
60 | QScopedPointer<Private> d; | 55 | QScopedPointer<Private> d; | ||
61 | friend class Private; | 56 | friend class Private; | ||
62 | }; | 57 | }; | ||
63 | 58 | | |||
64 | } // namespace Drive | 59 | } // namespace Drive | ||
65 | 60 | | |||
66 | } // namespace KGAPI2 | 61 | } // namespace KGAPI2 | ||
67 | 62 | | |||
68 | #endif // KGAPI2_DRIVETEAMDRIVECREATEJOB_H | 63 | #endif // KGAPI2_DRIVEDRIVESHIDEJOB_H |