InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMediaFormatManager.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: wtislar
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 
24 #ifndef __IMediaFormatManager__
25 #define __IMediaFormatManager__
26 
27 #include "IPMUnknown.h"
28 #include "MediaID.h"
29 #include "MediaLocation.h"
30 
31 class IMediaReadFormat;
33 class IPMStream;
34 
35 // DEPRECATED. DO NOT USE THIS INTERFACE.
36 // See IMediaUtils for equivalent methods.
37 
43 {
44 
45 public:
46 
47  enum { kDefaultIID = IID_IMEDIAFORMATMANAGER };
48 
57  virtual ErrorCode CanAccess( const MediaLocation & loc, const MediaType mediaType ) = 0;
58 
63  virtual bool16 CanPlay( const MediaLocation & loc ) = 0;
64 
72  virtual ErrorCode GetLastError() = 0;
73 
80  virtual IMediaReadFormat* FindMediaReadFormat( MediaType mediaType, IPMStream* iPMStream ) = 0;
81 
86  virtual IMediaReadFormat* FindMediaReadFormat( ClassID readFormatClassID ) = 0;
87 
94  virtual IMediaReadFormat* FindMediaReadFormat( const MediaLocation & loc ) = 0;
95 
102  virtual IMediaReadFormatInfo* FindMediaReadFormatInfo( const MediaLocation & loc ) = 0;
103 
104 }; // end IMediaFormatManager interface
105 
106 #endif // end __IMediaFormatManager__