rcmaemo5qtprojectgenerator.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef RCMAEMO5QTPROJECTGENERATOR_H
  2. #define RCMAEMO5QTPROJECTGENERATOR_H
  3. #include "maemo5/maemo5qtprojectgenerator.h"
  4. class RcBuildTask;
  5. class RcMaemo5QtProjectGenerator : public Maemo5QtProjectGenerator
  6. {
  7. Q_OBJECT
  8. public:
  9. //
  10. // lifetime management
  11. //
  12. RcMaemo5QtProjectGenerator(const QString & platformId,
  13. GeneratorOutputView & outputView,
  14. QObject * parent = NULL);
  15. virtual ~RcMaemo5QtProjectGenerator();
  16. //
  17. // public operators
  18. //
  19. public:
  20. virtual IStatusUpdater * createStatusUpdater(QObject * parent = NULL);
  21. virtual void build(const QString &widgetFile,
  22. RcSession & rcSession);
  23. virtual void rebuild(RcSession & rcSession);
  24. virtual QString getStatusText() const;
  25. virtual QWidget * createSettingsWidget(const QString & widgetFile,
  26. QWidget * parent = NULL) const;
  27. virtual void saveSettings(QWidget * settingsWidget) const;
  28. virtual QStringList errorsForTarget(GeneratorTarget generatorTarget) const;
  29. /* OBS
  30. protected:
  31. virtual Maemo5ProcessRunner * createProcessRunner();
  32. */
  33. protected:
  34. virtual void startBuild();
  35. private slots:
  36. void zippingSlot();
  37. void uploadingAndWaitingSlot();
  38. void downloadingSlot();
  39. void buildCompletedSlot(bool success,
  40. QString downloadedFile);
  41. private:
  42. QString m_wccParams;
  43. RcSession * m_rcSession;
  44. RcBuildTask * m_rcBuildTask;
  45. };
  46. #endif // RCMAEMO5QTPROJECTGENERATOR_H