BuildmLearn Toolkit  2.0.4
BuildmLearn Toolkit is an easy-to-use program that helps users make mobile apps without any knowledge of application development.
 All Classes Functions Enumerations Groups Pages
templategenerator.h
1 #ifndef TEMPLATEGENERATOR_H
2 #define TEMPLATEGENERATOR_H
3 
4 #include <QObject>
5 
6 #include "core/templatecore.h"
7 
8 
9 /// \brief Generator responsible for generating APK mobile applications.
10 class TemplateGenerator : public QObject {
11  Q_OBJECT
12 
13  public:
14  // Constructors and destructors.
15  explicit TemplateGenerator(QObject *parent = 0);
16  virtual ~TemplateGenerator();
17 
18  public slots:
19  /// \brief Generates new APK application using given core.
20  /// \param core Used core.
21  /// \warning State and progress of creating of application
22  /// is reported via signalling. No return values are used.
24 
25  /// \brief Cleans workspace used for generating applications.
26  void cleanWorkspace();
27 
28  /// \brief Cleans and recreates base workspace path.
29  void refreshWorkspace();
30 
31  signals:
32  /// \brief Emitted if generating process is started.
33  void generationStarted();
34 
35  /// \brief Emitted if generating process is finished.
36  /// \param result_code Result code of generating process.
37  /// \param output_file If generating succeeded, then this contains
38  /// output APK file path.
39  void generationFinished(TemplateCore::GenerationResult result_code, const QString &output_file = QString());
40 
41  /// \brief Emitted when there is some progress in generating
42  /// APK application.
43  /// \param progress Number of percent passed.
44  /// \param message Progress message description.
45  void generationProgress(int progress, const QString &message);
46 };
47 
48 #endif // TEMPLATEGENERATOR_H
void generateMobileApplication(TemplateCore *core)
Generates new APK application using given core.
void refreshWorkspace()
Cleans and recreates base workspace path.
void cleanWorkspace()
Cleans workspace used for generating applications.
void generationProgress(int progress, const QString &message)
Emitted when there is some progress in generating APK application.
void generationFinished(TemplateCore::GenerationResult result_code, const QString &output_file=QString())
Emitted if generating process is finished.
Generator responsible for generating APK mobile applications.
void generationStarted()
Emitted if generating process is started.
The core class container for single template.
Definition: templatecore.h:43
GenerationResult
Possible results of generation of bundle data.
Definition: templatecore.h:48