diff options
Diffstat (limited to 'Common')
-rw-r--r-- | Common/Config.cpp | 17 | ||||
-rw-r--r-- | Common/Config.h | 4 |
2 files changed, 21 insertions, 0 deletions
diff --git a/Common/Config.cpp b/Common/Config.cpp index 70b67765..b1a2ddfd 100644 --- a/Common/Config.cpp +++ b/Common/Config.cpp @@ -158,6 +158,7 @@ public: settings.beginGroup(QString::fromLatin1("backend")); settings.setValue(QString::fromLatin1("video_uri"), video_uri); + settings.setValue(QString::fromLatin1("v6FirstWord"), v6FirstWord); settings.setValue(QString::fromLatin1("segment_buffer_size"), segment_buffer_size); settings.endGroup(); @@ -283,6 +284,7 @@ public: QString frag_sample; QString frag_pp; QString video_uri; + QString v6FirstWord; qreal segment_buffer_size; QString last_played; QString adaptation_logic; @@ -522,6 +524,7 @@ void Config::reload() settings.beginGroup(QString::fromLatin1("backend")); setVideoURI(settings.value(QString::fromLatin1("video_uri"), QString::fromLatin1("http://webserver/sintel/mpd")).toString()); + setV6FirstWord(settings.value(QString::fromLatin1("v6FirstWord"), QString::fromLatin1("b001")).toString()); setSegmentBufferSize(settings.value(QString::fromLatin1("segment_buffer_size"), 20).toReal()); settings.endGroup(); @@ -1291,6 +1294,10 @@ QString Config::videoURI() const { return mpData->video_uri; } +QString Config::v6FirstWord() const +{ + return mpData->v6FirstWord; +} Config& Config::setVideoURI(const QString &text) { @@ -1302,6 +1309,16 @@ Config& Config::setVideoURI(const QString &text) return *this; } +Config& Config::setV6FirstWord(const QString &text) +{ + if (mpData->v6FirstWord == text) + return *this; + mpData->v6FirstWord = text; + Q_EMIT v6FirstWordChanged(); + Q_EMIT changed(); + return *this; +} + qreal Config::segmentBufferSize() const { return mpData->segment_buffer_size; diff --git a/Common/Config.h b/Common/Config.h index 059c6771..7f2bfd97 100644 --- a/Common/Config.h +++ b/Common/Config.h @@ -70,6 +70,7 @@ class COMMON_EXPORT Config : public QObject Q_PROPERTY(QString fragSample READ fragSample WRITE setFragSample NOTIFY fragSampleChanged) Q_PROPERTY(QString fragPostProcess READ fragPostProcess WRITE setFragPostProcess NOTIFY fragPostProcessChanged) Q_PROPERTY(QString videoURI READ videoURI WRITE setVideoURI NOTIFY videoURIChanged) + Q_PROPERTY(QString v6FirstWord READ v6FirstWord WRITE setV6FirstWord NOTIFY v6FirstWordChanged) Q_PROPERTY(qreal segmentBufferSize READ segmentBufferSize WRITE setSegmentBufferSize NOTIFY segmentBufferSizeChanged) Q_PROPERTY(QString adaptationLogic READ adaptationLogic WRITE setAdaptationLogic NOTIFY adaptationLogicChanged) @@ -266,6 +267,8 @@ public: QString fragPostProcess() const; Config& setVideoURI(const QString &value); QString videoURI() const; + Config& setV6FirstWord(const QString &value); + QString v6FirstWord() const; Config& setSegmentBufferSize(qreal value); qreal segmentBufferSize() const; Config& setAdaptationLogic(const QString &value); @@ -392,6 +395,7 @@ public: Q_SIGNAL void languageChanged(); Q_SIGNAL void historyChanged(); Q_SIGNAL void videoURIChanged(); + Q_SIGNAL void v6FirstWordChanged(); Q_SIGNAL void segmentBufferSizeChanged(); Q_SIGNAL void adaptationLogicChanged(); Q_SIGNAL void icnChanged(); |