summaryrefslogtreecommitdiff
path: root/status.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'status.cpp')
-rw-r--r--status.cpp47
1 files changed, 2 insertions, 45 deletions
diff --git a/status.cpp b/status.cpp
index 1cc114f..b08fd94 100644
--- a/status.cpp
+++ b/status.cpp
@@ -7,39 +7,11 @@
#include "status.h"
-cStatusMarkAd::cStatusMarkAd()
-{
- memset(recv,0,sizeof(recv));
-}
-
-int cStatusMarkAd::GetFreeReceiver()
-{
- for (int i=0; i<(MAXDEVICES*MAXRECEIVERS); i++)
- {
- if (recv[i]==NULL) return i;
- }
- return -1;
-}
-
-int cStatusMarkAd::FindReceiver(const char *FileName)
-{
- for (int i=0; i<(MAXDEVICES*MAXRECEIVERS); i++)
- {
- if (recv[i])
- {
- if (!strcmp(recv[i]->FileName(),FileName)) return i;
- }
- }
- return -1;
-}
-
void cStatusMarkAd::Recording(const cDevice *Device, const char *Name, const char *FileName, bool On)
{
if (!Device) return; // just to be safe
if (!FileName) return; // we cannot operate without a filename
- int recvnumber;
-
if (On)
{
if (!Name) return; // we cannot operate without name ;)
@@ -57,26 +29,11 @@ void cStatusMarkAd::Recording(const cDevice *Device, const char *Name, const cha
if (!timer) return;
- recvnumber=GetFreeReceiver();
- if (recvnumber<0) return;
-
- recv[recvnumber] = new cMarkAdReceiver(recvnumber,FileName,timer);
- dsyslog("markad [%i]: start recording %s ",recvnumber,FileName);
- ((cDevice *) Device)->AttachReceiver(recv[recvnumber]);
+ // TODO: Start the standalone version ;)
}
else
{
- recvnumber=FindReceiver(FileName);
- if (recvnumber<0) return;
-
- dsyslog("markad [%i]: stop recording %s ",recvnumber,FileName);
- ((cDevice *) Device)->Detach(recv[recvnumber]);
- if (!recv[recvnumber]->FoundMarks())
- {
- // TODO: start standalone markad with logo detection
- }
- delete recv[recvnumber];
- recv[recvnumber]=NULL;
+ // TODO: Start second pass?
}
}