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.

rdpoptions.h 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #ifndef RDPOPTIONS_H
  2. #define RDPOPTIONS_H
  3. #include <QString>
  4. #include <QSize>
  5. class RdpOptions
  6. {
  7. public:
  8. RdpOptions();
  9. enum Colors
  10. {
  11. HighColor_15 = 15,
  12. HighColor_16 = 16,
  13. TrueColor = 24,
  14. HighestQuality = 32
  15. };
  16. enum Experience
  17. {
  18. Modem,
  19. LowSpeed,
  20. Satellite,
  21. HighSpeed,
  22. WAN,
  23. LAN,
  24. Detect
  25. };
  26. QString host() const;
  27. void setHost(const QString &host);
  28. QString username() const;
  29. void setUsername(const QString &username);
  30. QString password() const;
  31. void setPassword(const QString &password);
  32. QSize resolution() const;
  33. void setResolution(const QSize &resolution);
  34. bool fullscreen() const;
  35. void setFullscreen(bool fullscreen);
  36. Experience experience() const;
  37. void setExperience(const Experience &experience);
  38. bool bitmapCache() const;
  39. void setBitmapCache(bool bitmapCache);
  40. bool metaKeys() const;
  41. void setMetaKeys(bool metaKeys);
  42. bool useShell() const;
  43. void setUseShell(bool useShell);
  44. QString shell() const;
  45. void setShell(const QString &shell);
  46. QString shellWorkingDir() const;
  47. void setShellWorkingDir(const QString &shellWorkingDir);
  48. Colors colors() const;
  49. void setColors(const Colors &colors);
  50. bool useAllMonitors() const;
  51. void setUseAllMonitors(bool useAllMonitors);
  52. bool fullscreenBar() const;
  53. void setFullscreenBar(bool fullscreenBar);
  54. bool autoReconnect() const;
  55. void setAutoReconnect(bool autoReconnect);
  56. QString keymap() const;
  57. void setKeymap(const QString &keymap);
  58. QString windowTitle() const;
  59. void setWindowTitle(const QString &windowTitle);
  60. QString visibleName() const;
  61. private:
  62. QString m_host;
  63. QString m_username;
  64. QString m_password;
  65. bool m_fullscreen;
  66. QSize m_resolution;
  67. bool m_useAllMonitors;
  68. Colors m_colors;
  69. bool m_fullscreenBar;
  70. bool m_metaKeys;
  71. bool m_useShell;
  72. QString m_shell;
  73. QString m_shellWorkingDir;
  74. Experience m_experience;
  75. bool m_bitmapCache;
  76. bool m_autoReconnect;
  77. QString m_keymap;
  78. QString m_windowTitle;
  79. };
  80. #endif // RDPOPTIONS_H