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 // c++
7 #include <utility>
8 
9 // qt
10 #include <QDateTime>
11 #include <QString>
12 
13 #include "mythprotoserverexp.h"
14 #include "programinfo.h"
15 #include "referencecounter.h"
16 
17 class DeleteThread;
18 
20 {
21  public:
22  DeleteHandler(void);
23  explicit DeleteHandler(const QString& filename);
24  ~DeleteHandler(void) override;
25 
26  void Close(void);
27 
28  QString GetPath(void) { return m_path; }
29  int GetFD(void) { return m_fd; }
30  off_t GetSize(void) { return m_size; }
31  QDateTime GetWait(void) { return m_wait; }
32 
33  void SetPath(QString path) { m_path= std::move(path); }
34 
35  virtual void DeleteSucceeded(void) {};
36  virtual void DeleteFailed(void) {};
37 
38  friend class DeleteThread;
39 
40  private:
41  QString m_path;
42  int m_fd { -1 };
43  off_t m_size { 0 };
44  QDateTime m_wait;
45 
46 };
47 
48 QString GetPlaybackURL(ProgramInfo *pginfo, bool storePath = true);
49 
50 #endif
QString GetPath(void)
General purpose reference counter.
int GetFD(void)
#define off_t
Holds information on recordings and videos.
Definition: programinfo.h:67
off_t m_size
Definition: mainserver.h:72
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)