summaryrefslogtreecommitdiff
path: root/queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'queue.h')
-rwxr-xr-xqueue.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/queue.h b/queue.h
new file mode 100755
index 0000000..e819901
--- /dev/null
+++ b/queue.h
@@ -0,0 +1,69 @@
+//
+// queue.h
+//
+
+#ifndef __QUEUE_H
+#define __QUEUE_H
+
+#define QUEUEFILE "queue.vdrrip"
+#define LOCKFILE "lock.vdrrip"
+#define ENCODEFILE "encode.vdrrip"
+
+struct QueueData {
+ const char *Dir;
+ char *Name;
+ int FileSize;
+ int FileNumbers;
+ char *VCodec;
+ int BitrateVideo;
+ int MinQuant;
+ int MaxQuant;
+ int CropWidth;
+ int CropHeight;
+ int CropPosX;
+ int CropPosY;
+ int ScaleWidth;
+ int ScaleHeight;
+ char *ACodec;
+ int BitrateAudio;
+ int AudioID;
+ const char *PPValues;
+ int Rename;
+ char *Container;
+ int Preview;
+};
+
+class cQueue {
+ private:
+ struct QueueData *Q;
+ int NumMovies;
+ bool Locked;
+
+ void Load();
+ void Set(char *s, int c);
+
+ public:
+ cQueue();
+ ~cQueue();
+
+ bool Save();
+ bool New(struct QueueData *q);
+ bool Del(int i);
+ bool Up(int i);
+ bool Down(int i);
+ bool Switch(int i);
+
+ void Lock();
+ void Unlock();
+ void WaitUnlock();
+ bool IsEncoding();
+ char *getQueueStat();
+
+ struct QueueData* getData(int i);
+ char *getName(int i);
+ char *getShortname(int i);
+ int getNumMovies();
+ bool getLockStat();
+};
+
+#endif // __QUEUE_H