1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef APPLICATIONLOGIC_H
- #define APPLICATIONLOGIC_H
- #include <QObject>
- class NetworkModel;
- class QNetworkSession;
- class QAbstractListModel;
- class ApplicationLogic : public QObject
- {
- Q_OBJECT
- Q_PROPERTY (QObject* networkModel READ networkModel CONSTANT)
- Q_PROPERTY (QString ip READ ip NOTIFY ipChanged)
- public:
- explicit ApplicationLogic(QObject *parent = 0);
- ~ApplicationLogic();
- QObject* networkModel() const;
- QString ip() const;
- public slots:
- void setNetworkConfigurationRow(int row);
- signals:
- void ipChanged();
- private:
- NetworkModel* m_networkModel;
- QNetworkSession* m_session;
- };
- #endif // APPLICATIONLOGIC_H
|