#include <VP1StreamMenuUpdater.h>
Definition at line 14 of file VP1StreamMenuUpdater.h.
◆ VP1StreamMenuUpdater()
VP1StreamMenuUpdater::VP1StreamMenuUpdater |
( |
VP1DirStatuses & |
diractions, |
|
|
QMutex * |
mutex, |
|
|
QObject * |
parent = 0 |
|
) |
| |
◆ ~VP1StreamMenuUpdater()
VP1StreamMenuUpdater::~VP1StreamMenuUpdater |
( |
| ) |
|
◆ run()
void VP1StreamMenuUpdater::run |
( |
| ) |
|
|
protected |
◆ updateInputDirectoriesStatus
void VP1StreamMenuUpdater::updateInputDirectoriesStatus |
( |
| ) |
|
|
slot |
Definition at line 39 of file VP1StreamMenuUpdater.cxx.
46 dirstatus.
bold =
false;
51 if (!
fi.exists()||!
fi.isDir()) {
57 QFile latestFileRef(dirstatus.
inputDir +
"/latest_vp1event");
58 if(latestFileRef.exists()
59 && latestFileRef.open(QIODevice::ReadOnly | QIODevice::Text)) {
60 QTextStream textStream(&latestFileRef);
61 QString latestFileName = textStream.readLine();
62 latestFileRef.close();
64 QFileInfo latestFile(latestFileName);
65 if(latestFile.exists()) {
66 int secondswithoutupdate = latestFile.lastModified().secsTo(QDateTime::currentDateTime());
67 dirstatus.
bold = (secondswithoutupdate<60);
68 if (secondswithoutupdate<120)
70 else if (secondswithoutupdate<7200)
◆ m_inputdiractions
◆ m_mutex
QMutex* VP1StreamMenuUpdater::m_mutex |
|
private |
◆ m_timer
QTimer* VP1StreamMenuUpdater::m_timer |
|
private |
The documentation for this class was generated from the following files: