Convert devicemanager to QAbstractItemModel

This commit is contained in:
Jonas Kvinge
2018-12-29 02:57:22 +01:00
parent fc9f93791d
commit 404283be19
35 changed files with 574 additions and 379 deletions

View File

@@ -51,7 +51,7 @@ GPodDevice::GPodDevice(const QUrl &url, DeviceLister *lister, const QString &uni
loader_(nullptr),
db_(nullptr) {}
void GPodDevice::Init() {
bool GPodDevice::Init() {
InitBackendDirectory(url_.path(), first_time_);
model_->Init();
@@ -65,6 +65,8 @@ void GPodDevice::Init() {
connect(loader_thread_, SIGNAL(started()), loader_, SLOT(LoadDatabase()));
loader_thread_->start();
return true;
}
GPodDevice::~GPodDevice() {}