Definition at line 27 of file VP1AvailEvents.cxx.
◆ attemptGenerationOfTmpSubdir()
| QString VP1AvailEvents::Imp::attemptGenerationOfTmpSubdir |
( |
const QString & | preferredname, |
|
|
QString & | cachevar ) |
Definition at line 248 of file VP1AvailEvents.cxx.
249{
250 if (!cachevar.isEmpty())
251 return cachevar=="bad"?"":cachevar;
252
254 if (!( fi.exists()&&fi.isDir())) {
255 theclass->message(
"Could not create subdir in "+
tmpDir+
", since it does not exists or is not a directory" );
256 cachevar="bad";
257 return "";
258 }
260 while (true) {
263 if (!QFile::exists(dir)) {
264 bool ok = QDir().mkdir(dir);
265 if (!ok) {
266 theclass->message(
"Could not create directory:: "+dir );
267 cachevar="bad";
268 return "";
269 }
272 }
273 }
274}
VP1AvailEvents * theclass
std::string number(const double &d, const std::string &s)
◆ cleanupTmpLocalFiles()
| void VP1AvailEvents::Imp::cleanupTmpLocalFiles |
( |
| ) |
|
Definition at line 289 of file VP1AvailEvents.cxx.
290{
292 return;
294 return;
297 return;
298
301 if (ntoremove<=3)
302 return;
303
304
305
306
307
308
309 QList<Imp::EventID> protectedEvents;
314 }
315 QList<VP1EventFile> freshEvts =
theclass->freshEvents();
316 int ifreshkept(0);
317 for (VP1EventFile evt :
theclass->freshEvents()) {
320 break;
321 }
322
323
324 for (
int i =
events.count()-1; i>=0; --i ) {
326 continue;
327 }
328 QFile::remove(
events.at(i).fileName());
329 if (--ntoremove<=0)
330 break;
331 }
333}
static EventID evtToID(const VP1EventFile &evt)
QList< EventID > historyOrdered
◆ evtToID()
◆ dircache
| std::map<QString,std::pair<QDateTime,QList<VP1EventFile> > > VP1AvailEvents::Imp::dircache |
◆ historyOrdered
| QList<EventID> VP1AvailEvents::Imp::historyOrdered |
◆ historySorted
| std::set<EventID> VP1AvailEvents::Imp::historySorted |
◆ lastAllLocal
◆ lastFresh
◆ maxLocalFilesToKeep
| int VP1AvailEvents::Imp::maxLocalFilesToKeep |
◆ theclass
◆ timeCutForNew
| int VP1AvailEvents::Imp::timeCutForNew |
◆ tmpActiveRetrievalDir
| QString VP1AvailEvents::Imp::tmpActiveRetrievalDir |
◆ tmpDir
| QString VP1AvailEvents::Imp::tmpDir |
◆ tmpLocalFileDir
| QString VP1AvailEvents::Imp::tmpLocalFileDir |
The documentation for this class was generated from the following file: