InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IRecentFileListFacade.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 #ifndef __IRecentFileListFacade__
29 #define __IRecentFileListFacade__
30 
31 // ----- Includes -----
32 #include "IPMUnknown.h"
33 #include "DocFrameworkID.h"
34 #include "IRecentFileInfo.h"
35 
40 namespace Facade
41 {
43  {
44  public:
45  enum { kDefaultIID = IID_IRECENTFILELISTFACADE };
46 
47  enum { kInvalidResult = -1 } FileListError;
48 
53  virtual int32 GetFileMax() const = 0;
54 
60  virtual ErrorCode SetFileMax(int32 newDocCount) const = 0;
61 
66  virtual int32 GetFileCount() const = 0;
67 
73  virtual const IDFile* GetNthFile(int32 n) const = 0;
74 
81  virtual const PMString* GetNthPathName(int32 n) const = 0;
82 
88  virtual ErrorCode AddFile(const IDFile *addThis) const = 0;
89 
95  virtual ErrorCode RemoveFile(const IDFile *removeThis) const = 0;
96 
101  virtual bool16 SystemPolicyProhibitsList() const = 0;
102 
108  virtual void GetNthFileInfo(int32 n, IRecentFileInfo::FileInfo& fileInfo) const = 0;
109 
118  virtual ErrorCode SetNthFileThumbnailInfo(int32 n, const std::string& encodedThumbnail, const std::string& format, int32 thumbnailWidth, int32 thumbnailHeight) const = 0;
119  };
120 }
121 #endif // __IRecentFileListFacade__