MythTV  master
m3u.h
Go to the documentation of this file.
1 #ifndef MYTHTV_M3U_H
2 #define MYTHTV_M3U_H
3 
4 #include <cinttypes>
5 
6 #include <QDateTime>
7 #include <QString>
8 
9 namespace M3U
10 {
11  QString DecodedURI(const QString& uri);
12  QString RelativeURI(const QString& surl, const QString& spath);
13  QString ParseAttributes(const QString& line, const char* attr);
14  bool ParseDecimalValue(const QString& line, int& target);
15  bool ParseDecimalValue(const QString& line, int64_t& target);
16  bool ParseVersion(const QString& line, const QString& loc, int& version);
17  bool ParseStreamInformation(const QString& line,
18  const QString& url,
19  const QString& loc,
20  int& id, uint64_t& bandwidth);
21  bool ParseTargetDuration(const QString& line, const QString& loc,
22  int& duration);
23  bool ParseSegmentInformation(int version, const QString& line,
24  uint& duration, QString& title,
25  const QString& loc);
26  bool ParseMediaSequence(int64_t & sequence_num, const QString& line,
27  const QString& loc);
28  bool ParseKey(int version, const QString& line, bool& aesmsg,
29  const QString& loc, QString &path, QString &iv);
30  bool ParseProgramDateTime(const QString& line, const QString& loc,
31  QDateTime &date);
32  bool ParseAllowCache(const QString& line, const QString& loc,
33  bool& do_cache);
34  bool ParseDiscontinuitySequence(const QString& line, const QString& loc,
35  int &discontinuity_sequence);
36  bool ParseDiscontinuity(const QString& line, const QString& loc);
37  bool ParseEndList(const QString& loc, bool& is_vod);
38  bool ParseIndependentSegments(const QString& line, const QString& loc);
39 }
40 
41 #endif // MYTHTV_M3U_H
M3U::ParseProgramDateTime
bool ParseProgramDateTime(const QString &line, const QString &loc, QDateTime &)
Definition: m3u.cpp:374
M3U::RelativeURI
QString RelativeURI(const QString &surl, const QString &spath)
Definition: m3u.cpp:16
M3U::ParseDecimalValue
bool ParseDecimalValue(const QString &line, int &target)
Return the decimal argument in a line of type: blah:<decimal> presence of value <decimal> is compulso...
Definition: m3u.cpp:52
M3U
Definition: m3u.cpp:7
M3U::ParseKey
bool ParseKey(int version, const QString &line, [[maybe_unused]] bool &aesmsg, const QString &loc, QString &path, QString &iv)
Definition: m3u.cpp:286
M3U::ParseMediaSequence
bool ParseMediaSequence(int64_t &sequence_num, const QString &line, const QString &loc)
Definition: m3u.cpp:264
M3U::ParseAllowCache
bool ParseAllowCache(const QString &line, const QString &loc, bool &do_cache)
Definition: m3u.cpp:386
M3U::DecodedURI
QString DecodedURI(const QString &uri)
Definition: m3u.cpp:9
M3U::ParseDiscontinuity
bool ParseDiscontinuity(const QString &line, const QString &loc)
Definition: m3u.cpp:443
M3U::ParseAttributes
QString ParseAttributes(const QString &line, const char *attr)
Definition: m3u.cpp:27
M3U::ParseDiscontinuitySequence
bool ParseDiscontinuitySequence(const QString &line, const QString &loc, int &discontinuity_sequence)
Definition: m3u.cpp:419
M3U::ParseVersion
bool ParseVersion(const QString &line, const QString &loc, int &version)
Definition: m3u.cpp:86
M3U::ParseStreamInformation
bool ParseStreamInformation(const QString &line, const QString &url, const QString &loc, int &id, uint64_t &bandwidth)
Definition: m3u.cpp:119
M3U::ParseSegmentInformation
bool ParseSegmentInformation(int version, const QString &line, uint &duration, QString &title, const QString &loc)
Definition: m3u.cpp:190
M3U::ParseEndList
bool ParseEndList(const QString &loc, bool &is_vod)
Definition: m3u.cpp:451
M3U::ParseTargetDuration
bool ParseTargetDuration(const QString &line, const QString &loc, int &duration)
Definition: m3u.cpp:171
nv_python_libs.bbciplayer.bbciplayer_api.version
string version
Definition: bbciplayer_api.py:77
uint
unsigned int uint
Definition: freesurround.h:24
M3U::ParseIndependentSegments
bool ParseIndependentSegments(const QString &line, const QString &loc)
Definition: m3u.cpp:463