1
0

api_applicationi.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef __API_APPLICATIONI_IMPL_H
  2. #define __API_APPLICATIONI_IMPL_H
  3. /*<?<autoheader/>*/
  4. #include "api_application.h"
  5. #include "api_applicationx.h"
  6. /*?>*/
  7. /*[interface.header.h]
  8. #include "common/nsGUID.h"
  9. class String;
  10. */
  11. class api_applicationI : public api_applicationX {
  12. public:
  13. NODISPATCH api_applicationI(HINSTANCE instance, const wchar_t *_userPath);
  14. NODISPATCH virtual ~api_applicationI();
  15. DISPATCH(10) const wchar_t *main_getAppName();
  16. DISPATCH(20) const wchar_t *main_getVersionString();
  17. DISPATCH(30) unsigned int main_getBuildNumber();
  18. DISPATCH(40) GUID main_getGUID();
  19. DISPATCH(50) HANDLE main_getMainThreadHandle();
  20. DISPATCH(60) HINSTANCE main_gethInstance();
  21. DISPATCH(70) const wchar_t *main_getCommandLine();
  22. DISPATCH(80) void main_shutdown(int deferred = TRUE);
  23. DISPATCH(90) void main_cancelShutdown();
  24. DISPATCH(100) int main_isShuttingDown();
  25. DISPATCH(110) const wchar_t *path_getAppPath();
  26. DISPATCH(120) const wchar_t *path_getUserSettingsPath();
  27. DISPATCH(130) int app_getInitCount();
  28. DISPATCH(140) int app_messageLoopStep();
  29. NODISPATCH void setHInstance(HINSTANCE instance);
  30. NODISPATCH void setCommandLine(const wchar_t *cmdline);
  31. NODISPATCH void setGUID(GUID g);
  32. protected:
  33. HINSTANCE appInstance;
  34. StringW cmdLine;
  35. StringW userPath;
  36. HANDLE mainthread;
  37. GUID guid;
  38. int shuttingdown;
  39. StringW apppath;
  40. };
  41. #endif // __API_APPLICATIONI_IMPL_H