SAP 3D Visual Enterprise applications SDK
DVLLibrary.h
Go to the documentation of this file.
1 /*
2  (C) 2013 SAP AG or an SAP affiliate company. All rights reserved.
3 */
9 #pragma once
10 
11 #define DVLLIBRARYLISTING_FILENAMES 1
12 #define DVLLIBRARYLISTING_FILESIZES 2
13 #define DVLLIBRARYLISTING_FOLDERNAMES 4
14 
21 #pragma pack(push, 1)
23 {
26 
27  uint32_t m_uFilesCount;
28  uint32_t m_uFoldersCount;
29 
30  char **m_pFileNames;//[m_uFilesCount], only when DVLLIBRARYLISTING_FILENAMES is set
31  uint64_t *m_pFileSizes;//[m_uFilesCount], only when DVLLIBRARYLISTING_FILESIZES is set
32  char **m_pFolderNames;//[m_uFoldersCount], only when DVLLIBRARYLISTING_FOLDERNAMES is set
33 };
34 #pragma pack(pop)
35 
36 
37 
47 {
48 protected:
49  virtual ~IDVLLibrary() {}//can't be deleted using this interface
50 
51 public:
65  virtual DVLRESULT RetrieveFolderListing(const char *szURL, uint32_t flags, sDVLLibraryFolderListing *pListing) = 0;
66 
72  virtual void ReleaseFolderListing(sDVLLibraryFolderListing *pListing) = 0;
73 
103  virtual DVLRESULT RetrieveThumbnail(const char *szURL, sDVLImage *pThumbnail) = 0;
104 
110  virtual void ReleaseThumbnail(sDVLImage *pThumbnail) = 0;
111 
125  virtual DVLRESULT RetrieveInfo(const char *szURL, uint32_t &flags, uint32_t &major, uint32_t &minor) = 0;
126 };
Definition: DVLTypes.h:361
Definition: DVLLibrary.h:22
uint16_t m_uSizeOfDVLLibraryFolderListing
you must set it to sizeof(sDVLLibraryFolderListing) before calling RetrieveFolderListing() ...
Definition: DVLLibrary.h:25
Definition: DVLLibrary.h:46
DVLRESULT
Defines the result of the operation. May be successful or not.
Definition: DVLTypes.h:37