@@ -274,23 +274,23 @@ class MprisPlayer: public QObject {
274
274
[[nodiscard]] bool isValid () const ;
275
275
[[nodiscard]] QString address () const ;
276
276
277
- [[nodiscard]] QBindable<bool > bindableCanControl () const { return &this ->bCanControl ; };
278
- [[nodiscard]] QBindable<bool > bindableCanSeek () const { return &this ->bCanSeek ; };
279
- [[nodiscard]] QBindable<bool > bindableCanGoNext () const { return &this ->bCanGoNext ; };
280
- [[nodiscard]] QBindable<bool > bindableCanGoPrevious () const { return &this ->bCanGoPrevious ; };
281
- [[nodiscard]] QBindable<bool > bindableCanPlay () const { return &this ->bCanPlay ; };
282
- [[nodiscard]] QBindable<bool > bindableCanPause () const { return &this ->bCanPause ; };
277
+ [[nodiscard]] QBindable<bool > bindableCanControl () const { return &this ->bCanControl ; }
278
+ [[nodiscard]] QBindable<bool > bindableCanSeek () const { return &this ->bCanSeek ; }
279
+ [[nodiscard]] QBindable<bool > bindableCanGoNext () const { return &this ->bCanGoNext ; }
280
+ [[nodiscard]] QBindable<bool > bindableCanGoPrevious () const { return &this ->bCanGoPrevious ; }
281
+ [[nodiscard]] QBindable<bool > bindableCanPlay () const { return &this ->bCanPlay ; }
282
+ [[nodiscard]] QBindable<bool > bindableCanPause () const { return &this ->bCanPause ; }
283
283
[[nodiscard]] QBindable<bool > bindableCanTogglePlaying () const {
284
284
return &this ->bCanTogglePlaying ;
285
- };
286
- [[nodiscard]] QBindable<bool > bindableCanQuit () const { return &this ->bCanQuit ; };
287
- [[nodiscard]] QBindable<bool > bindableCanRaise () const { return &this ->bCanRaise ; };
285
+ }
286
+ [[nodiscard]] QBindable<bool > bindableCanQuit () const { return &this ->bCanQuit ; }
287
+ [[nodiscard]] QBindable<bool > bindableCanRaise () const { return &this ->bCanRaise ; }
288
288
[[nodiscard]] QBindable<bool > bindableCanSetFullscreen () const {
289
289
return &this ->bCanSetFullscreen ;
290
- };
290
+ }
291
291
292
- [[nodiscard]] QBindable<QString> bindableIdentity () const { return &this ->bIdentity ; };
293
- [[nodiscard]] QBindable<QString> bindableDesktopEntry () const { return &this ->bDesktopEntry ; };
292
+ [[nodiscard]] QBindable<QString> bindableIdentity () const { return &this ->bIdentity ; }
293
+ [[nodiscard]] QBindable<QString> bindableDesktopEntry () const { return &this ->bDesktopEntry ; }
294
294
295
295
[[nodiscard]] qlonglong positionMs () const ;
296
296
[[nodiscard]] qreal position () const ;
@@ -300,49 +300,49 @@ class MprisPlayer: public QObject {
300
300
[[nodiscard]] qreal length () const ;
301
301
[[nodiscard]] QBindable<bool > bindableLengthSupported () const { return &this ->bLengthSupported ; }
302
302
303
- [[nodiscard]] qreal volume () const { return this ->bVolume ; };
303
+ [[nodiscard]] qreal volume () const { return this ->bVolume ; }
304
304
[[nodiscard]] bool volumeSupported () const ;
305
305
void setVolume (qreal volume);
306
306
307
- [[nodiscard]] QBindable<quint32> bindableUniqueId () const { return &this ->bUniqueId ; };
308
- [[nodiscard]] QBindable<QVariantMap> bindableMetadata () const { return &this ->bMetadata ; };
309
- [[nodiscard]] QBindable<QString> bindableTrackTitle () const { return &this ->bTrackTitle ; };
310
- [[nodiscard]] QBindable<QString> bindableTrackAlbum () const { return &this ->bTrackAlbum ; };
307
+ [[nodiscard]] QBindable<quint32> bindableUniqueId () const { return &this ->bUniqueId ; }
308
+ [[nodiscard]] QBindable<QVariantMap> bindableMetadata () const { return &this ->bMetadata ; }
309
+ [[nodiscard]] QBindable<QString> bindableTrackTitle () const { return &this ->bTrackTitle ; }
310
+ [[nodiscard]] QBindable<QString> bindableTrackAlbum () const { return &this ->bTrackAlbum ; }
311
311
[[nodiscard]] QBindable<QString> bindableTrackAlbumArtist () const {
312
312
return &this ->bTrackAlbumArtist ;
313
- };
314
- [[nodiscard]] QBindable<QString> bindableTrackArtist () const { return &this ->bTrackArtist ; };
315
- [[nodiscard]] QBindable<QString> bindableTrackArtUrl () const { return &this ->bTrackArtUrl ; };
313
+ }
314
+ [[nodiscard]] QBindable<QString> bindableTrackArtist () const { return &this ->bTrackArtist ; }
315
+ [[nodiscard]] QBindable<QString> bindableTrackArtUrl () const { return &this ->bTrackArtUrl ; }
316
316
317
- [[nodiscard]] MprisPlaybackState::Enum playbackState () const { return this ->bPlaybackState ; };
317
+ [[nodiscard]] MprisPlaybackState::Enum playbackState () const { return this ->bPlaybackState ; }
318
318
void setPlaybackState (MprisPlaybackState::Enum playbackState);
319
319
320
- [[nodiscard]] bool isPlaying () const { return this ->bIsPlaying ; };
320
+ [[nodiscard]] bool isPlaying () const { return this ->bIsPlaying ; }
321
321
void setPlaying (bool playing);
322
322
323
- [[nodiscard]] MprisLoopState::Enum loopState () const { return this ->bLoopState ; };
323
+ [[nodiscard]] MprisLoopState::Enum loopState () const { return this ->bLoopState ; }
324
324
[[nodiscard]] bool loopSupported () const ;
325
325
void setLoopState (MprisLoopState::Enum loopState);
326
326
327
- [[nodiscard]] qreal rate () const { return this ->bRate ; };
328
- [[nodiscard]] QBindable<qreal> bindableMinRate () const { return &this ->bRate ; };
329
- [[nodiscard]] QBindable<qreal> bindableMaxRate () const { return &this ->bRate ; };
327
+ [[nodiscard]] qreal rate () const { return this ->bRate ; }
328
+ [[nodiscard]] QBindable<qreal> bindableMinRate () const { return &this ->bRate ; }
329
+ [[nodiscard]] QBindable<qreal> bindableMaxRate () const { return &this ->bRate ; }
330
330
void setRate (qreal rate);
331
331
332
- [[nodiscard]] bool shuffle () const { return this ->bShuffle ; };
332
+ [[nodiscard]] bool shuffle () const { return this ->bShuffle ; }
333
333
[[nodiscard]] bool shuffleSupported () const ;
334
334
void setShuffle (bool shuffle);
335
335
336
- [[nodiscard]] bool fullscreen () const { return this ->bFullscreen ; };
336
+ [[nodiscard]] bool fullscreen () const { return this ->bFullscreen ; }
337
337
void setFullscreen (bool fullscreen);
338
338
339
339
[[nodiscard]] QBindable<QList<QString>> bindableSupportedUriSchemes () const {
340
340
return &this ->bSupportedUriSchemes ;
341
- };
341
+ }
342
342
343
343
[[nodiscard]] QBindable<QList<QString>> bindableSupportedMimeTypes () const {
344
344
return &this ->bSupportedMimeTypes ;
345
- };
345
+ }
346
346
347
347
signals:
348
348
// / The track has changed.
@@ -414,7 +414,7 @@ private slots:
414
414
void onPlaybackStatusUpdated ();
415
415
// call instead of setting bpPosition
416
416
void setPosition (qlonglong position);
417
- void requestPositionUpdate () { this ->pPosition .requestUpdate (); };
417
+ void requestPositionUpdate () { this ->pPosition .requestUpdate (); }
418
418
419
419
// clang-format off
420
420
Q_OBJECT_BINDABLE_PROPERTY (MprisPlayer, QString, bIdentity, &MprisPlayer::identityChanged);
0 commit comments