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.

maindialog.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #ifndef MAINDIALOG_H
  2. #define MAINDIALOG_H
  3. #include <QDialog>
  4. #include "rdpoptions.h"
  5. #include "dialogconnecting.h"
  6. namespace Ui {
  7. class MainDialog;
  8. }
  9. class RDesktopLauncher;
  10. class MainDialog : public QDialog
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit MainDialog(QWidget *parent = 0);
  15. ~MainDialog();
  16. RdpOptions getRdpOptions() const;
  17. public slots:
  18. void setRdpOptions(const RdpOptions& opt);
  19. void loadAll();
  20. private slots:
  21. void on_btnConnect_clicked();
  22. void textChanged(QString);
  23. void computeResolutions();
  24. void on_slidResolution_valueChanged(int value);
  25. void on_btnSaveSession_clicked();
  26. void on_btnSaveAsSession_clicked();
  27. void on_btnOpenSession_clicked();
  28. void on_lineComputer_currentIndexChanged(int index);
  29. void on_btnRemoveSession_clicked();
  30. void onProcessFinished(int status);
  31. void onWindowFound(WId wid);
  32. void clearDialogConnecting();
  33. void clearLauncher();
  34. private:
  35. Ui::MainDialog *ui;
  36. QList<QSize> m_resolutions;
  37. QList<RdpOptions> m_rdpOptions;
  38. RDesktopLauncher* m_launcher;
  39. DialogConnecting* m_dlgConnecting;
  40. };
  41. #endif // MAINDIALOG_H