QXARadioSession::QXARadioSession(QObject *parent) :QObject(parent) { QT_TRACE_FUNCTION_ENTRY; m_impl = new XARadioSessionImpl(*this); if (!m_impl) { QT_TRACE1("RadioSession::RadioSession(): ERROR creating RadioSessionImpl..."); return; } if (m_impl->PostConstruct() != QRadioTuner::NoError) { QT_TRACE1("RadioSession::RadioSession(): ERROR from RadioSessionImpl::PostContstruct..."); delete m_impl; m_impl = NULL; } QT_TRACE_FUNCTION_EXIT; }
QMediaService* QXAMediaServiceProviderPlugin::create(QString const& key) { QT_TRACE_FUNCTION_ENTRY; QMediaService* service = NULL; if (key == QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER) ) { service = new QXAPlayMediaService; QT_TRACE1("Created QXAPlayMediaService"); } else if (key == QLatin1String(Q_MEDIASERVICE_AUDIOSOURCE)) { service = new QXARecodMediaService; QT_TRACE1("Created QXARecodMediaService"); } else if (key == QLatin1String(Q_MEDIASERVICE_RADIO) ) { service = new QXARadioMediaService; QT_TRACE1("Created QXARadioMediaService"); } else { QT_TRACE2("unsupported key:", key); } QT_TRACE_FUNCTION_EXIT; return service; }