| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/gui/mediaplayer/mediaplayer.h`/ |
| 2 | |
| 3 | #ifndef MEDIAPLAYER_H |
| 4 | #define MEDIAPLAYER_Hcxx . . $ `src/librssguard/gui/mediaplayer/mediaplayer.h:4:9`! |
| 5 | |
| 6 | #include "gui/mediaplayer/playerbackend.h"cxx . . $ `<file>/src/librssguard/gui/mediaplayer/playerbackend.h`/ |
| 7 | #include "gui/tabcontent.h"cxx . . $ `<file>/src/librssguard/gui/tabcontent.h`/ |
| 8 | |
| 9 | #include "ui_mediaplayer.h"cxx . . $ `<file>/build/src/librssguard/ui_mediaplayer.h`/ |
| 10 | |
| 11 | class MediaPlayercxx . . $ MediaPlayer# : public TabContentcxx . . $ TabContent# { |
| 12 | Q_OBJECTcxx . . $ MediaPlayer#qt_staticMetaObjectContent. |
| 13 | |
| 14 | public: |
| 15 | explicit MediaPlayercxx . . $ MediaPlayer#MediaPlayer(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent = nullptr); |
| 16 | virtual ~cxx . . $ MediaPlayer#`~MediaPlayer`(ced63f7c635d850d).MediaPlayercxx . . $ MediaPlayer#(); |
| 17 | |
| 18 | virtual WebBrowsercxx . . $ WebBrowser#* webBrowsercxx . . $ MediaPlayer#webBrowser(eb265423c44e6400).() const; |
| 19 | |
| 20 | public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 21 | void playUrlcxx . . $ MediaPlayer#playUrl(3520e46b33348bf6).(const QStringcxx . . $ QString#& url); |
| 22 | |
| 23 | private slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 24 | void playPausecxx . . $ MediaPlayer#playPause(49f6e7a06ebc5aa8).(); |
| 25 | void stopcxx . . $ MediaPlayer#stop(49f6e7a06ebc5aa8).(); |
| 26 | void downloadcxx . . $ MediaPlayer#download(49f6e7a06ebc5aa8).(); |
| 27 | void muteUnmutecxx . . $ MediaPlayer#muteUnmute(49f6e7a06ebc5aa8).(); |
| 28 | |
| 29 | // NOTE: 100 means standard speed, above that value means faster, below means slower. |
| 30 | void setSpeedcxx . . $ MediaPlayer#setSpeed(d4f767463ce0a6b3).(int speed); |
| 31 | |
| 32 | // NOTE: Volume is from 0 to 100 taken directly from slider or |
| 33 | // elsewhere. |
| 34 | void setVolumecxx . . $ MediaPlayer#setVolume(d4f767463ce0a6b3).(int volume); |
| 35 | |
| 36 | // NOTE: We seek by second. |
| 37 | void seekcxx . . $ MediaPlayer#seek(d4f767463ce0a6b3).(int position); |
| 38 | |
| 39 | void showPlayerNormalcxx . . $ MediaPlayer#showPlayerNormal(49f6e7a06ebc5aa8).(); |
| 40 | void showPlayerFullscreencxx . . $ MediaPlayer#showPlayerFullscreen(49f6e7a06ebc5aa8).(); |
| 41 | void escapeFromFullscreencxx . . $ MediaPlayer#escapeFromFullscreen(49f6e7a06ebc5aa8).(); |
| 42 | void switchFullScreencxx . . $ MediaPlayer#switchFullScreen(b45ddcbc8423892c).(bool send_event_to_backend); |
| 43 | |
| 44 | void hideControlscxx . . $ MediaPlayer#hideControls(49f6e7a06ebc5aa8).(); |
| 45 | void showControlscxx . . $ MediaPlayer#showControls(49f6e7a06ebc5aa8).(); |
| 46 | |
| 47 | void onFullscreenChangedcxx . . $ MediaPlayer#onFullscreenChanged(b45ddcbc8423892c).(bool fullscreen); |
| 48 | void onMutedChangedcxx . . $ MediaPlayer#onMutedChanged(b45ddcbc8423892c).(bool muted); |
| 49 | void onSpeedChangedcxx . . $ MediaPlayer#onSpeedChanged(d4f767463ce0a6b3).(int speed); |
| 50 | void onDurationChangedcxx . . $ MediaPlayer#onDurationChanged(d4f767463ce0a6b3).(int duration); |
| 51 | void onPositionChangedcxx . . $ MediaPlayer#onPositionChanged(d4f767463ce0a6b3).(int position); |
| 52 | void onVolumeChangedcxx . . $ MediaPlayer#onVolumeChanged(d4f767463ce0a6b3).(int volume); |
| 53 | void onErrorOccurredcxx . . $ MediaPlayer#onErrorOccurred(3520e46b33348bf6).(const QStringcxx . . $ QString#& error_string); |
| 54 | void onStatusChangedcxx . . $ MediaPlayer#onStatusChanged(3520e46b33348bf6).(const QStringcxx . . $ QString#& status); |
| 55 | void onPlaybackStateChangedcxx . . $ MediaPlayer#onPlaybackStateChanged(71c215cf23a22c46).(PlayerBackendcxx . . $ PlayerBackend#::PlaybackStatecxx . . $ PlayerBackend#PlaybackState# state); |
| 56 | void onAudioAvailablecxx . . $ MediaPlayer#onAudioAvailable(b45ddcbc8423892c).(bool available); |
| 57 | void onVideoAvailablecxx . . $ MediaPlayer#onVideoAvailable(b45ddcbc8423892c).(bool available); |
| 58 | void onSeekableChangedcxx . . $ MediaPlayer#onSeekableChanged(b45ddcbc8423892c).(bool seekable); |
| 59 | |
| 60 | signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!: |
| 61 | void urlDownloadRequestedcxx . . $ MediaPlayer#urlDownloadRequested(37355d2f77053a23).(const QUrlcxx . . $ QUrl#& url); |
| 62 | void closedcxx . . $ MediaPlayer#closed(49f6e7a06ebc5aa8).(); |
| 63 | |
| 64 | private: |
| 65 | bool isFullScreencxx . . $ MediaPlayer#isFullScreen(50ce9a9e25b4a850).() const; |
| 66 | |
| 67 | void updateTimeAndProgresscxx . . $ MediaPlayer#updateTimeAndProgress(3e454b8ccf442868).(int progress, int total); |
| 68 | void setupIconscxx . . $ MediaPlayer#setupIcons(49f6e7a06ebc5aa8).(); |
| 69 | |
| 70 | void createBackendConnectionscxx . . $ MediaPlayer#createBackendConnections(49f6e7a06ebc5aa8).(); |
| 71 | void createConnectionscxx . . $ MediaPlayer#createConnections(49f6e7a06ebc5aa8).(); |
| 72 | |
| 73 | private: |
| 74 | Uicxx . . $ Ui/::MediaPlayercxx . . $ Ui/MediaPlayer# m_uicxx . . $ MediaPlayer#m_ui.; |
| 75 | |
| 76 | PlayerBackendcxx . . $ PlayerBackend#* m_backendcxx . . $ MediaPlayer#m_backend.; |
| 77 | QIconcxx . . $ QIcon# m_iconPlaycxx . . $ MediaPlayer#m_iconPlay.; |
| 78 | QIconcxx . . $ QIcon# m_iconPausecxx . . $ MediaPlayer#m_iconPause.; |
| 79 | QIconcxx . . $ QIcon# m_iconMutecxx . . $ MediaPlayer#m_iconMute.; |
| 80 | QIconcxx . . $ QIcon# m_iconUnmutecxx . . $ MediaPlayer#m_iconUnmute.; |
| 81 | bool m_mutedcxx . . $ MediaPlayer#m_muted.; |
| 82 | }; |
| 83 | |
| 84 | #endif // MEDIAPLAYER_H |