HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FS_IconHelper.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: FS_IconHelper.h (FS Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __FS_ICONHELPER_H_INCLUDED__
12 #define __FS_ICONHELPER_H_INCLUDED__
13 
14 #include "FS_API.h"
15 #include "FS_Reader.h"
16 #include "FS_Info.h"
17 
19 {
20 public:
22  virtual ~FS_IconReadHelper();
23 
25  const char *source,
26  const UT_Options *options = nullptr);
27 };
28 
30 {
31 public:
33  virtual ~FS_IconInfoHelper();
34 
35  virtual bool canHandle(const char* source);
36  virtual bool hasAccess(const char* source, int mode);
37  virtual bool getIsDirectory(const char* source);
38  virtual int getModTime(const char* source);
39  virtual int64 getSize(const char* source);
40  virtual bool getContents(
41  const char* source,
42  UT_StringArray& contents,
43  UT_StringArray* dirs);
44  virtual char getNextSepChar(const char *source);
45  virtual char getPrevSepChar(const char *source);
46 };
47 
48 #endif // __FS_ICONHELPER_H_INCLUDED__
virtual FS_ReaderStream * createStream(const char *source, const UT_Options *options=NULL)=0
virtual int getModTime(const char *source)=0
Get the modification timestamp (returns time_t)
virtual char getPrevSepChar(const char *)
Previous separator character.
Definition: FS_Info.h:262
virtual char getNextSepChar(const char *)
Next separator character.
Definition: FS_Info.h:259
virtual bool getContents(const char *source, UT_StringArray &contents, UT_StringArray *dirs)=0
virtual bool canHandle(const char *source)=0
Determine whether this helper can process the filename.
long long int64
Definition: SYS_Types.h:100
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:802
virtual bool getIsDirectory(const char *source)=0
Return whether the filename is a directory.
GLenum mode
Definition: glcorearb.h:98
A map of string to various well defined value types.
Definition: UT_Options.h:42
#define FS_API
Definition: FS_API.h:10
virtual int64 getSize(const char *source)=0
Get the file size in bytes.
virtual bool hasAccess(const char *source, int mode)=0