Changeset View
Changeset View
Standalone View
Standalone View
src/drive/drivesdeletejob.h
- This file was copied from src/drive/teamdrivedeletejob.h.
Show All 15 Lines | |||||
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 | 23 | | |||
24 | #ifndef KGAPI2_DRIVETEAMDRIVEDELETEJOB_H | 24 | #ifndef KGAPI2_DRIVEDRIVESDELETEJOB_H | ||
25 | #define KGAPI2_DRIVETEAMDRIVEDELETEJOB_H | 25 | #define KGAPI2_DRIVEDRIVESDELETEJOB_H | ||
26 | 26 | | |||
27 | #include "deletejob.h" | 27 | #include "deletejob.h" | ||
28 | #include "kgapidrive_export.h" | 28 | #include "kgapidrive_export.h" | ||
29 | 29 | | |||
30 | namespace KGAPI2 | 30 | namespace KGAPI2 | ||
31 | { | 31 | { | ||
32 | 32 | | |||
33 | namespace Drive | 33 | namespace Drive | ||
34 | { | 34 | { | ||
35 | 35 | | |||
36 | class KGAPIDRIVE_EXPORT TeamdriveDeleteJob : public KGAPI2::DeleteJob | 36 | class KGAPIDRIVE_EXPORT DrivesDeleteJob : public KGAPI2::DeleteJob | ||
37 | { | 37 | { | ||
38 | Q_OBJECT | 38 | Q_OBJECT | ||
39 | 39 | | |||
40 | public: | 40 | public: | ||
41 | TeamdriveDeleteJob(const QString &teamdriveId, | 41 | DrivesDeleteJob(const QString &drivesId, | ||
42 | const AccountPtr &account, QObject *parent = nullptr); | 42 | const AccountPtr &account, QObject *parent = nullptr); | ||
43 | TeamdriveDeleteJob(const QStringList &teamdrivesIds, | 43 | DrivesDeleteJob(const QStringList &drivesIds, | ||
44 | const AccountPtr &account, QObject *parent = nullptr); | 44 | const AccountPtr &account, QObject *parent = nullptr); | ||
45 | TeamdriveDeleteJob(const TeamdrivePtr &teamdrive, | 45 | DrivesDeleteJob(const DrivesPtr &drives, | ||
46 | const AccountPtr &account, QObject *parent = nullptr); | 46 | const AccountPtr &account, QObject *parent = nullptr); | ||
47 | TeamdriveDeleteJob(const TeamdrivesList &teamdrives, | 47 | DrivesDeleteJob(const DrivesList &drives, | ||
48 | const AccountPtr &account, QObject *parent = nullptr); | 48 | const AccountPtr &account, QObject *parent = nullptr); | ||
49 | ~TeamdriveDeleteJob() override; | 49 | ~DrivesDeleteJob() override; | ||
50 | 50 | | |||
51 | protected: | 51 | protected: | ||
52 | void start() override; | 52 | void start() override; | ||
53 | 53 | | |||
54 | private: | 54 | private: | ||
55 | class Private; | 55 | class Private; | ||
56 | QScopedPointer<Private> d; | 56 | QScopedPointer<Private> d; | ||
57 | friend class Private; | 57 | friend class Private; | ||
58 | }; | 58 | }; | ||
59 | 59 | | |||
60 | } // namespace Drive | 60 | } // namespace Drive | ||
61 | 61 | | |||
62 | } // namespace KGAPI2 | 62 | } // namespace KGAPI2 | ||
63 | 63 | | |||
64 | #endif // KGAPI2_DRIVETEAMDRIVEDELETEJOB_H | 64 | #endif // KGAPI2_DRIVEDRIVESDELETEJOB_H |