git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove old softwareupdate from configure and makefile - new softwareupdate could...
[enigma2.git]
/
lib
/
base
/
filepush.h
diff --git
a/lib/base/filepush.h
b/lib/base/filepush.h
index a419d7190e4f97305cca4f0e671e412248e1cd92..25257880d4056c28c00f3b59ffcbda2f87f92b35 100644
(file)
--- a/
lib/base/filepush.h
+++ b/
lib/base/filepush.h
@@
-2,15
+2,26
@@
#define __lib_base_filepush_h
#include <lib/base/thread.h>
#define __lib_base_filepush_h
#include <lib/base/thread.h>
+#include <libsig_comp.h>
+#include <lib/base/message.h>
#include <sys/types.h>
#include <sys/types.h>
+#include <lib/base/rawfile.h>
-class eFilePushThread: public eThread
+class iFilePushScatterGather
+{
+public:
+ virtual void getNextSourceSpan(off_t current_offset, size_t bytes_read, off_t &start, size_t &size)=0;
+ virtual ~iFilePushScatterGather() {}
+};
+
+class eFilePushThread: public eThread, public Object
{
public:
eFilePushThread();
void thread();
void stop();
void start(int sourcefd, int destfd);
{
public:
eFilePushThread();
void thread();
void stop();
void start(int sourcefd, int destfd);
+ int start(const char *filename, int destfd);
void pause();
void seek(int whence, off_t where);
void pause();
void seek(int whence, off_t where);
@@
-18,12
+29,30
@@
public:
/* flushes the internal readbuffer */
void flush();
/* flushes the internal readbuffer */
void flush();
+ void enablePVRCommit(int);
+
+ void setScatterGather(iFilePushScatterGather *);
+ enum { evtEOF, evtReadError, evtWriteError, evtUser };
+ Signal1<void,int> m_event;
+
+ /* you can send private events if you want */
+ void sendEvent(int evt);
+protected:
+ virtual void filterRecordData(const unsigned char *data, int len);
private:
private:
+ iFilePushScatterGather *m_sg;
int m_stop;
unsigned char m_buffer[65536];
int m_buf_start, m_buf_end;
int m_stop;
unsigned char m_buffer[65536];
int m_buf_start, m_buf_end;
- int m_fd_source, m_fd_dest;
+ int m_fd_dest;
+ int m_send_pvr_commit;
+
+ eRawFile m_raw_source;
+
+ eFixedMessagePump<int> m_messagepump;
+
+ void recvEvent(const int &evt);
};
#endif
};
#endif