Changeset View
Changeset View
Standalone View
Standalone View
src/drive/teamdrive.h
Context not available. | |||||
69 | */ | 69 | */ | ||
---|---|---|---|---|---|
70 | bool adminManagedRestrictions() const; | 70 | bool adminManagedRestrictions() const; | ||
71 | 71 | | |||
72 | /** | ||||
73 | * @brief Sets whether administrative privileges on this Team Drive | ||||
74 | * are required to modify restrictions. | ||||
75 | * | ||||
76 | * @param adminManagedRestrictions | ||||
77 | */ | ||||
78 | void setAdminManagedRestrictions(bool adminManagedRestrictions) const; | ||||
79 | | ||||
72 | /** | 80 | /** | ||
73 | * @brief Returns whether the options to copy, print, or download files | 81 | * @brief Returns whether the options to copy, print, or download files | ||
74 | * inside this Team Drive, should be disabled for readers and commenters. | 82 | * inside this Team Drive, should be disabled for readers and commenters. | ||
Context not available. | |||||
77 | */ | 85 | */ | ||
78 | bool copyRequiresWriterPermission() const; | 86 | bool copyRequiresWriterPermission() const; | ||
79 | 87 | | |||
88 | /** | ||||
89 | * @brief Sets whether the options to copy, print, or download files | ||||
90 | * inside this Team Drive, should be disabled for readers and commenters. | ||||
91 | * When this restriction is set to true, it will override the similarly | ||||
92 | * named field to true for any file inside this Team Drive. | ||||
93 | * | ||||
94 | * @param copyRequiresWriterPermission | ||||
95 | */ | ||||
96 | void setCopyRequiresWriterPermission(bool copyRequiresWriterPermission) const; | ||||
97 | | ||||
80 | /** | 98 | /** | ||
81 | * @brief Returns whether access to this Team Drive and items inside this | 99 | * @brief Returns whether access to this Team Drive and items inside this | ||
82 | * Team Drive is restricted to users of the domain to which this Team | 100 | * Team Drive is restricted to users of the domain to which this Team | ||
Context not available. | |||||
85 | */ | 103 | */ | ||
86 | bool domainUsersOnly() const; | 104 | bool domainUsersOnly() const; | ||
87 | 105 | | |||
106 | /** | ||||
107 | * @brief Sets whether access to this Team Drive and items inside this | ||||
108 | * Team Drive is restricted to users of the domain to which this Team | ||||
109 | * Drive belongs. This restriction may be overridden by other sharing | ||||
110 | * policies controlled outside of this Team Drive. | ||||
111 | * | ||||
112 | * @param domainUsersOnly | ||||
113 | */ | ||||
114 | void setDomainUsersOnly(bool domainUsersOnly) const; | ||||
115 | | ||||
88 | /** | 116 | /** | ||
89 | * @brief Returns whether access to items inside this Team Drive is | 117 | * @brief Returns whether access to items inside this Team Drive is | ||
90 | * restricted to members of this Team Drive. | 118 | * restricted to members of this Team Drive. | ||
91 | */ | 119 | */ | ||
92 | bool teamMembersOnly() const; | 120 | bool teamMembersOnly() const; | ||
93 | 121 | | |||
122 | /** | ||||
123 | * @brief Sets whether access to items inside this Team Drive is | ||||
124 | * restricted to members of this Team Drive. | ||||
125 | * | ||||
126 | * @param teamMembersOnly | ||||
127 | */ | ||||
128 | void setTeamMembersOnly(bool teamMembersOnly) const; | ||||
129 | | ||||
94 | private: | 130 | private: | ||
95 | class Private; | 131 | class Private; | ||
96 | QScopedPointer<Private> const d; | 132 | QScopedPointer<Private> const d; | ||
Context not available. | |||||
249 | */ | 285 | */ | ||
250 | QString id() const; | 286 | QString id() const; | ||
251 | 287 | | |||
288 | /** | ||||
289 | * @brief Sets the id of the background image file. | ||||
290 | * | ||||
291 | * @param id | ||||
292 | */ | ||||
293 | void setId(const QString &id) const; | ||||
294 | | ||||
252 | /** | 295 | /** | ||
253 | * @brief Returns the x coordinate for this background image file. | 296 | * @brief Returns the x coordinate for this background image file. | ||
254 | */ | 297 | */ | ||
255 | float xCoordinate() const; | 298 | float xCoordinate() const; | ||
256 | 299 | | |||
300 | /** | ||||
301 | * @brief Sets the x coordinate for this background image file. | ||||
302 | * | ||||
303 | * @param xCoordinate | ||||
304 | */ | ||||
305 | void setXCoordinate(float xCoordinate) const; | ||||
306 | | ||||
257 | /** | 307 | /** | ||
258 | * @brief Returns the y coordinate for this background image file. | 308 | * @brief Returns the y coordinate for this background image file. | ||
259 | */ | 309 | */ | ||
260 | float yCoordinate() const; | 310 | float yCoordinate() const; | ||
261 | 311 | | |||
312 | /** | ||||
313 | * @brief Sets the y coordinate for this background image file. | ||||
314 | * | ||||
315 | * @param yCoordinate | ||||
316 | */ | ||||
317 | void setYCoordinate(float yCoordinate) const; | ||||
318 | | ||||
262 | /** | 319 | /** | ||
263 | * @brief Returns the width for this background image file. | 320 | * @brief Returns the width for this background image file. | ||
264 | */ | 321 | */ | ||
265 | float width() const; | 322 | float width() const; | ||
266 | 323 | | |||
324 | /** | ||||
325 | * @brief Sets the width for this background image file. | ||||
326 | * | ||||
327 | * @param width | ||||
328 | */ | ||||
329 | void setWidth(float width) const; | ||||
330 | | ||||
267 | private: | 331 | private: | ||
268 | class Private; | 332 | class Private; | ||
269 | QScopedPointer<Private> const d; | 333 | QScopedPointer<Private> const d; | ||
Context not available. | |||||
284 | */ | 348 | */ | ||
285 | QString id() const; | 349 | QString id() const; | ||
286 | 350 | | |||
351 | /** | ||||
352 | * @brief Sets the id of the teamdrive. | ||||
353 | * | ||||
354 | * @param id | ||||
355 | */ | ||||
356 | void setId(const QString &id) const; | ||||
357 | | ||||
287 | /** | 358 | /** | ||
288 | * @brief Returns the name of the teamdrive. | 359 | * @brief Returns the name of the teamdrive. | ||
289 | */ | 360 | */ | ||
Context not available. | |||||
301 | */ | 372 | */ | ||
302 | QString themeId() const; | 373 | QString themeId() const; | ||
303 | 374 | | |||
375 | /** | ||||
376 | * @brief Sets the themeId of the teamdrive. | ||||
377 | * | ||||
378 | * @param themeId | ||||
379 | */ | ||||
380 | void setThemeId(const QString &themeId) const; | ||||
381 | | ||||
304 | /** | 382 | /** | ||
305 | * @brief Returns the colorRgb of the teamdrive. | 383 | * @brief Returns the colorRgb of the teamdrive. | ||
306 | */ | 384 | */ | ||
307 | QString colorRgb() const; | 385 | QString colorRgb() const; | ||
308 | 386 | | |||
387 | /** | ||||
388 | * @brief Sets the colorRgb of the teamdrive. | ||||
389 | * | ||||
390 | * @param colorRgb | ||||
391 | */ | ||||
392 | void setColorRgb(const QString &colorRgb) const; | ||||
393 | | ||||
309 | /** | 394 | /** | ||
310 | * @brief Returns the image file and cropping parameters from which a background image for this Team Drive is set. | 395 | * @brief Returns the image file and cropping parameters from which a background image for this Team Drive is set. | ||
311 | */ | 396 | */ | ||
312 | BackgroundImageFilePtr backgroundImageFile() const; | 397 | BackgroundImageFilePtr backgroundImageFile() const; | ||
313 | 398 | | |||
399 | /** | ||||
400 | * @brief Sets the backgroundImageFile of the teamdrive. | ||||
401 | * | ||||
402 | * @param backgroundImageFile | ||||
403 | */ | ||||
404 | void setBackgroundImageFile(const BackgroundImageFilePtr &backgroundImageFile) const; | ||||
405 | | ||||
314 | /** | 406 | /** | ||
315 | * @brief Returns the backgroundImageLink of the teamdrive. | 407 | * @brief Returns the backgroundImageLink of the teamdrive. | ||
316 | */ | 408 | */ | ||
Context not available. | |||||
332 | */ | 424 | */ | ||
333 | RestrictionsPtr restrictions() const; | 425 | RestrictionsPtr restrictions() const; | ||
334 | 426 | | |||
427 | /** | ||||
428 | * @brief Sets the restrictions of the teamdrive. | ||||
429 | * | ||||
430 | * @param restrictions | ||||
431 | */ | ||||
432 | void setRestrictions(const RestrictionsPtr &restrictions) const; | ||||
433 | | ||||
335 | static TeamdrivePtr fromJSON(const QByteArray &jsonData); | 434 | static TeamdrivePtr fromJSON(const QByteArray &jsonData); | ||
336 | static TeamdrivesList fromJSONFeed(const QByteArray &jsonData, FeedData &feedData); | 435 | static TeamdrivesList fromJSONFeed(const QByteArray &jsonData, FeedData &feedData); | ||
337 | static QByteArray toJSON(const TeamdrivePtr &teamdrive); | 436 | static QByteArray toJSON(const TeamdrivePtr &teamdrive); | ||
Context not available. |