ApplicationLogic.h 658 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef APPLICATIONLOGIC_H
  2. #define APPLICATIONLOGIC_H
  3. #include <QObject>
  4. class NetworkModel;
  5. class QNetworkSession;
  6. class QAbstractListModel;
  7. class ApplicationLogic : public QObject
  8. {
  9. Q_OBJECT
  10. Q_PROPERTY (QObject* networkModel READ networkModel CONSTANT)
  11. Q_PROPERTY (QString ip READ ip NOTIFY ipChanged)
  12. public:
  13. explicit ApplicationLogic(QObject *parent = 0);
  14. ~ApplicationLogic();
  15. QObject* networkModel() const;
  16. QString ip() const;
  17. public slots:
  18. void setNetworkConfigurationRow(int row);
  19. signals:
  20. void ipChanged();
  21. private:
  22. NetworkModel* m_networkModel;
  23. QNetworkSession* m_session;
  24. };
  25. #endif // APPLICATIONLOGIC_H