CCopyAppComp.h
Go to the documentation of this file.
1 #ifndef ifileproc_CCopyAppComp_included
2 #define ifileproc_CCopyAppComp_included
3 
4 
5 // Qt includes
6 #include <QtCore/QStringList>
7 
8 // ACF includes
9 #include "istd/IChangeable.h"
10 #include "ibase/IApplication.h"
11 #include "ifile/IFilePersistence.h"
12 #include "ilog/TLoggerCompWrap.h"
13 
14 // ACF-Solutions include
16 
17 
18 namespace ifileproc
19 {
20 
21 
29  virtual public ibase::IApplication
30 {
31 public:
33 
34  I_BEGIN_COMPONENT(CCopyAppComp);
35  I_REGISTER_INTERFACE(ibase::IApplication);
36 
37  I_ASSIGN(m_fileCopyCompPtr, "FileCopy", "Provide copy of single file", true, "FileCopy");
38  I_ASSIGN(m_needExplicitInputAttrPtr, "NeedExplicitInput", "Indicate if explicit input file with -input is needed, otherwise first argument will be taken", true, false);
39  I_END_COMPONENT;
40 
41  // reimplemented (ibase::IApplication)
42  virtual bool InitializeApplication(int argc, char** argv);
43  virtual int Execute(int argc, char** argv);
44  virtual QString GetHelpText() const;
45  virtual QStringList GetApplicationArguments() const;
46 
47 private:
48  I_REF(IFileConvertCopy, m_fileCopyCompPtr);
49  I_ATTR(bool, m_needExplicitInputAttrPtr);
50 
51  QStringList m_applicationArguments;
52 };
53 
54 
55 } // namespace ifileproc
56 
57 
58 #endif // !ifileproc_CCopyAppComp_included
59 
60 
ilog::CLoggerComponentBase BaseClass
Definition: CCopyAppComp.h:32
Common interface for file copying.
virtual bool InitializeApplication(int argc, char **argv)
virtual int Execute(int argc, char **argv)
virtual QString GetHelpText() const
General file transformation application.
Definition: CCopyAppComp.h:27
virtual QStringList GetApplicationArguments() const

© 2007-2011 Witold Gantzke and Kirill Lepskiy