MPTrackUtilWine.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * MPTrackUtilWine.h
  3. * -----------------
  4. * Purpose: Wine utility functions.
  5. * Notes : (currently none)
  6. * Authors: OpenMPT Devs
  7. * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
  8. */
  9. #pragma once
  10. #include "openmpt/all/BuildSettings.hpp"
  11. #include "../misc/mptWine.h"
  12. OPENMPT_NAMESPACE_BEGIN
  13. namespace Util
  14. {
  15. namespace Wine
  16. {
  17. mpt::Wine::ExecResult ExecutePosixShellScript(mpt::Wine::Context & wine, std::string script, FlagSet<mpt::Wine::ExecFlags> flags, std::map<std::string, std::vector<char> > filetree, std::string title, std::string status);
  18. class Dialog
  19. {
  20. private:
  21. bool m_Terminal;
  22. std::string m_Title;
  23. private:
  24. std::string DialogVar() const;
  25. public:
  26. Dialog(std::string title, bool terminal);
  27. std::string Title() const;
  28. std::string Detect() const;
  29. std::string Status(std::string text) const;
  30. std::string MessageBox(std::string text) const;
  31. std::string YesNo(std::string text) const;
  32. std::string TextBox(std::string filename) const;
  33. std::string Progress(std::string text) const;
  34. };
  35. } // namespace Wine
  36. } // namespace Util
  37. OPENMPT_NAMESPACE_END