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  bool first {true};
68  CheckAvailabilityType firstType {};
69  QSet<CheckAvailabilityType> cats;
70  for (; it2 != slist.end(); ++it2)
71  {
72  auto type = (CheckAvailabilityType)(*it2).toUInt();
73  if (first)
74  {
75  firstType = type;
76  first = false;
77  }
78  cats.insert(type);
79  }
80 
81  {
82  QMutexLocker locker(&m_pbh.m_lock);
83  QHash<uint, QStringList>::iterator cit =
84  m_checkAvailability.find(evinfo.GetRecordingID());
85  if (cit != m_checkAvailability.end())
86  m_checkAvailability.erase(cit);
88  {
89  killTimer(m_checkAvailabilityTimerId);
91  }
92  }
93 
94  if (cats.empty())
95  return asFileNotFound;
96 
97  AvailableStatusType availableStatus = asAvailable;
98  if (!evinfo.HasPathname() && !evinfo.GetChanID())
99  availableStatus = asFileNotFound;
100  else
101  {
102  // Note IsFileReadable() implicitly calls GetPlaybackURL
103  // when necessary, we rely on this.
104  if (!evinfo.IsFileReadable())
105  {
106  LOG(VB_GENERAL, LOG_ERR, LOC +
107  QString("CHECK_AVAILABILITY '%1' file not found")
108  .arg(evinfo.GetPathname()));
109  availableStatus = asFileNotFound;
110  }
111  else if (!evinfo.GetFilesize())
112  {
113  // This query should be unnecessary if the ProgramInfo Updater is working
114 // evinfo.SetFilesize(evinfo.QueryFilesize());
115 // if (!evinfo.GetFilesize())
116 // {
117  availableStatus =
120 // }
121  }
122  }
123 
124  QStringList list;
125  list.push_back(QString::number(evinfo.GetRecordingID()));
126  list.push_back(evinfo.GetPathname());
127  auto *e0 = new MythEvent("SET_PLAYBACK_URL", list);
128  QCoreApplication::postEvent(m_pbh.m_listener, e0);
129 
130  list.clear();
131  list.push_back(QString::number(evinfo.GetRecordingID()));
132  list.push_back(QString::number((int)firstType));
133  list.push_back(QString::number((int)availableStatus));
134  list.push_back(QString::number(evinfo.GetFilesize()));
135  list.push_back(QString::number(tm.hour()));
136  list.push_back(QString::number(tm.minute()));
137  list.push_back(QString::number(tm.second()));
138  list.push_back(QString::number(tm.msec()));
139 
140  for (auto type : std::as_const(cats))
141  {
142  if (type == kCheckForCache && cats.size() > 1)
143  continue;
144  list[1] = QString::number((int)type);
145  auto *e = new MythEvent("AVAILABILITY", list);
146  QCoreApplication::postEvent(m_pbh.m_listener, e);
147  }
148 
149  return availableStatus;
150 }
151 
152 bool PBHEventHandler::event(QEvent *e)
153 {
154  if (e->type() == QEvent::Timer)
155  {
156  auto *te = (QTimerEvent*)e;
157  const int timer_id = te->timerId();
158  if (timer_id == m_freeSpaceTimerId)
160  if (timer_id == m_checkAvailabilityTimerId)
161  {
162  QStringList slist;
163  {
164  QMutexLocker locker(&m_pbh.m_lock);
165  QHash<uint, QStringList>::iterator it =
166  m_checkAvailability.begin();
167  if (it != m_checkAvailability.end())
168  slist = *it;
169  }
170 
171  if (slist.size() >= 1 + NUMPROGRAMLINES)
172  CheckAvailability(slist);
173  }
174  return true;
175  }
176  if (e->type() == MythEvent::kMythEventMessage)
177  {
178  auto *me = dynamic_cast<MythEvent*>(e);
179  if (me == nullptr)
180  return QObject::event(e);
181 
182  if (me->Message() == "UPDATE_FREE_SPACE")
183  {
185  return true;
186  }
187  if (me->Message() == "STOP_RECORDING")
188  {
189  ProgramInfo pginfo(me->ExtraDataList());
190  if (pginfo.GetChanID())
191  RemoteStopRecording(&pginfo);
192  return true;
193  }
194  if (me->Message() == "DELETE_RECORDINGS")
195  {
196  QStringList successes;
197  QStringList failures;
198  QStringList list = me->ExtraDataList();
199  while (list.size() >= 3)
200  {
201  uint recordingID = list[0].toUInt();
202  bool forceDelete = list[1].toUInt() != 0U;
203  bool forgetHistory = list[2].toUInt() != 0U;
204 
205  bool ok = RemoteDeleteRecording( recordingID, forceDelete,
206  forgetHistory);
207 
208  QStringList &res = (ok) ? successes : failures;
209  for (uint i = 0; i < 3; i++)
210  {
211  res.push_back(list.front());
212  list.pop_front();
213  }
214  }
215  if (!successes.empty())
216  {
217  auto *oe = new MythEvent("DELETE_SUCCESSES", successes);
218  QCoreApplication::postEvent(m_pbh.m_listener, oe);
219  }
220  if (!failures.empty())
221  {
222  auto *oe = new MythEvent("DELETE_FAILURES", failures);
223  QCoreApplication::postEvent(m_pbh.m_listener, oe);
224  }
225 
226  return true;
227  }
228  if (me->Message() == "UNDELETE_RECORDINGS")
229  {
230  QStringList successes;
231  QStringList failures;
232  QStringList list = me->ExtraDataList();
233  while (!list.empty())
234  {
235  uint recordingID = list[0].toUInt();
236 
237  bool ok = RemoteUndeleteRecording(recordingID);
238 
239  QStringList &res = (ok) ? successes : failures;
240 
241  res.push_back(QString::number(recordingID));
242  list.pop_front();
243  }
244  if (!successes.empty())
245  {
246  auto *oe = new MythEvent("UNDELETE_SUCCESSES", successes);
247  QCoreApplication::postEvent(m_pbh.m_listener, oe);
248  }
249  if (!failures.empty())
250  {
251  auto *oe = new MythEvent("UNDELETE_FAILURES", failures);
252  QCoreApplication::postEvent(m_pbh.m_listener, oe);
253  }
254 
255  return true;
256  }
257  if (me->Message() == "GET_PREVIEW")
258  {
259  const QString& token = me->ExtraData(0);
260  bool check_avail = (bool) me->ExtraData(1).toInt();
261  QStringList list = me->ExtraDataList();
262  QStringList::const_iterator it = list.cbegin()+2;
263  ProgramInfo evinfo(it, list.cend());
264  if (!evinfo.HasPathname())
265  return true;
266 
267  list.clear();
268  evinfo.ToStringList(list);
269  list += QString::number(kCheckForCache);
270  if (check_avail && (asAvailable != CheckAvailability(list)))
271  return true;
272  if (asAvailable != evinfo.GetAvailableStatus())
273  return true;
274 
275  // Now we can actually request the preview...
277 
278  return true;
279  }
280  if (me->Message() == "CHECK_AVAILABILITY")
281  {
282  if (me->ExtraData(0) != QString::number(kCheckForCache))
283  {
285  killTimer(m_checkAvailabilityTimerId);
286  m_checkAvailabilityTimerId = startTimer(0ms);
287  }
288  else if (!m_checkAvailabilityTimerId)
289  m_checkAvailabilityTimerId = startTimer(50ms);
290  }
291  else if (me->Message() == "LOCATE_ARTWORK")
292  {
293  const QString& inetref = me->ExtraData(0);
294  uint season = me->ExtraData(1).toUInt();
295  const auto type = (VideoArtworkType)me->ExtraData(2).toInt();
296 #if 0 /* const ref for an unused variable doesn't make much sense either */
297  uint recordingID = me->ExtraData(3).toUInt();
298  const QString &group = me->ExtraData(4);
299 #endif
300  const QString cacheKey = QString("%1:%2:%3")
301  .arg((int)type).arg(inetref).arg(season);
302 
303  ArtworkMap map = GetArtwork(inetref, season);
304 
305  ArtworkInfo info = map.value(type);
306 
307  QString foundFile;
308 
309  if (!info.url.isEmpty())
310  {
311  foundFile = info.url;
312  QMutexLocker locker(&m_pbh.m_lock);
313  m_pbh.m_artworkCache[cacheKey] = foundFile;
314  }
315 
316  if (!foundFile.isEmpty())
317  {
318  QStringList list = me->ExtraDataList();
319  list.push_back(foundFile);
320  auto *oe = new MythEvent("FOUND_ARTWORK", list);
321  QCoreApplication::postEvent(m_pbh.m_listener, oe);
322  }
323 
324  return true;
325  }
326  }
327 
328  return QObject::event(e);
329 }
330 
332 {
333  if (m_freeSpaceTimerId)
334  killTimer(m_freeSpaceTimerId);
337 }
338 
340 
342  MThread("PlaybackBoxHelper"),
343  m_listener(listener), m_eventHandler(new PBHEventHandler(*this))
344 {
345  start();
346  m_eventHandler->moveToThread(qthread());
347  // Prime the pump so the disk free display starts updating
349 }
350 
352 {
353  // delete the event handler
354  m_eventHandler->deleteLater();
355  m_eventHandler = nullptr;
356 
357  MThread::exit();
358  wait();
359 }
360 
362 {
363  QCoreApplication::postEvent(
364  m_eventHandler, new MythEvent("UPDATE_FREE_SPACE"));
365 }
366 
368 {
369  QStringList list;
370  pginfo.ToStringList(list);
371  auto *e = new MythEvent("STOP_RECORDING", list);
372  QCoreApplication::postEvent(m_eventHandler, e);
373 }
374 
375 void PlaybackBoxHelper::DeleteRecording( uint recordingID, bool forceDelete,
376  bool forgetHistory)
377 {
378  QStringList list;
379  list.push_back(QString::number(recordingID));
380  list.push_back((forceDelete) ? "1" : "0");
381  list.push_back((forgetHistory) ? "1" : "0");
382  DeleteRecordings(list);
383 }
384 
385 void PlaybackBoxHelper::DeleteRecordings(const QStringList &list)
386 {
387  auto *e = new MythEvent("DELETE_RECORDINGS", list);
388  QCoreApplication::postEvent(m_eventHandler, e);
389 }
390 
392 {
393  QStringList list;
394  list.push_back(QString::number(recordingID));
395  auto *e = new MythEvent("UNDELETE_RECORDINGS", list);
396  QCoreApplication::postEvent(m_eventHandler, e);
397 }
398 
400 {
401  QList<FileSystemInfo> fsInfos = FileSystemInfo::RemoteGetInfo();
402 
403  QMutexLocker locker(&m_lock);
404  for (const auto& fsInfo : std::as_const(fsInfos))
405  {
406  if (fsInfo.getPath() == "TotalDiskSpace")
407  {
408  m_freeSpaceTotalMB = (uint64_t) (fsInfo.getTotalSpace() >> 10);
409  m_freeSpaceUsedMB = (uint64_t) (fsInfo.getUsedSpace() >> 10);
410  }
411  }
412  auto *e = new MythEvent("UPDATE_USAGE_UI");
413  QCoreApplication::postEvent(m_listener, e);
414 }
415 
417 {
418  QMutexLocker locker(&m_lock);
419  return m_freeSpaceTotalMB;
420 }
421 
423 {
424  QMutexLocker locker(&m_lock);
425  return m_freeSpaceUsedMB;
426 }
427 
429  const ProgramInfo &pginfo, CheckAvailabilityType cat)
430 {
431  QString catstr = QString::number((int)cat);
432  QMutexLocker locker(&m_lock);
433  QHash<uint, QStringList>::iterator it =
435  if (it == m_eventHandler->m_checkAvailability.end())
436  {
437  QStringList list;
438  pginfo.ToStringList(list);
439  list += catstr;
441  }
442  else
443  {
444  (*it).push_back(catstr);
445  }
446  auto *e = new MythEvent("CHECK_AVAILABILITY", QStringList(catstr));
447  QCoreApplication::postEvent(m_eventHandler, e);
448 }
449 
451  const QString &inetref, uint season,
452  const VideoArtworkType type,
453  const ProgramInfo *pginfo,
454  const QString &groupname)
455 {
456  QString cacheKey = QString("%1:%2:%3")
457  .arg((int)type).arg(inetref).arg(season);
458 
459  QMutexLocker locker(&m_lock);
460 
461  InfoMap::const_iterator it =
462  m_artworkCache.constFind(cacheKey);
463 
464  if (it != m_artworkCache.constEnd())
465  return *it;
466 
467  QStringList list(inetref);
468  list.push_back(QString::number(season));
469  list.push_back(QString::number(type));
470  list.push_back((pginfo)?QString::number(pginfo->GetRecordingID()):"");
471  list.push_back(groupname);
472  auto *e = new MythEvent("LOCATE_ARTWORK", list);
473  QCoreApplication::postEvent(m_eventHandler, e);
474 
475  return {};
476 }
477 
479  const ProgramInfo &pginfo, bool check_availability)
480 {
481  if (!check_availability && pginfo.GetAvailableStatus() != asAvailable)
482  return {};
483 
484  if (pginfo.GetAvailableStatus() == asPendingDelete)
485  return {};
486 
487  QString token = QString("%1:%2")
488  .arg(pginfo.MakeUniqueKey()).arg(MythRandom());
489 
490  QStringList extra(token);
491  extra.push_back(check_availability?"1":"0");
492  pginfo.ToStringList(extra);
493  auto *e = new MythEvent("GET_PREVIEW", extra);
494  QCoreApplication::postEvent(m_eventHandler, e);
495 
496  return token;
497 }
PlaybackBoxHelper::DeleteRecording
void DeleteRecording(uint recordingID, bool forceDelete, bool forgetHistory)
Definition: playbackboxhelper.cpp:375
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:331
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
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:6425
PBHEventHandler::~PBHEventHandler
~PBHEventHandler() override
Definition: playbackboxhelper.cpp:42
MythEvent::kMythEventMessage
static const Type kMythEventMessage
Definition: mythevent.h:79
metadataimagehelper.h
asFileNotFound
@ asFileNotFound
Definition: programtypes.h:180
PlaybackBoxHelper::m_eventHandler
PBHEventHandler * m_eventHandler
Definition: playbackboxhelper.h:59
mythrandom.h
PlaybackBoxHelper::GetFreeSpaceTotalMB
uint64_t GetFreeSpaceTotalMB(void) const
Definition: playbackboxhelper.cpp:416
PBHEventHandler::kUpdateFreeSpaceInterval
static constexpr std::chrono::milliseconds kUpdateFreeSpaceInterval
Definition: playbackboxhelper.cpp:56
asAvailable
@ asAvailable
Definition: programtypes.h:177
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:176
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:391
StorageGroup::ClearGroupToUseCache
static void ClearGroupToUseCache(void)
Definition: storagegroup.cpp:855
ProgramInfo::GetPathname
QString GetPathname(void) const
Definition: programinfo.h:343
programinfo.h
asPendingDelete
@ asPendingDelete
Definition: programtypes.h:179
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:478
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:385
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:181
PBHEventHandler::m_checkAvailabilityTimerId
int m_checkAvailabilityTimerId
Definition: playbackboxhelper.cpp:55
storagegroup.h
uint
unsigned int uint
Definition: compat.h:81
PlaybackBoxHelper::PlaybackBoxHelper
PlaybackBoxHelper(QObject *listener)
Definition: playbackboxhelper.cpp:341
PlaybackBoxHelper::~PlaybackBoxHelper
~PlaybackBoxHelper(void) override
Definition: playbackboxhelper.cpp:351
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:29
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:5028
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:152
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:399
ArtworkMap
QMultiMap< VideoArtworkType, ArtworkInfo > ArtworkMap
Definition: metadataimagehelper.h:31
PlaybackBoxHelper::StopRecording
void StopRecording(const ProgramInfo &pginfo)
Definition: playbackboxhelper.cpp:367
PlaybackBoxHelper::LocateArtwork
QString LocateArtwork(const QString &inetref, uint season, VideoArtworkType type, const ProgramInfo *pginfo, const QString &groupname=nullptr)
Definition: playbackboxhelper.cpp:450
PBHEventHandler::m_checkAvailability
QHash< uint, QStringList > m_checkAvailability
Definition: playbackboxhelper.cpp:58
PlaybackBoxHelper::GetFreeSpaceUsedMB
uint64_t GetFreeSpaceUsedMB(void) const
Definition: playbackboxhelper.cpp:422
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:178
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:428
PlaybackBoxHelper::ForceFreeSpaceUpdate
void ForceFreeSpaceUpdate(void)
Definition: playbackboxhelper.cpp:361
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