1 //========================================================================
5 // All changes made under the Poppler project to this file are licensed
6 // under GPL version 2 or later
8 // Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org>
10 // To see a description of the changes please see the Changelog file that
11 // came with your tarball or type make ChangeLog if you are building from git
13 //========================================================================
18 #ifdef USE_GCC_PRAGMAS
26 EmbFile(Object
*efStream
);
29 int size() { return m_size
; }
30 GooString
*modDate() { return m_modDate
; }
31 GooString
*createDate() { return m_createDate
; }
32 GooString
*checksum() { return m_checksum
; }
33 GooString
*mimeType() { return m_mimetype
; }
34 Stream
*stream() { return isOk() ? m_objStr
.getStream() : NULL
; }
35 GBool
isOk() { return m_objStr
.isStream(); }
36 GBool
save(const char *path
);
42 GooString
*m_createDate
;
44 GooString
*m_checksum
;
45 GooString
*m_mimetype
;
51 FileSpec(Object
*fileSpec
);
54 GBool
isOk() { return ok
; }
56 GooString
*getFileName() const { return fileName
; }
57 GooString
*getFileNameForPlatform();
58 GooString
*getDescription() const { return desc
; }
59 EmbFile
*getEmbeddedFile();
66 GooString
*fileName
; // F, UF, DOS, Mac, Unix
67 GooString
*platformFileName
;
68 Object fileStream
; // Ref to F entry in UF
70 GooString
*desc
; // Desc
73 GBool
getFileSpecName (Object
*fileSpec
, Object
*fileName
);
74 GBool
getFileSpecNameForPlatform (Object
*fileSpec
, Object
*fileName
);
76 #endif /* FILE_SPEC_H */