InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMediaContent.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 __IMediaContent__
25 #define __IMediaContent__
26 
27 #include "IPMUnknown.h"
28 
29 #include "MediaID.h"
30 #include "MediaLocation.h"
31 #include "IMediaAttributes.h"
32 
36 class IMediaContent : public IPMUnknown
37 {
38 public:
39 
40  enum { kDefaultIID = IID_IMEDIACONTENT };
41 
42  enum MediaType
43  {
44  enUndefined,
45  enVideo,
46  enAudio,
47  enLegacyVideo = 4, // pre-CS5 video types
48  enLegacyAudio // pre-CS5 audio types
49  };
50 
57  virtual IPMStream * CreateContentStreamRead( bool16 rawContentRequired = kFalse ) = 0;
58 
63  virtual PMString GetMimeType() = 0;
64 
69  virtual const MediaLocation GetLocation() const = 0;
70 
75  virtual const PMString GetMediaFileName() const = 0;
76 
81  virtual const PMString GetMediaFilePath() const = 0;
82 
86  virtual const PMString GetPosterPath() const = 0;
87 
91  virtual IMediaAttributes::PosterType GetPosterType() const = 0;
92 
96  virtual const UID GetPosterUID() const = 0;
97 
102  virtual bool16 HasContent() const = 0;
103 
109  virtual bool16 IsPosterAvailable() const = 0;
110 
114  virtual IMediaContent::MediaType GetMediaType() const = 0;
115 
116 }; // end IMediaContent interface
117 
118 #endif // __IMediaContent__