rcsymbianqtprojectgenerator.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef RCSYMBIANQTPROJECTGENERATOR_H
  2. #define RCSYMBIANQTPROJECTGENERATOR_H
  3. #include "symbian/symbianqtprojectgenerator.h"
  4. class RcBuildTask;
  5. class RcSession;
  6. class RcSymbianQtProjectGenerator : public SymbianQtProjectGenerator
  7. {
  8. Q_OBJECT
  9. public:
  10. //
  11. // lifetime management
  12. //
  13. RcSymbianQtProjectGenerator(const QString & platformId,
  14. GeneratorOutputView & outputView,
  15. QObject * parent = NULL);
  16. virtual ~RcSymbianQtProjectGenerator();
  17. //
  18. // public operators
  19. //
  20. public:
  21. virtual IStatusUpdater * createStatusUpdater(QObject * parent = NULL);
  22. virtual void build(const QString &widgetFile,
  23. RcSession & rcSession);
  24. virtual void rebuild(RcSession & rcSession);
  25. virtual QString getStatusText() const;
  26. virtual QWidget * createSettingsWidget(const QString & widgetFile,
  27. QWidget * parent = NULL) const;
  28. virtual void saveSettings(QWidget * settingsWidget) const;
  29. virtual QStringList errorsForTarget(GeneratorTarget generatorTarget) const;
  30. /* OBS
  31. protected:
  32. virtual SymbianProcessRunner * createProcessRunner();
  33. */
  34. protected:
  35. virtual void startBuild();
  36. private slots:
  37. void zippingSlot();
  38. void uploadingAndWaitingSlot();
  39. void downloadingSlot();
  40. void buildCompletedSlot(bool success,
  41. QString downloadedFile);
  42. void finishedSlot(int exitCode);
  43. private:
  44. QString m_wccParams;
  45. RcSession * m_rcSession;
  46. RcBuildTask * m_rcBuildTask;
  47. QString m_appName;
  48. // For the remote compilation, we force full-s60-sdk in the
  49. // global settings temporily, as the (local) symbian build
  50. // uses that value to prepare the sources during generation.
  51. // But later, the setting should switch back to old value,
  52. // thus we have to store it here.
  53. bool m_oldFullS60SDK;
  54. };
  55. #endif // RCSYMBIANQTPROJECTGENERATOR_H