MythTV
master
mythtv
libs
libmythprotoserver
requesthandler
fileserverutil.h
Go to the documentation of this file.
1
#ifndef MEDIASERVERUTIL_H_
2
#define MEDIASERVERUTIL_H_
3
4
// c++
5
#include <utility>
6
7
// qt
8
#include <QDateTime>
9
#include <QString>
10
11
#include "
libmythbase/programinfo.h
"
12
#include "
libmythbase/referencecounter.h
"
13
#include "
libmythprotoserver/mythprotoserverexp.h
"
14
15
class
DeleteThread
;
16
17
class
PROTOSERVER_PUBLIC
DeleteHandler
:
public
ReferenceCounter
18
{
19
public
:
20
DeleteHandler
(
void
);
21
explicit
DeleteHandler
(
const
QString&
filename
);
22
~
DeleteHandler
(
void
)
override
;
23
24
void
Close(
void
);
25
26
QString
GetPath
(
void
) {
return
m_path; }
27
int
GetFD
(
void
)
const
{
return
m_fd; }
28
off_t
GetSize
(
void
)
const
{
return
m_size; }
29
QDateTime
GetWait
(
void
) {
return
m_wait; }
30
31
void
SetPath
(QString path) { m_path= std::move(path); }
32
33
virtual
void
DeleteSucceeded
(
void
) {};
34
virtual
void
DeleteFailed(
void
) {};
35
36
friend
class
DeleteThread
;
37
38
private
:
39
QString
m_path
;
40
int
m_fd { -1 };
41
off_t
m_size { 0 };
42
QDateTime
m_wait
;
43
44
};
45
46
PROTOSERVER_PUBLIC
QString
GetPlaybackURL
(
ProgramInfo
*pginfo,
bool
storePath =
true
);
47
48
#endif
DeleteThread
Definition:
deletethread.h:19
DeleteHandler::GetWait
QDateTime GetWait(void)
Definition:
fileserverutil.h:29
DeleteHandler::DeleteSucceeded
virtual void DeleteSucceeded(void)
Definition:
fileserverutil.h:33
programinfo.h
DeleteHandler
Definition:
fileserverutil.h:17
DeleteHandler::GetFD
int GetFD(void) const
Definition:
fileserverutil.h:27
mythprotoserverexp.h
DeleteHandler::m_wait
QDateTime m_wait
Definition:
fileserverutil.h:42
DeleteHandler::GetPath
QString GetPath(void)
Definition:
fileserverutil.h:26
DeleteHandler::m_path
QString m_path
Definition:
fileserverutil.h:39
DeleteHandler::SetPath
void SetPath(QString path)
Definition:
fileserverutil.h:31
PROTOSERVER_PUBLIC
#define PROTOSERVER_PUBLIC
Definition:
mythprotoserverexp.h:9
referencecounter.h
DeleteHandler::GetSize
off_t GetSize(void) const
Definition:
fileserverutil.h:28
off_t
#define off_t
Definition:
mythiowrapper.cpp:241
ProgramInfo
Holds information on recordings and videos.
Definition:
programinfo.h:67
build_compdb.filename
filename
Definition:
build_compdb.py:21
GetPlaybackURL
PROTOSERVER_PUBLIC QString GetPlaybackURL(ProgramInfo *pginfo, bool storePath=true)
Definition:
fileserverutil.cpp:46
ReferenceCounter
General purpose reference counter.
Definition:
referencecounter.h:26
Generated on Mon Nov 25 2024 03:16:05 for MythTV by
1.8.17