qmlhandler.h 834 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef QMLHANDLER_H
  2. #define QMLHANDLER_H
  3. #include <QDebug>
  4. #include <QObject>
  5. #include <QUrl>
  6. class QMLHandler : public QObject {
  7. Q_OBJECT
  8. public:
  9. explicit QMLHandler(QObject *parent = 0);
  10. signals:
  11. // Sending
  12. void sendingSetFileUrlText(QString signalText);
  13. // Receiving
  14. // Messages
  15. void message(QString msg);
  16. // Settings
  17. void settingsOpenSwitchServerPopup();
  18. // Ip Popup
  19. // Switch Popup
  20. // Footer
  21. void log(QString logText);
  22. public slots:
  23. // Sending
  24. void onSendingSelectFileButton(QUrl url);
  25. void onSendingSendFileButton();
  26. // Receiving
  27. // Messages
  28. void onMessagesSendButton(QString msg);
  29. // Settings
  30. void onSettingsSwitchServerButton();
  31. // Ip Popup
  32. void onIpPopupEnterIp(QString ip);
  33. // Switch Popup
  34. void onSwitchPopupEnterIp(QString ip);
  35. };
  36. #endif // QMLHANDLER_H