RadioManager::RadioManager (QObject *parent) : QObject (parent) , StationsModel_ (new QStandardItemModel (this)) , AutoRefreshTimer_ (new QTimer (this)) { XmlSettingsManager::Instance ().RegisterObject ({ "AutoRefreshRadios", "RadioRefreshTimeout" }, this, "handleRefreshSettingsChanged"); handleRefreshSettingsChanged (); connect (AutoRefreshTimer_, SIGNAL (timeout ()), this, SLOT (refreshAll ())); }
RadioManager::RadioManager (QObject *parent) : QObject { parent } , MergeModel_ { new RadioModel { { "Station" }, this } } , PilesModel_ { new QStandardItemModel { this } } , AutoRefreshTimer_ { new QTimer { this } } { XmlSettingsManager::Instance ().RegisterObject ({ "AutoRefreshRadios", "RadioRefreshTimeout" }, this, "handleRefreshSettingsChanged"); handleRefreshSettingsChanged (); connect (AutoRefreshTimer_, SIGNAL (timeout ()), this, SLOT (refreshAll ())); MergeModel_->AddModel (PilesModel_); }