Index: sources/view/VNetworkModel.h =================================================================== diff -u -re5a802bc26647388cfea4f1d46ae22570ec2dba3 -rea52cee2614f319804690a9b1d5091bed9676753 --- sources/view/VNetworkModel.h (.../VNetworkModel.h) (revision e5a802bc26647388cfea4f1d46ae22570ec2dba3) +++ sources/view/VNetworkModel.h (.../VNetworkModel.h) (revision ea52cee2614f319804690a9b1d5091bed9676753) @@ -5,6 +5,7 @@ #include // Project +#include "main.h" #include "VView.h" #include "Network.h" @@ -25,6 +26,8 @@ { Q_OBJECT + PROPERTY(bool, scanInProgress, false) + public: // Note: VIEW_DEC_CLASS(VNetworkModel) requires QObject as the parent, so it's necessary to define it here // Otherwise a VIEW_DEC_CLASS macro could allow specifying the parent class with QObject as the default @@ -44,11 +47,17 @@ public slots: void doScan(); + void doAddNetwork(const Network &vNetwork); protected: QHash roleNames() const; private: - QList _networks; void initConnections(); + + QList _networks; + +private slots: + void onScanStatusChanged(const bool &vScanning); + }; }