IPWorks Cloud 2020 C++ Edition

Questions / Feedback?

ResourceList Event

Fires once for each resource returned when listing resources.

Syntax

ANSI (Cross Platform)
virtual int FireResourceList(GoogleDriveResourceListEventParams *e);
typedef struct {
const char *Id;
const char *Name;
const char *Extension;
const char *Description;
int ResourceType;
const char *SharedDriveId;
const char *CreatedTime;
const char *ModifiedTime;
int64 Size;
int Trashed; int reserved; } GoogleDriveResourceListEventParams; Unicode (Windows) virtual INT FireResourceList(GoogleDriveResourceListEventParams *e);
typedef struct {
LPCWSTR Id;
LPCWSTR Name;
LPCWSTR Extension;
LPCWSTR Description;
INT ResourceType;
LPCWSTR SharedDriveId;
LPCWSTR CreatedTime;
LPCWSTR ModifiedTime;
LONG64 Size;
BOOL Trashed; INT reserved; } GoogleDriveResourceListEventParams;
- (void)onResourceList:(NSString*)id :(NSString*)name :(NSString*)extension :(NSString*)description :(int)resourceType :(NSString*)sharedDriveId :(NSString*)createdTime :(NSString*)modifiedTime :(long long)size :(BOOL)trashed;
#define EID_GOOGLEDRIVE_RESOURCELIST 9

virtual INT IPWORKSCLOUD_CALL FireResourceList(LPSTR &lpszId, LPSTR &lpszName, LPSTR &lpszExtension, LPSTR &lpszDescription, INT &iResourceType, LPSTR &lpszSharedDriveId, LPSTR &lpszCreatedTime, LPSTR &lpszModifiedTime, LONG64 &lSize, BOOL &bTrashed);

Remarks

This event fires once for each resource returned when ListResources, ListChildren, ListParents, or GetResourceInfo is called.

Id is the Id of the resource.

Name holds the resource's name.

Extension is the file extension.

Description holds a short description of the resource (if any).

ResourceType indicates whether the resource is a file or folder. Possible values are:

0 (gdrtFile) A file.
1 (gdrtFolder) A folder.

SharedDriveId is the Id of the shared drive which the resource is in, or empty string if it is not in a shared drive.

CreatedTime holds a DateTime string representing the creation date of the resource. This is a combined date-time value (formatted according to RFC 3339).

ModifiedTime holds a DateTime string representing the last modified date of the resource. This is a combined date-time value (formatted according to RFC 3339).

Size holds the size of the file in bytes. This is only applicable to files.

Trashed indicates whether the resource is in the trash.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 C++ Edition - Version 20.0 [Build 8265]