You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __GUICLASS_H_INCL__
  2. #define __GUICLASS_H_INCL__
  3. #include "gui.h"
  4. /**
  5. * TODO: Add class description
  6. *
  7. * @author gagua
  8. */
  9. class guiClass {
  10. public:
  11. // Method to fetch singleton instance.
  12. static guiClass* getInstance();
  13. static void init( int argc, char *argv[] );
  14. // Destructor
  15. virtual ~guiClass();
  16. QApplication *getApp(void);
  17. protected:
  18. // Constructor - protected so users cannot call it.
  19. guiClass();
  20. private:
  21. int m_nScreenCount;
  22. int m_nABI;
  23. int m_nAPI;
  24. double m_dVersion;
  25. // private static member referencing the single instance of the object
  26. // TODO: Replace guiClass with the type of object you want to
  27. // return the single instance of
  28. static guiClass* _instance;
  29. // Copy constructor
  30. // Declared but not defined to prevent auto-generated
  31. // copy constructor. Refer to "Effective C++" by Meyers
  32. guiClass(const guiClass& src);
  33. // Assignment operator
  34. // Declared but not defined to prevent auto-generated
  35. // assignment operator. Refer to "Effective C++" by Meyers
  36. guiClass& operator=(const guiClass& src);
  37. };
  38. #endif // __GUICLASS_H_INCL__