void YandexMusicPlugin::getTunes(QompPluginAction *act) { YandexMusicController* ctrl = new YandexMusicController(this); connect(ctrl, &YandexMusicController::tunesReady, act, &QompPluginAction::setTunesReady); ctrl->getTunes(); }
QList<Tune*> YandexMusicPlugin::getTunes() { YandexMusicController ctrl; return ctrl.getTunes(); }