equal
deleted
inserted
replaced
68 } |
68 } |
69 bool isAvailable() const |
69 bool isAvailable() const |
70 { |
70 { |
71 return true; |
71 return true; |
72 } |
72 } |
73 QtMediaServices::AvailabilityError availabilityError() const |
73 QtMultimedia::AvailabilityError availabilityError() const |
74 { |
74 { |
75 return QtMediaServices::NoError; |
75 return QtMultimedia::NoError; |
76 } |
76 } |
77 |
77 |
78 QRadioTuner::Band band() const |
78 QRadioTuner::Band band() const |
79 { |
79 { |
80 return m_band; |
80 return m_band; |
229 public: |
229 public: |
230 MockService(QObject *parent, QMediaControl *control): |
230 MockService(QObject *parent, QMediaControl *control): |
231 QMediaService(parent), |
231 QMediaService(parent), |
232 mockControl(control) {} |
232 mockControl(control) {} |
233 |
233 |
234 QMediaControl* control(const char *) const |
234 QMediaControl* requestControl(const char *) |
235 { |
235 { |
236 return mockControl; |
236 return mockControl; |
237 } |
237 } |
|
238 |
|
239 void releaseControl(QMediaControl*) {} |
238 |
240 |
239 QMediaControl *mockControl; |
241 QMediaControl *mockControl; |
240 }; |
242 }; |
241 |
243 |
242 class MockProvider : public QMediaServiceProvider |
244 class MockProvider : public QMediaServiceProvider |