| #pragma once |
| |
| #ifndef APPLICATION_H |
| #define APPLICATION_H |
| |
| |
| class TFarmController; |
| |
| #include "tfilepath.h" |
| |
| |
| |
| class RenderFarmTasksObserver { |
| public: |
| virtual void onChange() = 0; |
| }; |
| |
| |
| |
| class Application { |
| public: |
| ~Application(); |
| static Application *instance(); |
| |
| void init(); |
| |
| TFarmController *getController(); |
| bool testControllerConnection() const; |
| void getControllerData(string &hostName, string &ipAddr, int &port) const; |
| |
| void setCurrentFolder(const TFilePath &fp); |
| TFilePath getCurrentFolder(); |
| |
| private: |
| class Imp; |
| Imp *m_imp; |
| |
| Application(); |
| |
| |
| Application(const Application &); |
| Application &operator=(const Application &); |
| }; |
| |
| #endif |