InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IURIUtils.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 1997-2010 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 // This class defines an utility interface used to manipulate URIs.
25 //
26 //========================================================================================
27 
28 #ifndef __IURIUtils__
29 #define __IURIUtils__
30 
31 // ----- Includes -----
32 #include "IPMUnknown.h"
33 #include "UtilitiesID.h"
34 #include "SysFileList.h"
35 #include "URIList.h"
36 
37 class IDFIle;
38 class URI;
39 
40 #define URIUTILS Utils<IURIUtils>()
41 
42 
49 class IURIUtils : public IPMUnknown
50 {
51 public:
52  enum { kDefaultIID = IID_IURIUTILS };
53 
60  virtual bool IDFileToURI(const IDFile& file, URI& uri) const = 0;
61 
68  virtual bool URIToIDFile(const URI& uri, IDFile& file) const = 0;
69 
76  virtual bool URIListToSysFileList(const URIList& uriList, SysFileList& sysFileList) const = 0;
83  virtual bool SysFileListToURIList(const SysFileList& sysFileList, URIList& uriList) const = 0;
90  virtual bool CloudAssetRefToURI(const std::string& assetRef, URI& uri) const = 0;
91 };
92 
93 #endif // __IURIUtils__