CMediaLoaderComp.h
Go to the documentation of this file.
1 #ifndef iqtmm_CMediaLoaderComp_included
2 #define iqtmm_CMediaLoaderComp_included
3 
4 
6 
7 #include <icomp/CComponentBase.h>
8 
9 #include <ilog/TLoggerCompWrap.h>
10 
11 #include <iqtmm/iqtmm.h>
12 
13 
14 namespace iqtmm
15 {
16 
17 
19  public QObject,
21  virtual public ifile::IFilePersistence
22 {
23  Q_OBJECT
24 
25 public:
27 
28  I_BEGIN_COMPONENT(CMediaLoaderComp);
29  I_REGISTER_INTERFACE(ifile::IFileTypeInfo);
30  I_REGISTER_INTERFACE(ifile::IFilePersistence);
31  I_ASSIGN(m_autoPlayAttrPtr, "AutoPlay", "If enabled, movie will be automatically played after loading", true, true);
32  I_END_COMPONENT;
33 
34  // reimplemented (ifile::IFilePersistence)
35  virtual bool IsOperationSupported(
36  const istd::IChangeable* dataObjectPtr,
37  const QString* filePathPtr = NULL,
38  int flags = -1,
39  bool beQuiet = true) const;
40  virtual int LoadFromFile(
41  istd::IChangeable& data,
42  const QString& filePath = QString(),
43  ibase::IProgressManager* progressManagerPtr = NULL) const;
44  virtual int SaveToFile(
45  const istd::IChangeable& data,
46  const QString& filePath = QString(),
47  ibase::IProgressManager* progressManagerPtr = NULL) const;
48 
49  // reimplemented (ifile::IFileTypeInfo)
50  virtual bool GetFileExtensions(QStringList& result, const istd::IChangeable* dataObjectPtr = NULL, int flags = -1, bool doAppend = false) const;
51  virtual QString GetTypeDescription(const QString* extensionPtr = NULL) const;
52 
53 private:
54  I_ATTR(bool, m_autoPlayAttrPtr);
55 };
56 
57 
58 } // namespace iqtmm
59 
60 
61 #endif // !iqtmm_CMediaLoaderComp_included
62 
virtual bool GetFileExtensions(QStringList &result, const istd::IChangeable *dataObjectPtr=NULL, int flags=-1, bool doAppend=false) const
virtual QString GetTypeDescription(const QString *extensionPtr=NULL) const
virtual int LoadFromFile(istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const
virtual bool IsOperationSupported(const istd::IChangeable *dataObjectPtr, const QString *filePathPtr=NULL, int flags=-1, bool beQuiet=true) const
ilog::CLoggerComponentBase BaseClass
virtual int SaveToFile(const istd::IChangeable &data, const QString &filePath=QString(), ibase::IProgressManager *progressManagerPtr=NULL) const

© 2007-2017 Witold Gantzke and Kirill Lepskiy