|
SAP 3D Visual Enterprise applications SDK
|
#include <DVLLibrary.h>
Public Member Functions | |
| virtual DVLRESULT | RetrieveFolderListing (const char *szURL, uint32_t flags, sDVLLibraryFolderListing *pListing)=0 |
| virtual void | ReleaseFolderListing (sDVLLibraryFolderListing *pListing)=0 |
| virtual DVLRESULT | RetrieveThumbnail (const char *szURL, sDVLImage *pThumbnail)=0 |
| virtual void | ReleaseThumbnail (sDVLImage *pThumbnail)=0 |
| virtual DVLRESULT | RetrieveInfo (const char *szURL, uint32_t &flags, uint32_t &major, uint32_t &minor)=0 |
This class defines the interface for interaction with file library.
|
pure virtual |
Releases all memory that was initialized in a previous call to RetrieveFolderListing()
|
pure virtual |
Releases all memory that was initialized in a previous call to RetrieveThumbnail()
|
pure virtual |
Retrieves folder listing information into the provided structure
| szURL | URL of the folder to query on. Set to NULL for local listing. Can be http://login:pwd@server:port/folder1/folder2/. |
| flags | Bitfield combination of one or more DVLLIBRARYLISTING_XXX defines |
| DVLRESULT_BADFORMAT | If m_uSizeOfDVLLibraryFolderListing is wrong or URL format incorrect |
| DVLRESULT_BADARG | If pListing == NULL |
|
pure virtual |
Retrieves file thumbnail into the provided buffer
| szURL | URL of a file to retrieve thumbnail for. The format is "file://path/to/file.vds", the encoding is UTF-8 |
| flags | Bitwise combination of flags that provide extra information about the file, like if it is encrypted. See DVLFILEFLAG enum for a list of available flags. |
| major | Major file version |
| minor | Minor file version |
| DVLRESULT_BADARG | If either szURL is NULL |
| DVLRESULT_FILENOTFOUND | Such file does not exist |
| DVLRESULT_OUTOFMEMORY | If could not allocate thumbnail buffer |
| DVLRESULT_BADFORMAT | If the file is not recognized as a supported VDS file |
|
pure virtual |
Retrieves file thumbnail into the provided buffer
| szURL | URL of a file to retrieve thumbnail for. The format is "file://path/to/file.vds", the encoding is UTF-8 |
| pThumbnail | Thumbnail will be retrieved into this data structure. |
| DVLRESULT_BADARG | If either szURL or pThumbnail is NULL |
| DVLRESULT_BADARG | If m_uSizeOfDVLImage is wrong or szURL format incorrect |
| DVLRESULT_FILENOTFOUND | Such file/folder does not exist |
| DVLRESULT_NOTFOUND | File does not have a thumbnail (in this case you need to show some default thumbnail) |
| DVLRESULT_ENCRYPTED | File is encrypted and thus doesn't have a thumbnail (for security resasons) |
| DVLRESULT_OUTOFMEMORY | If could not allocate thumbnail buffer |
Notes
Example