IApplication.h
Go to the documentation of this file.
1 #ifndef ibase_IApplication_included
2 #define ibase_IApplication_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 
8 // ACF includes
9 #include <istd/IPolymorphic.h>
10 
11 
12 namespace ibase
13 {
14 
15 
22 class IApplication: virtual public istd::IPolymorphic
23 {
24 public:
28  virtual bool InitializeApplication(int argc, char** argv) = 0;
29 
33  virtual int Execute(int argc, char** argv) = 0;
34 
38  virtual QString GetHelpText() const = 0;
39 
43  virtual QStringList GetApplicationArguments() const = 0;
44 };
45 
46 
47 } // namespace ibase
48 
49 
50 #endif // !ibase_IApplication_included
51 
52 
virtual int Execute(int argc, char **argv)=0
Start execution loop of the application.
virtual QString GetHelpText() const =0
Get information about the possible command line arguments of this application.
virtual QStringList GetApplicationArguments() const =0
Get the command line arguments of this application.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
virtual bool InitializeApplication(int argc, char **argv)=0
Initialize the application object.
Interface for the main entry point of a component-based application.
Definition: IApplication.h:22

© 2007-2017 Witold Gantzke and Kirill Lepskiy