CComposedCopyFilesComp.h
Go to the documentation of this file.
1 #ifndef ifileproc_CComposedCopyFilesComp_included
2 #define ifileproc_CComposedCopyFilesComp_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 #include <QtCore/QDir>
8 
9 // ACF includes
11 #include "ilog/TLoggerCompWrap.h"
12 
13 
14 namespace ifileproc
15 {
16 
17 
22  public QObject,
24  virtual public ifileproc::IFileConvertCopy
25 {
26 public:
28 
29  enum MessageId
30  {
31  MI_CRITICAL = 0xa8760
32  };
33 
34  I_BEGIN_COMPONENT(CComposedCopyFilesComp);
35  I_REGISTER_INTERFACE(ifileproc::IFileConvertCopy);
36  I_ASSIGN_MULTI_0(m_fileCopiersCompPtr, "FileCopiers", "Set of copiers will be used for input and output path", true);
37  I_END_COMPONENT;
38 
39  // reimplemented (ifileproc::IFileConvertCopy)
40  virtual bool ConvertFiles(
41  const QString& inputPath,
42  const QString& outputPath,
43  const iprm::IParamsSet* paramsPtr = NULL) const;
44 
45 private:
46  I_MULTIREF(ifileproc::IFileConvertCopy, m_fileCopiersCompPtr);
47 };
48 
49 
50 } // namespace ifileproc
51 
52 
53 #endif // !ifileproc_CComposedCopyFilesComp_included
54 
55 
Common interface for file copying.
ilog::CLoggerComponentBase BaseClass
virtual bool ConvertFiles(const QString &inputPath, const QString &outputPath, const iprm::IParamsSet *paramsPtr=NULL) const
Copy a file or files from inputPath to destination outputPath.

© 2007-2011 Witold Gantzke and Kirill Lepskiy