InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IRecentFileInfo.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Easter
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 2015 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //
23 // Description:
24 //
25 //
26 //========================================================================================
27 
28 
29 #ifndef __IRecentFileInfo__
30 #define __IRecentFileInfo__
31 
32 // ----- Includes -----
33 #include "IPMUnknown.h"
34 #include "DocFrameworkID.h"
35 #include "IDTime.h"
36 
42 {
43 public:
44  struct FileInfo
45  {
46  typedef object_type data_type;
47 
48  FileInfo() : fThumbnailWidth(0), fThumbnailHeight(0), fFileSize(0)
49  {
50  }
51 
52  FileInfo(const std::string& encodedThumbnail, const std::string& format, int32 thumbnailWidth, int32 thumbnailHeight, uint32 fileSize, IDTime lastOpenedTime) :
53  fEncodedThumbnail(encodedThumbnail),
54  fFormat(format),
55  fThumbnailWidth(thumbnailWidth),
56  fThumbnailHeight(thumbnailHeight),
57  fFileSize(fileSize),
58  fLastOpenedTime(lastOpenedTime)
59  {
60  }
61 
62  std::string fEncodedThumbnail; // File thumbnail data(Base 64 encoded)
63  std::string fFormat; // File thumbnail format
64  int32 fThumbnailWidth; // File thumbnail width
65  int32 fThumbnailHeight; // File thumbnail height
66  uint64 fFileSize; // File size
67  IDTime fLastOpenedTime; // File last opened time
68  };
69 
70  enum { kDefaultIID = IID_IRECENTFILEINFO };
71 
76  virtual void SetFileInfo(const FileInfo& fileInfo) = 0;
77 
82  virtual void GetFileInfo(FileInfo &fileInfo) const = 0;
83 };
84 
85 #endif // __IRecentFileInfo__