KNMusicPlugin::KNMusicPlugin(QObject *parent) : KNAbstractMusicPlugin(parent) { //Initial infrastructure. initialInfrastructure(); //Load detail info first. loadDetailInfo(new KNMusicDetailDialog); //Initial parser. initialParser(); //Initial menus. initialSoloMenu(new KNMusicSoloMenu); initialMultiMenu(new KNMusicMultiMenu); //Load plugins. loadSearch(new KNMusicSearch); #ifdef ENABLE_LIBBASS loadBackend(new KNMusicBackendBass); #endif #ifdef ENABLE_LIBVLC loadBackend(new KNMusicBackendVLC); #endif loadDetailTooptip(new KNMusicDetailTooltip); loadNowPlaying(new KNMusicNowPlaying); loadHeaderPlayer(new KNMusicHeaderPlayer); loadHeaderLyrics(new KNMusicHeaderLyrics); loadLibrary(new KNMusicLibrary); loadPlaylistManager(new KNMusicPlaylistManager); //Connect retranslate request. connect(KNLocaleManager::instance(), &KNLocaleManager::requireRetranslate, this, &KNMusicPlugin::retranslate); }
Solid::Control::NetworkManagerNm09Private::NetworkManagerNm09Private() : m_invalidDevice(0) { loadBackend("Network Management", "SolidNetworkManager", "Solid::Control::Ifaces::NetworkManagerNm09"); if (managerBackend()!=0) { connect(managerBackend(), SIGNAL(networkInterfaceAdded(QString)), this, SLOT(_k_networkInterfaceAdded(QString))); connect(managerBackend(), SIGNAL(networkInterfaceRemoved(QString)), this, SLOT(_k_networkInterfaceRemoved(QString))); connect(managerBackend(), SIGNAL(statusChanged(Solid::Networking::Status)), this, SIGNAL(statusChanged(Solid::Networking::Status))); connect(managerBackend(), SIGNAL(wirelessEnabledChanged(bool)), this, SIGNAL(wirelessEnabledChanged(bool))); connect(managerBackend(), SIGNAL(wirelessHardwareEnabledChanged(bool)), this, SIGNAL(wirelessHardwareEnabledChanged(bool))); connect(managerBackend(), SIGNAL(wwanEnabledChanged(bool)), this, SIGNAL(wwanEnabledChanged(bool))); connect(managerBackend(), SIGNAL(wwanHardwareEnabledChanged(bool)), this, SIGNAL(wwanHardwareEnabledChanged(bool))); connect(managerBackend(), SIGNAL(networkingEnabledChanged(bool)), this, SIGNAL(networkingEnabledChanged(bool))); connect(managerBackend(), SIGNAL(activeConnectionsChanged()), this, SIGNAL(activeConnectionsChanged())); }
void CameraWrapperFactory::initWrapperFactory() { if(gCameraWrapperFactory.initialized) return; int res = loadBackend((const hw_module_t **)&wrappedModule); if(!(res < 0)) { gCameraWrapperFactory.initialized = true; mNumberOfCameras = wrappedModule->get_number_of_cameras(); } else ALOGE("%s: Failed to load backend camera module ", __func__); }