equal
deleted
inserted
replaced
49 |
49 |
50 QT_BEGIN_NAMESPACE |
50 QT_BEGIN_NAMESPACE |
51 |
51 |
52 QStringList QT7ServicePlugin::keys() const |
52 QStringList QT7ServicePlugin::keys() const |
53 { |
53 { |
54 return QStringList() << QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER); |
54 return QStringList() |
|
55 #ifdef QMEDIA_QT7_PLAYER |
|
56 << QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER) |
|
57 #endif |
|
58 ; |
55 } |
59 } |
56 |
60 |
57 QMediaService* QT7ServicePlugin::create(QString const& key) |
61 QMediaService* QT7ServicePlugin::create(QString const& key) |
58 { |
62 { |
59 #ifdef QT_DEBUG_QT7 |
63 #ifdef QT_DEBUG_QT7 |
60 qDebug() << "QT7ServicePlugin::create" << key; |
64 qDebug() << "QT7ServicePlugin::create" << key; |
61 #endif |
65 #endif |
|
66 #ifdef QMEDIA_QT7_PLAYER |
62 if (key == QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER)) |
67 if (key == QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER)) |
63 return new QT7PlayerService; |
68 return new QT7PlayerService; |
64 |
69 #endif |
65 qWarning() << "unsupported key:" << key; |
70 qWarning() << "unsupported key:" << key; |
66 |
71 |
67 return 0; |
72 return 0; |
68 } |
73 } |
69 |
74 |