MythTV  master
fileserverutil.h
Go to the documentation of this file.
1 #ifndef MEDIASERVERUTIL_H_
2 #define MEDIASERVERUTIL_H_
3 
4 using namespace std;
5 
6 #include <QString>
7 #include <QDateTime>
8 
9 #include "mythprotoserverexp.h"
10 #include "programinfo.h"
11 #include "referencecounter.h"
12 
13 class DeleteThread;
14 
16 {
17  public:
18  DeleteHandler(void);
19  explicit DeleteHandler(const QString& filename);
20  ~DeleteHandler(void);
21 
22  void Close(void);
23 
24  QString GetPath(void) { return m_path; }
25  int GetFD(void) { return m_fd; }
26  off_t GetSize(void) { return m_size; }
27  QDateTime GetWait(void) { return m_wait; }
28 
29  void SetPath(QString path) { m_path= path; }
30 
31  virtual void DeleteSucceeded(void) {};
32  virtual void DeleteFailed(void) {};
33 
34  friend class DeleteThread;
35 
36  private:
37  QString m_path;
38  int m_fd;
40  QDateTime m_wait;
41 
42 };
43 
44 QString GetPlaybackURL(ProgramInfo *pginfo, bool storePath = true);
45 
46 #endif
QString GetPath(void)
General purpose reference counter.
int GetFD(void)
#define off_t
Holds information on recordings and videos.
Definition: programinfo.h:66
virtual void DeleteSucceeded(void)
#define PROTOSERVER_PUBLIC
off_t GetSize(void)
QString GetPlaybackURL(ProgramInfo *pginfo, bool storePath=true)
QDateTime GetWait(void)
QDateTime m_wait
void SetPath(QString path)