IMediaController.h
Go to the documentation of this file.
1 #ifndef imm_IMediaController_included
2 #define imm_IMediaController_included
3 
4 
5 // ACF includes
6 #include <istd/IChangeable.h>
7 #include <QtCore/QString>
8 #include <ifile/IFileTypeInfo.h>
9 
10 #include <imm/imm.h>
11 
12 
13 namespace imm
14 {
15 
16 
18  virtual public istd::IChangeable,
19  virtual public ifile::IFileTypeInfo
20 {
21 public:
26  {
30  CF_STATUS = 0xc72a266,
35  };
36 
38  {
40  SF_PLAY = 0x2,
41  SF_SEEK = 0x4,
43  };
44 
48  virtual QString GetOpenedMediumUrl() const = 0;
49 
53  virtual bool OpenMediumUrl(const QString& url, bool autoPlay = true) = 0;
54 
59  virtual void CloseMedium() = 0;
60 
64  virtual bool IsPlaying() const = 0;
65 
69  virtual bool SetPlaying(bool state = true) = 0;
70 
74  virtual double GetMediumLength() const = 0;
75 
79  virtual double GetCurrentPosition() const = 0;
80 
84  virtual bool SetCurrentPosition(double position) = 0;
85 
90  virtual int GetSupportedFeatures() const = 0;
91 };
92 
93 
94 } // namespace imm
95 
96 
97 #endif // !imm_IMediaController_included
98 
99 
virtual int GetSupportedFeatures() const =0
Get info about features, that are supported by this media controller.
ChangeFlags
Data model change notification flags.
Status (start/stop) changed.
virtual bool OpenMediumUrl(const QString &url, bool autoPlay=true)=0
Open some media file.
virtual double GetMediumLength() const =0
Return length of opened media.
virtual bool IsPlaying() const =0
Return true, if media is currntly playing.
virtual void CloseMedium()=0
Close this media player.
virtual bool SetPlaying(bool state=true)=0
Play or pause current media.
virtual bool SetCurrentPosition(double position)=0
Skip to some position of media stream.
virtual QString GetOpenedMediumUrl() const =0
Get URL of the medium object.
virtual double GetCurrentPosition() const =0
Get current position.

© 2007-2017 Witold Gantzke and Kirill Lepskiy