9using namespace std::chrono_literals;
19 return lhs.m_networkTimeout == rhs.m_networkTimeout
20 && lhs.m_playbackIntent == rhs.m_playbackIntent
27 if (lhs.m_networkTimeout != rhs.m_networkTimeout)
28 return qCompareThreeWay(lhs.m_networkTimeout.count(), rhs.m_networkTimeout.count());
29 if (lhs.m_playbackIntent != rhs.m_playbackIntent)
30 return qCompareThreeWay(lhs.m_playbackIntent, rhs.m_playbackIntent);
39QT_DEFINE_QESDP_SPECIALIZATION_DTOR(QPlaybackOptionsPrivate)
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
85QPlaybackOptions::QPlaybackOptions() : d{
new QPlaybackOptionsPrivate } { }
95 return comparesEqual(*lhs.d, *rhs.d);
100 return compareThreeWay(*lhs.d, *rhs.d);
104
105
106
107
108
109
110
111
114
115
116
117
118
119
120
121
125 return d->m_networkTimeout;
131 d->m_networkTimeout = timeout;
137 d->m_networkTimeout = QPlaybackOptionsPrivate{}.m_networkTimeout;
141
142
143
144
145
146
147
148
149
150
151
154
155
156
157
158
159
160
161
164
165
166
167
168
169
170
171
172
173
177 return d->m_playbackIntent;
183 d->m_playbackIntent = intent;
189 d->m_playbackIntent = QPlaybackOptionsPrivate{}.m_playbackIntent;
193
194
195
196
197
198
199
200
201
202
203
204
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
225 return d->m_probeSizeBytes;
231 d->m_probeSizeBytes =
static_cast<
int>(probeSizeBytes);
237 d->m_probeSizeBytes = QPlaybackOptionsPrivate{}.m_probeSizeBytes;
242#include "moc_qplaybackoptions.cpp"
QPlaybackOptionsPrivate()=default
std::chrono::milliseconds m_networkTimeout
friend Qt::strong_ordering compareThreeWay(const QPlaybackOptionsPrivate &lhs, const QPlaybackOptionsPrivate &rhs)
QPlaybackOptions::PlaybackIntent m_playbackIntent
friend bool comparesEqual(const QPlaybackOptionsPrivate &lhs, const QPlaybackOptionsPrivate &rhs)
The QPlaybackOptions class enables low-level control of media playback options.
Q_MULTIMEDIA_EXPORT void resetPlaybackIntent()
Q_MULTIMEDIA_EXPORT void setProbeSize(qsizetype probeSizeBytes)
Q_MULTIMEDIA_EXPORT void resetNetworkTimeout()
Q_MULTIMEDIA_EXPORT void setNetworkTimeout(std::chrono::milliseconds timeout)
Q_MULTIMEDIA_EXPORT void resetProbeSize()
Q_MULTIMEDIA_EXPORT void setPlaybackIntent(PlaybackIntent intent)
bool comparesEqual(const QPlaybackOptions &lhs, const QPlaybackOptions &rhs) noexcept
Qt::strong_ordering compareThreeWay(const QPlaybackOptions &lhs, const QPlaybackOptions &rhs) noexcept