strcpy(newServer.name,"debug");
servers.push_back(newServer);
waitType = 2;
- haveAtLeastOne = 1;}/**/
+ haveAtLeastOne = 1;}/ * */
recman->setStats(totalSpace, freeSpace, percent);
ULONG start;
+ UCHAR isNew;
char* name;
char* fileName;
while (!vresp->end())
{
-
start = vresp->extractULONG();
+ isNew = vresp->extractUCHAR();
name = vresp->extractString();
fileName = vresp->extractString();
- recman->addEntry(start, name, fileName);
+ recman->addEntry(isNew, start, name, fileName);
delete[] name;
delete[] fileName;
}
int saveTop = sl.getTopOption();
sl.clear();
sl.addColumn(0);
- sl.addColumn(110);
+ sl.addColumn(102);
+ sl.addColumn(118);
int first = 1;
for (i = dirList->begin(); i != dirList->end(); i++)
{
currentSubDir = *i;
- SNPRINTF(tempA, 299, tr("<dir> %lu\t%s"), currentSubDir->getNumRecordings(), currentSubDir->name);
+ SNPRINTF(tempA, 299, tr("<dir> %lu/%lu\t \t%s"), currentSubDir->getNumNewRecordings(), currentSubDir->getNumRecordings(), currentSubDir->name);
currentSubDir->index = sl.addOption(tempA, 0, first);
first = 0;
}
//#else
strftime(tempA, 299, "%d/%m %H:%M ", btime);
//#endif
- sprintf(tempB, "%s\t%s", tempA, currentRec->getProgName());
+ sprintf(tempB, "%s\t%c\t%s", tempA, (currentRec->getNew() ? '*': ' '), currentRec->getProgName());
+
currentRec->index = sl.addOption(tempB, 0, first);
first = 0;
}
{
toPlay->loadRecInfo(); // check if still need this
toPlay->loadMarks();
- bool ish264;
-
+ bool ish264;
bool isRadio = toPlay->isRadio(ish264);
if (isRadio)
boxstack->add(radrec);
boxstack->update(radrec);
radrec->go();
+
+ toPlay->setNew(false);
+ draw();
+ boxstack->update(this);
}
else
{
- if (ish264 && !Video::getInstance()->supportsh264()) {
- VInfo* vi = new VInfo();
- vi->setSize(360, 200);
- vi->createBuffer();
- if (Video::getInstance()->getFormat() == Video::PAL)
- vi->setPosition(190, 170);
- else
- vi->setPosition(180, 120);
- vi->setOneLiner(tr("H264 video not supported"));
- vi->setExitable();
- vi->setBorderOn(1);
- vi->setTitleBarColour(DrawStyle::DANGER);
- vi->okButton();
- vi->draw();
- boxstack->add(vi);
- boxstack->update(vi);
-
- } else if (!ish264 && !Video::getInstance()->supportsmpeg2()) {
- VInfo* vi = new VInfo();
- vi->setSize(360, 200);
- vi->createBuffer();
- if (Video::getInstance()->getFormat() == Video::PAL)
- vi->setPosition(190, 170);
- else
- vi->setPosition(180, 120);
- vi->setOneLiner(tr("Mpeg2 video not supported"));
- vi->setExitable();
- vi->setBorderOn(1);
- vi->setTitleBarColour(DrawStyle::DANGER);
- vi->okButton();
- vi->draw();
- boxstack->add(vi);
- boxstack->update(vi);
-
- }else {
- VVideoRec* vidrec = new VVideoRec(toPlay, ish264);
- vidrec->draw();
- boxstack->add(vidrec);
- boxstack->update(vidrec);
- vidrec->go(resume);
- }
+ if (ish264 && !Video::getInstance()->supportsh264())
+ {
+ VInfo* vi = new VInfo();
+ vi->setSize(360, 200);
+ vi->createBuffer();
+ if (Video::getInstance()->getFormat() == Video::PAL)
+ vi->setPosition(190, 170);
+ else
+ vi->setPosition(180, 120);
+ vi->setOneLiner(tr("H264 video not supported"));
+ vi->setExitable();
+ vi->setBorderOn(1);
+ vi->setTitleBarColour(DrawStyle::DANGER);
+ vi->okButton();
+ vi->draw();
+ boxstack->add(vi);
+ boxstack->update(vi);
+ }
+ else if (!ish264 && !Video::getInstance()->supportsmpeg2())
+ {
+ VInfo* vi = new VInfo();
+ vi->setSize(360, 200);
+ vi->createBuffer();
+ if (Video::getInstance()->getFormat() == Video::PAL)
+ vi->setPosition(190, 170);
+ else
+ vi->setPosition(180, 120);
+ vi->setOneLiner(tr("Mpeg2 video not supported"));
+ vi->setExitable();
+ vi->setBorderOn(1);
+ vi->setTitleBarColour(DrawStyle::DANGER);
+ vi->okButton();
+ vi->draw();
+ boxstack->add(vi);
+ boxstack->update(vi);
+ }
+ else
+ {
+ VVideoRec* vidrec = new VVideoRec(toPlay, ish264);
+ vidrec->draw();
+ boxstack->add(vidrec);
+ boxstack->update(vidrec);
+ vidrec->go(resume);
+
+ toPlay->setNew(false);
+ draw();
+ boxstack->update(this);
+ }
}
return 1;
}