CHotfolderLoaderComp.h
Go to the documentation of this file.
1 #ifndef ihotf_CHotfolderLoaderComp_included
2 #define ihotf_CHotfolderLoaderComp_included
3 
4 
5 // ACF includes
8 
10 
11 
12 namespace ihotf
13 {
14 
15 
20 class CHotfolderLoaderComp: public ifile::TFileSerializerComp<ifile::CXmlFileReadArchive, ifile::CXmlFileWriteArchive>
21 {
22 public:
24 
25  I_BEGIN_COMPONENT(CHotfolderLoaderComp);
26  I_ASSIGN(m_monitorSessionsParamIdAttrPtr, "MonitorSessionsParamId", "Parameter ID for monitoring sessions", true, "MonitoringSessions");
27  I_END_COMPONENT;
28 
29  enum MessageId
30  {
34  };
35 
36  // reimplemented (ifile::IFilePersistence)
37  virtual int LoadFromFile(istd::IChangeable& data, const QString& filePath) const;
38  virtual int SaveToFile(const istd::IChangeable& data, const QString& filePath) const;
39 
40  // reimplemented (ifile::IFileTypeInfo)
41  virtual bool GetFileExtensions(QStringList& result, int flags = -1, bool doAppend = false) const;
42  virtual QString GetTypeDescription(const QString* extensionPtr = NULL) const;
43 
44 protected:
48  QString GetStaticParamsPath(const QString& objectPath) const;
49 
50  // reimplemented (ifile::TFileSerializerComp)
51  virtual void OnReadError(
52  const ifile::CXmlFileReadArchive& archive,
53  const istd::IChangeable& data,
54  const QString& filePath) const;
55 
56 private:
57  I_ATTR(QByteArray, m_monitorSessionsParamIdAttrPtr);
58 };
59 
60 
61 } // namespace ihotf
62 
63 
64 #endif // !ihotf_CHotfolderLoaderComp_included
65 
66 
QString GetStaticParamsPath(const QString &objectPath) const
Get the path of the static hotfolder parameter file.
virtual int LoadFromFile(istd::IChangeable &data, const QString &filePath) const
ifile::TFileSerializerComp< ifile::CXmlFileReadArchive, ifile::CXmlFileWriteArchive > BaseClass
virtual bool GetFileExtensions(QStringList &result, int flags=-1, bool doAppend=false) const
Hotfolder data loader.
virtual int SaveToFile(const istd::IChangeable &data, const QString &filePath) const
virtual QString GetTypeDescription(const QString *extensionPtr=NULL) const
virtual void OnReadError(const ifile::CXmlFileReadArchive &archive, const istd::IChangeable &data, const QString &filePath) const

© 2007-2011 Witold Gantzke and Kirill Lepskiy