static void startRipper(void) { #if defined HAVE_CDIO if (!checkStorageGroup()) return; gMusicData->loadMusic(); MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); Ripper *rip = new Ripper(mainStack, chooseCD()); if (rip->Create()) { mainStack->AddScreen(rip); QObject::connect(rip, SIGNAL(ripFinished()), gMusicData, SLOT(reloadMusic()), Qt::QueuedConnection); } else delete rip; #else ShowOkPopup(qApp->translate("(MythMusicMain)", "MythMusic hasn't been built with libcdio " "support so ripping CDs is not possible")); #endif }
static void startImport(void) { loadMusic(); MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); ImportMusicDialog *import = new ImportMusicDialog(mainStack); if (import->Create()) { mainStack->AddScreen(import); QObject::connect(import, SIGNAL(importFinished()), gMusicData, SLOT(reloadMusic()), Qt::QueuedConnection); } else delete import; }
static void runRipCD(void) { loadMusic(); #ifndef USING_MINGW MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); Ripper *rip = new Ripper(mainStack, chooseCD()); if (rip->Create()) mainStack->AddScreen(rip); else delete rip; QObject::connect(rip, SIGNAL(ripFinished()), gMusicData, SLOT(reloadMusic()), Qt::QueuedConnection); #endif }
static void startRipper(void) { loadMusic(); #if defined HAVE_CDIO MythScreenStack *mainStack = GetMythMainWindow()->GetMainStack(); Ripper *rip = new Ripper(mainStack, chooseCD()); if (rip->Create()) { mainStack->AddScreen(rip); QObject::connect(rip, SIGNAL(ripFinished()), gMusicData, SLOT(reloadMusic()), Qt::QueuedConnection); } else delete rip; #endif }