/*
- Copyright 2004-2005 Chris Tallon
+ Copyright 2004-2019 Chris Tallon
This file is part of VOMP.
{
return markList;
}
+
+void Recording::resetResume()
+{
+ vdr->deleteRecResume(fileName);
+}
/*
- Copyright 2004-2005 Chris Tallon
+ Copyright 2004-2019 Chris Tallon
This file is part of VOMP.
void dropRecInfo();
bool getNew() { return isNew; }
+ void resetResume();
bool isRadio(bool &h264);
bool IsPesRecording;
/*
- Copyright 2004-2008 Chris Tallon
+ Copyright 2004-2019 Chris Tallon
This file is part of VOMP.
#include "tvmedia.h"
#include <climits>
-#define VOMP_PROTOCOLL_VERSION 0x00000400
+#define VOMP_PROTOCOLL_VERSION 0x00000401
VDR* VDR::instance = NULL;
#ifdef VOMP_MEDIAPLAYER
return toReturn;
}
+int VDR::deleteRecResume(char* fileName)
+{
+ VDR_RequestPacket vrp;
+ if (!vrp.init(VDR_DELETERECRESUME, true, strlen(fileName) + 1)) return 0;
+ if (!vrp.addString(fileName)) return 0;
+
+ VDR_ResponsePacket* vresp = RequestResponse(&vrp);
+ if (vresp->noResponse()) { delete vresp; return 0; }
+
+ int toReturn = (int)vresp->extractULONG();
+ delete vresp;
+
+ return toReturn;
+}
+
char* VDR::moveRecording(char* fileName, char* newPath)
{
VDR_RequestPacket vrp;
/*
- Copyright 2004-2005 Chris Tallon
+ Copyright 2004-2019 Chris Tallon
This file is part of VOMP.
bool getRecordingsList(RecMan* recman);
RecInfo* getRecInfo(char* fileName);
int deleteRecording(char* fileName);
+ int deleteRecResume(char* fileName);
char* moveRecording(char* fileName, char* newPath);
ULLONG streamRecording(char* fileName, ULONG* lengthFrames, bool* IsPesRecording);
ULLONG positionFromFrameNumber(ULONG frameNumber);
/*
- Copyright 2004-2005 Chris Tallon, Andreas Vogel
+ Copyright 2004-2019 Chris Tallon, Andreas Vogel
This file is part of VOMP.
const static ULONG VDR_LOGIN = 1;
const static ULONG VDR_GETRECORDINGLIST = 2;
const static ULONG VDR_DELETERECORDING = 3;
+const static ULONG VDR_DELETERECRESUME = 4;
const static ULONG VDR_GETCHANNELLIST = 5;
const static ULONG VDR_STREAMCHANNEL = 6;
const static ULONG VDR_GETBLOCK = 7;
/*
- Copyright 2004-2008 Chris Tallon
+ Copyright 2004-2019 Chris Tallon
This file is part of VOMP.
button[PLAY].setText(tr("Play"));
button[RESUME].setText(tr("Resume"));
+ button[MARKASNEW].setText(tr("Mark as new"));
button[MOVE].setText(tr("Move"));
button[A_DELETE].setText(tr("Delete"));
return 4;
}
+ if (selected == MARKASNEW)
+ {
+ rec->resetResume();
+ return 2;
+ }
+
if (selected == MOVE)
{
VRecMove* vrm = new VRecMove(recman);
/*
- Copyright 2004-2008 Chris Tallon
+ Copyright 2004-2019 Chris Tallon
This file is part of VOMP.
Recording* rec;
WTabBar tabbar;
- enum Action { PLAY=0, RESUME, MOVE, A_DELETE, last };
+ enum Action { PLAY=0, RESUME, MARKASNEW, MOVE, A_DELETE, last };
WButton button[last];
// WButton buttonPlay; // 1
// WButton buttonResume; // 2