Changeset View
Changeset View
Standalone View
Standalone View
src/drive/fileabstractuploadjob.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 54 | public: | |||
---|---|---|---|---|---|
71 | explicit FileAbstractUploadJob(const QMap < QString /* file path */, | 71 | explicit FileAbstractUploadJob(const QMap < QString /* file path */, | ||
72 | FilePtr /* metadata */ > &files, | 72 | FilePtr /* metadata */ > &files, | ||
73 | const AccountPtr &account, QObject *parent = nullptr); | 73 | const AccountPtr &account, QObject *parent = nullptr); | ||
74 | ~FileAbstractUploadJob() override; | 74 | ~FileAbstractUploadJob() override; | ||
75 | 75 | | |||
76 | bool useContentAsIndexableText() const; | 76 | bool useContentAsIndexableText() const; | ||
77 | void setUseContentAsIndexableText(bool useContentAsIndexableText); | 77 | void setUseContentAsIndexableText(bool useContentAsIndexableText); | ||
78 | 78 | | |||
79 | /** | ||||
80 | * @brief Whether the request supports both My Drives and shared drives. | ||||
81 | * | ||||
82 | * Set to true by default as LibKGAPI supports Team Drives. | ||||
83 | * | ||||
84 | * @deprecated This parameter will only be effective until June 1, 2020. Afterwards all applications | ||||
85 | * are assumed to support shared drives. | ||||
86 | */ | ||||
87 | KGAPIDRIVE_DEPRECATED bool supportsAllDrives() const; | ||||
88 | | ||||
89 | /** | ||||
90 | * @brief Sets whether the request supports both My Drives and shared drives. | ||||
91 | * | ||||
92 | * Set to true by default as LibKGAPI supports Team Drives. | ||||
93 | * | ||||
94 | * @deprecated This parameter will only be effective until June 1, 2020. Afterwards all applications | ||||
95 | * are assumed to support shared drives. | ||||
96 | */ | ||||
97 | KGAPIDRIVE_DEPRECATED void setSupportsAllDrives(bool supportsAllDrives); | ||||
98 | | ||||
79 | QMap < QString /* file path */, FilePtr /* metadata */ > files() const; | 99 | QMap < QString /* file path */, FilePtr /* metadata */ > files() const; | ||
80 | 100 | | |||
81 | protected: | 101 | protected: | ||
82 | void start() override; | 102 | void start() override; | ||
83 | void dispatchRequest(QNetworkAccessManager *accessManager, | 103 | void dispatchRequest(QNetworkAccessManager *accessManager, | ||
84 | const QNetworkRequest &request, | 104 | const QNetworkRequest &request, | ||
85 | const QByteArray &data, | 105 | const QByteArray &data, | ||
86 | const QString &contentType) override; | 106 | const QString &contentType) override; | ||
Show All 24 Lines |