MythTV  master
playbackboxhelper.cpp
Go to the documentation of this file.
1 // C++
2 #include <algorithm>
3 
4 // Qt
5 #include <QCoreApplication>
6 #include <QDateTime>
7 #include <QDir>
8 #include <QFileInfo>
9 #include <QHash>
10 #include <QMap>
11 #include <QStringList>
12 
13 // MythTV
16 #include "libmythbase/mythdirs.h"
17 #include "libmythbase/mythevent.h"
19 #include "libmythbase/mythrandom.h"
21 #include "libmythbase/remoteutil.h"
25 #include "libmythtv/tvremoteutil.h"
26 
27 // MythFrontend
28 #include "playbackboxhelper.h"
29 
30 #define LOC QString("PlaybackBoxHelper: ")
31 #define LOC_WARN QString("PlaybackBoxHelper Warning: ")
32 #define LOC_ERR QString("PlaybackBoxHelper Error: ")
33 
34 class PBHEventHandler : public QObject
35 {
36  public:
38  m_pbh(pbh)
39  {
41  }
42  ~PBHEventHandler() override
43  {
45  killTimer(m_freeSpaceTimerId);
47  killTimer(m_checkAvailabilityTimerId);
48  }
49 
50  bool event(QEvent* /*e*/) override; // QObject
51  void UpdateFreeSpaceEvent(void);
52  AvailableStatusType CheckAvailability(const QStringList &slist);
54  int m_freeSpaceTimerId { 0 };
56  static constexpr std::chrono::milliseconds kUpdateFreeSpaceInterval { 15s };
57  QMap<QString, QStringList> m_fileListCache;
58  QHash<uint, QStringList> m_checkAvailability;
59 };
60 
62 {
63  QTime tm = QTime::currentTime();
64 
65  QStringList::const_iterator it2 = slist.begin();
66  ProgramInfo evinfo(it2, slist.end());
67  QSet<CheckAvailabilityType> cats;
68  for (; it2 != slist.end(); ++it2)
69  cats.insert((CheckAvailabilityType)(*it2).toUInt());
70 
71  {
72  QMutexLocker locker(&m_pbh.m_lock);
73  QHash<uint, QStringList>::iterator cit =
74  m_checkAvailability.find(evinfo.GetRecordingID());
75  if (cit != m_checkAvailability.end())
76  m_checkAvailability.erase(cit);
78  {
79  killTimer(m_checkAvailabilityTimerId);
81  }
82  }
83 
84  if (cats.empty())
85  return asFileNotFound;
86 
87  AvailableStatusType availableStatus = asAvailable;
88  if (!evinfo.HasPathname() && !evinfo.GetChanID())
89  availableStatus = asFileNotFound;
90  else
91  {
92  // Note IsFileReadable() implicitly calls GetPlaybackURL
93  // when necessary, we rely on this.
94  if (!evinfo.IsFileReadable())
95  {
96  LOG(VB_GENERAL, LOG_ERR, LOC +
97  QString("CHECK_AVAILABILITY '%1' file not found")
98  .arg(evinfo.GetPathname()));
99  availableStatus = asFileNotFound;
100  }
101  else if (!evinfo.GetFilesize())
102  {
103  // This query should be unnecessary if the ProgramInfo Updater is working
104 // evinfo.SetFilesize(evinfo.QueryFilesize());
105 // if (!evinfo.GetFilesize())
106 // {
107  availableStatus =
110 // }
111  }
112  }
113 
114  QStringList list;
115  list.push_back(QString::number(evinfo.GetRecordingID()));
116  list.push_back(evinfo.GetPathname());
117  auto *e0 = new MythEvent("SET_PLAYBACK_URL", list);
118  QCoreApplication::postEvent(m_pbh.m_listener, e0);
119 
120  list.clear();
121  list.push_back(QString::number(evinfo.GetRecordingID()));
122  list.push_back(QString::number((int)*cats.begin()));
123  list.push_back(QString::number((int)availableStatus));
124  list.push_back(QString::number(evinfo.GetFilesize()));
125  list.push_back(QString::number(tm.hour()));
126  list.push_back(QString::number(tm.minute()));
127  list.push_back(QString::number(tm.second()));
128  list.push_back(QString::number(tm.msec()));
129 
130  for (auto type : qAsConst(cats))
131  {
132  if (type == kCheckForCache && cats.size() > 1)
133  continue;
134  list[1] = QString::number((int)type);
135  auto *e = new MythEvent("AVAILABILITY", list);
136  QCoreApplication::postEvent(m_pbh.m_listener, e);
137  }
138 
139  return availableStatus;
140 }
141 
142 bool PBHEventHandler::event(QEvent *e)
143 {
144  if (e->type() == QEvent::Timer)
145  {
146  auto *te = (QTimerEvent*)e;
147  const int timer_id = te->timerId();
148  if (timer_id == m_freeSpaceTimerId)
150  if (timer_id == m_checkAvailabilityTimerId)
151  {
152  QStringList slist;
153  {
154  QMutexLocker locker(&m_pbh.m_lock);
155  QHash<uint, QStringList>::iterator it =
156  m_checkAvailability.begin();
157  if (it != m_checkAvailability.end())
158  slist = *it;
159  }
160 
161  if (slist.size() >= 1 + NUMPROGRAMLINES)
162  CheckAvailability(slist);
163  }
164  return true;
165  }
166  if (e->type() == MythEvent::MythEventMessage)
167  {
168  auto *me = dynamic_cast<MythEvent*>(e);
169  if (me == nullptr)
170  return QObject::event(e);
171 
172  if (me->Message() == "UPDATE_FREE_SPACE")
173  {
175  return true;
176  }
177  if (me->Message() == "STOP_RECORDING")
178  {
179  ProgramInfo pginfo(me->ExtraDataList());
180  if (pginfo.GetChanID())
181  RemoteStopRecording(&pginfo);
182  return true;
183  }
184  if (me->Message() == "DELETE_RECORDINGS")
185  {
186  QStringList successes;
187  QStringList failures;
188  QStringList list = me->ExtraDataList();
189  while (list.size() >= 3)
190  {
191  uint recordingID = list[0].toUInt();
192  bool forceDelete = list[1].toUInt() != 0U;
193  bool forgetHistory = list[2].toUInt() != 0U;
194 
195  bool ok = RemoteDeleteRecording( recordingID, forceDelete,
196  forgetHistory);
197 
198  QStringList &res = (ok) ? successes : failures;
199  for (uint i = 0; i < 3; i++)
200  {
201  res.push_back(list.front());
202  list.pop_front();
203  }
204  }
205  if (!successes.empty())
206  {
207  auto *oe = new MythEvent("DELETE_SUCCESSES", successes);
208  QCoreApplication::postEvent(m_pbh.m_listener, oe);
209  }
210  if (!failures.empty())
211  {
212  auto *oe = new MythEvent("DELETE_FAILURES", failures);
213  QCoreApplication::postEvent(m_pbh.m_listener, oe);
214  }
215 
216  return true;
217  }
218  if (me->Message() == "UNDELETE_RECORDINGS")
219  {
220  QStringList successes;
221  QStringList failures;
222  QStringList list = me->ExtraDataList();
223  while (!list.empty())
224  {
225  uint recordingID = list[0].toUInt();
226 
227  bool ok = RemoteUndeleteRecording(recordingID);
228 
229  QStringList &res = (ok) ? successes : failures;
230 
231  res.push_back(QString::number(recordingID));
232  list.pop_front();
233  }
234  if (!successes.empty())
235  {
236  auto *oe = new MythEvent("UNDELETE_SUCCESSES", successes);
237  QCoreApplication::postEvent(m_pbh.m_listener, oe);
238  }
239  if (!failures.empty())
240  {
241  auto *oe = new MythEvent("UNDELETE_FAILURES", failures);
242  QCoreApplication::postEvent(m_pbh.m_listener, oe);
243  }
244 
245  return true;
246  }
247  if (me->Message() == "GET_PREVIEW")
248  {
249  const QString& token = me->ExtraData(0);
250  bool check_avail = (bool) me->ExtraData(1).toInt();
251  QStringList list = me->ExtraDataList();
252  QStringList::const_iterator it = list.cbegin()+2;
253  ProgramInfo evinfo(it, list.cend());
254  if (!evinfo.HasPathname())
255  return true;
256 
257  list.clear();
258  evinfo.ToStringList(list);
259  list += QString::number(kCheckForCache);
260  if (check_avail && (asAvailable != CheckAvailability(list)))
261  return true;
262  if (asAvailable != evinfo.GetAvailableStatus())
263  return true;
264 
265  // Now we can actually request the preview...
267 
268  return true;
269  }
270  if (me->Message() == "CHECK_AVAILABILITY")
271  {
272  if (me->ExtraData(0) != QString::number(kCheckForCache))
273  {
275  killTimer(m_checkAvailabilityTimerId);
276  m_checkAvailabilityTimerId = startTimer(0ms);
277  }
278  else if (!m_checkAvailabilityTimerId)
279  m_checkAvailabilityTimerId = startTimer(50ms);
280  }
281  else if (me->Message() == "LOCATE_ARTWORK")
282  {
283  const QString& inetref = me->ExtraData(0);
284  uint season = me->ExtraData(1).toUInt();
285  const auto type = (VideoArtworkType)me->ExtraData(2).toInt();
286 #if 0 /* const ref for an unused variable doesn't make much sense either */
287  uint recordingID = me->ExtraData(3).toUInt();
288  const QString &group = me->ExtraData(4);
289 #endif
290  const QString cacheKey = QString("%1:%2:%3")
291  .arg((int)type).arg(inetref).arg(season);
292 
293  ArtworkMap map = GetArtwork(inetref, season);
294 
295  ArtworkInfo info = map.value(type);
296 
297  QString foundFile;
298 
299  if (!info.url.isEmpty())
300  {
301  foundFile = info.url;
302  QMutexLocker locker(&m_pbh.m_lock);
303  m_pbh.m_artworkCache[cacheKey] = foundFile;
304  }
305 
306  if (!foundFile.isEmpty())
307  {
308  QStringList list = me->ExtraDataList();
309  list.push_back(foundFile);
310  auto *oe = new MythEvent("FOUND_ARTWORK", list);
311  QCoreApplication::postEvent(m_pbh.m_listener, oe);
312  }
313 
314  return true;
315  }
316  }
317 
318  return QObject::event(e);
319 }
320 
322 {
323  if (m_freeSpaceTimerId)
324  killTimer(m_freeSpaceTimerId);
327 }
328 
330 
332  MThread("PlaybackBoxHelper"),
333  m_listener(listener), m_eventHandler(new PBHEventHandler(*this))
334 {
335  start();
336  m_eventHandler->moveToThread(qthread());
337  // Prime the pump so the disk free display starts updating
339 }
340 
342 {
343  // delete the event handler
344  m_eventHandler->deleteLater();
345  m_eventHandler = nullptr;
346 
347  MThread::exit();
348  wait();
349 }
350 
352 {
353  QCoreApplication::postEvent(
354  m_eventHandler, new MythEvent("UPDATE_FREE_SPACE"));
355 }
356 
358 {
359  QStringList list;
360  pginfo.ToStringList(list);
361  auto *e = new MythEvent("STOP_RECORDING", list);
362  QCoreApplication::postEvent(m_eventHandler, e);
363 }
364 
365 void PlaybackBoxHelper::DeleteRecording( uint recordingID, bool forceDelete,
366  bool forgetHistory)
367 {
368  QStringList list;
369  list.push_back(QString::number(recordingID));
370  list.push_back((forceDelete) ? "1" : "0");
371  list.push_back((forgetHistory) ? "1" : "0");
372  DeleteRecordings(list);
373 }
374 
375 void PlaybackBoxHelper::DeleteRecordings(const QStringList &list)
376 {
377  auto *e = new MythEvent("DELETE_RECORDINGS", list);
378  QCoreApplication::postEvent(m_eventHandler, e);
379 }
380 
382 {
383  QStringList list;
384  list.push_back(QString::number(recordingID));
385  auto *e = new MythEvent("UNDELETE_RECORDINGS", list);
386  QCoreApplication::postEvent(m_eventHandler, e);
387 }
388 
390 {
391  QList<FileSystemInfo> fsInfos = FileSystemInfo::RemoteGetInfo();
392 
393  QMutexLocker locker(&m_lock);
394  for (const auto& fsInfo : qAsConst(fsInfos))
395  {
396  if (fsInfo.getPath() == "TotalDiskSpace")
397  {
398  m_freeSpaceTotalMB = (uint64_t) (fsInfo.getTotalSpace() >> 10);
399  m_freeSpaceUsedMB = (uint64_t) (fsInfo.getUsedSpace() >> 10);
400  }
401  }
402  auto *e = new MythEvent("UPDATE_USAGE_UI");
403  QCoreApplication::postEvent(m_listener, e);
404 }
405 
407 {
408  QMutexLocker locker(&m_lock);
409  return m_freeSpaceTotalMB;
410 }
411 
413 {
414  QMutexLocker locker(&m_lock);
415  return m_freeSpaceUsedMB;
416 }
417 
419  const ProgramInfo &pginfo, CheckAvailabilityType cat)
420 {
421  QString catstr = QString::number((int)cat);
422  QMutexLocker locker(&m_lock);
423  QHash<uint, QStringList>::iterator it =
425  if (it == m_eventHandler->m_checkAvailability.end())
426  {
427  QStringList list;
428  pginfo.ToStringList(list);
429  list += catstr;
431  }
432  else
433  {
434  (*it).push_back(catstr);
435  }
436  auto *e = new MythEvent("CHECK_AVAILABILITY", QStringList(catstr));
437  QCoreApplication::postEvent(m_eventHandler, e);
438 }
439 
441  const QString &inetref, uint season,
442  const VideoArtworkType type,
443  const ProgramInfo *pginfo,
444  const QString &groupname)
445 {
446  QString cacheKey = QString("%1:%2:%3")
447  .arg((int)type).arg(inetref).arg(season);
448 
449  QMutexLocker locker(&m_lock);
450 
451  InfoMap::const_iterator it =
452  m_artworkCache.constFind(cacheKey);
453 
454  if (it != m_artworkCache.constEnd())
455  return *it;
456 
457  QStringList list(inetref);
458  list.push_back(QString::number(season));
459  list.push_back(QString::number(type));
460  list.push_back((pginfo)?QString::number(pginfo->GetRecordingID()):"");
461  list.push_back(groupname);
462  auto *e = new MythEvent("LOCATE_ARTWORK", list);
463  QCoreApplication::postEvent(m_eventHandler, e);
464 
465  return {};
466 }
467 
469  const ProgramInfo &pginfo, bool check_availability)
470 {
471  if (!check_availability && pginfo.GetAvailableStatus() != asAvailable)
472  return {};
473 
474  if (pginfo.GetAvailableStatus() == asPendingDelete)
475  return {};
476 
477  QString token = QString("%1:%2")
478  .arg(pginfo.MakeUniqueKey()).arg(MythRandom());
479 
480  QStringList extra(token);
481  extra.push_back(check_availability?"1":"0");
482  pginfo.ToStringList(extra);
483  auto *e = new MythEvent("GET_PREVIEW", extra);
484  QCoreApplication::postEvent(m_eventHandler, e);
485 
486  return token;
487 }
PlaybackBoxHelper::DeleteRecording
void DeleteRecording(uint recordingID, bool forceDelete, bool forgetHistory)
Definition: playbackboxhelper.cpp:365
filesysteminfo.h
PlaybackBoxHelper::m_freeSpaceUsedMB
uint64_t m_freeSpaceUsedMB
Definition: playbackboxhelper.h:64
mythevent.h
bool
bool
Definition: pxsup2dast.c:30
PBHEventHandler::UpdateFreeSpaceEvent
void UpdateFreeSpaceEvent(void)
Definition: playbackboxhelper.cpp:321
VideoArtworkType
VideoArtworkType
Definition: metadataimagehelper.h:10
ProgramInfo::MakeUniqueKey
QString MakeUniqueKey(void) const
Creates a unique string that can be used to identify an existing recording.
Definition: programinfo.h:339
kCheckForCache
@ kCheckForCache
Definition: playbackboxhelper.h:23
MythEvent::MythEventMessage
static Type MythEventMessage
Definition: mythevent.h:79
MThread::start
void start(QThread::Priority p=QThread::InheritPriority)
Tell MThread to start running the thread in the near future.
Definition: mthread.cpp:283
ProgramInfo::GetFilesize
virtual uint64_t GetFilesize(void) const
Definition: programinfo.cpp:6345
PBHEventHandler::~PBHEventHandler
~PBHEventHandler() override
Definition: playbackboxhelper.cpp:42
metadataimagehelper.h
asFileNotFound
@ asFileNotFound
Definition: programtypes.h:181
PlaybackBoxHelper::m_eventHandler
PBHEventHandler * m_eventHandler
Definition: playbackboxhelper.h:59
mythrandom.h
PlaybackBoxHelper::GetFreeSpaceTotalMB
uint64_t GetFreeSpaceTotalMB(void) const
Definition: playbackboxhelper.cpp:406
PBHEventHandler::kUpdateFreeSpaceInterval
static constexpr std::chrono::milliseconds kUpdateFreeSpaceInterval
Definition: playbackboxhelper.cpp:56
asAvailable
@ asAvailable
Definition: programtypes.h:178
MThread::wait
bool wait(std::chrono::milliseconds time=std::chrono::milliseconds::max())
Wait for the MThread to exit, with a maximum timeout.
Definition: mthread.cpp:300
ProgramInfo::GetRecordingID
uint GetRecordingID(void) const
Definition: programinfo.h:446
hardwareprofile.devicelist.cat
def cat(file_name)
Definition: devicelist.py:95
MythEvent
This class is used as a container for messages.
Definition: mythevent.h:16
PlaybackBoxHelper
Definition: playbackboxhelper.h:29
CheckAvailabilityType
CheckAvailabilityType
Definition: playbackboxhelper.h:22
GetArtwork
ArtworkMap GetArtwork(const QString &inetref, uint season, bool strict)
Definition: metadataimagehelper.cpp:23
PlaybackBoxHelper::m_freeSpaceTotalMB
uint64_t m_freeSpaceTotalMB
Definition: playbackboxhelper.h:63
RemoteUndeleteRecording
bool RemoteUndeleteRecording(uint recordingID)
Definition: remoteutil.cpp:142
AvailableStatusType
AvailableStatusType
Definition: programtypes.h:177
LOG
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:39
NUMPROGRAMLINES
static constexpr int8_t NUMPROGRAMLINES
Definition: programinfo.h:28
mythdirs.h
playbackboxhelper.h
PBHEventHandler::m_fileListCache
QMap< QString, QStringList > m_fileListCache
Definition: playbackboxhelper.cpp:57
remoteutil.h
PlaybackBoxHelper::UndeleteRecording
void UndeleteRecording(uint recordingID)
Definition: playbackboxhelper.cpp:381
StorageGroup::ClearGroupToUseCache
static void ClearGroupToUseCache(void)
Definition: storagegroup.cpp:860
ProgramInfo::GetPathname
QString GetPathname(void) const
Definition: programinfo.h:343
programinfo.h
asPendingDelete
@ asPendingDelete
Definition: programtypes.h:180
mythlogging.h
ProgramInfo::GetRecordingStatus
RecStatus::Type GetRecordingStatus(void) const
Definition: programinfo.h:447
FileSystemInfo::RemoteGetInfo
static QList< FileSystemInfo > RemoteGetInfo(MythSocket *sock=nullptr)
Definition: filesysteminfo.cpp:137
RemoteStopRecording
bool RemoteStopRecording(uint inputid)
Definition: tvremoteutil.cpp:98
ArtworkInfo
Definition: metadataimagehelper.h:21
PlaybackBoxHelper::GetPreviewImage
QString GetPreviewImage(const ProgramInfo &pginfo, bool check_availability=true)
Definition: playbackboxhelper.cpp:468
LOC
#define LOC
Definition: playbackboxhelper.cpp:30
PlaybackBoxHelper::m_lock
QMutex m_lock
Definition: playbackboxhelper.h:60
PlaybackBoxHelper::DeleteRecordings
void DeleteRecordings(const QStringList &list)
Definition: playbackboxhelper.cpp:375
MThread::qthread
QThread * qthread(void)
Returns the thread, this will always return the same pointer no matter how often you restart the thre...
Definition: mthread.cpp:233
asZeroByte
@ asZeroByte
Definition: programtypes.h:182
PBHEventHandler::m_checkAvailabilityTimerId
int m_checkAvailabilityTimerId
Definition: playbackboxhelper.cpp:55
storagegroup.h
uint
unsigned int uint
Definition: compat.h:79
PlaybackBoxHelper::PlaybackBoxHelper
PlaybackBoxHelper(QObject *listener)
Definition: playbackboxhelper.cpp:331
PlaybackBoxHelper::~PlaybackBoxHelper
~PlaybackBoxHelper(void) override
Definition: playbackboxhelper.cpp:341
tvremoteutil.h
PlaybackBoxHelper::m_artworkCache
InfoMap m_artworkCache
Definition: playbackboxhelper.h:67
PBHEventHandler::m_pbh
PlaybackBoxHelper & m_pbh
Definition: playbackboxhelper.cpp:53
ProgramInfo::GetChanID
uint GetChanID(void) const
This is the unique key used in the database to locate tuning information.
Definition: programinfo.h:372
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:67
PBHEventHandler::PBHEventHandler
PBHEventHandler(PlaybackBoxHelper &pbh)
Definition: playbackboxhelper.cpp:37
RecStatus::Recording
@ Recording
Definition: recordingstatus.h:30
ProgramInfo::ToStringList
void ToStringList(QStringList &list) const
Serializes ProgramInfo into a QStringList which can be passed over a socket.
Definition: programinfo.cpp:1267
mythcorecontext.h
ProgramInfo::IsFileReadable
bool IsFileReadable(void)
Attempts to ascertain if the main file for this ProgramInfo is readable.
Definition: programinfo.cpp:4948
PreviewGeneratorQueue::GetPreviewImage
static void GetPreviewImage(const ProgramInfo &pginfo, const QString &token)
Submit a request for the generation of a preview image.
Definition: previewgeneratorqueue.h:89
PBHEventHandler
Definition: playbackboxhelper.cpp:34
PBHEventHandler::event
bool event(QEvent *) override
Definition: playbackboxhelper.cpp:142
MThread
This is a wrapper around QThread that does several additional things.
Definition: mthread.h:48
MThread::exit
void exit(int retcode=0)
Use this to exit from the thread if you are using a Qt event loop.
Definition: mthread.cpp:278
previewgeneratorqueue.h
PlaybackBoxHelper::UpdateFreeSpace
void UpdateFreeSpace(void)
Definition: playbackboxhelper.cpp:389
ArtworkMap
QMultiMap< VideoArtworkType, ArtworkInfo > ArtworkMap
Definition: metadataimagehelper.h:31
PlaybackBoxHelper::StopRecording
void StopRecording(const ProgramInfo &pginfo)
Definition: playbackboxhelper.cpp:357
PlaybackBoxHelper::LocateArtwork
QString LocateArtwork(const QString &inetref, uint season, VideoArtworkType type, const ProgramInfo *pginfo, const QString &groupname=nullptr)
Definition: playbackboxhelper.cpp:440
PBHEventHandler::m_checkAvailability
QHash< uint, QStringList > m_checkAvailability
Definition: playbackboxhelper.cpp:58
PlaybackBoxHelper::GetFreeSpaceUsedMB
uint64_t GetFreeSpaceUsedMB(void) const
Definition: playbackboxhelper.cpp:412
PBHEventHandler::CheckAvailability
AvailableStatusType CheckAvailability(const QStringList &slist)
Definition: playbackboxhelper.cpp:61
ProgramInfo::GetAvailableStatus
AvailableStatusType GetAvailableStatus(void) const
Definition: programinfo.h:842
RemoteDeleteRecording
bool RemoteDeleteRecording(uint recordingID, bool forceMetadataDelete, bool forgetHistory)
Definition: remoteutil.cpp:113
PlaybackBoxHelper::m_listener
QObject * m_listener
Definition: playbackboxhelper.h:58
asNotYetAvailable
@ asNotYetAvailable
Definition: programtypes.h:179
MythRandomStd::MythRandom
uint32_t MythRandom()
generate 32 random bits
Definition: mythrandom.h:20
PlaybackBoxHelper::CheckAvailability
void CheckAvailability(const ProgramInfo &pginfo, CheckAvailabilityType cat=kCheckForCache)
Definition: playbackboxhelper.cpp:418
PlaybackBoxHelper::ForceFreeSpaceUpdate
void ForceFreeSpaceUpdate(void)
Definition: playbackboxhelper.cpp:351
ProgramInfo::HasPathname
bool HasPathname(void) const
Definition: programinfo.h:358
ArtworkInfo::url
QString url
Definition: metadataimagehelper.h:25
PBHEventHandler::m_freeSpaceTimerId
int m_freeSpaceTimerId
Definition: playbackboxhelper.cpp:54