| 1 | /* |
| 2 | Copyright (C) 2005-2019 Mario Stephan <[email protected]> |
| 3 | |
| 4 | This library is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as published |
| 6 | by the Free Software Foundation; either version 2.1 of the License, or |
| 7 | (at your option) any later version. |
| 8 | |
| 9 | This program is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | GNU General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public License |
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | #ifndef MONITORPLAYER_H |
| 19 | #define MONITORPLAYER_Hcxx . . $ `src/monitorplayer.h:19:9`! |
| 20 | |
| 21 | #include <QtCore> |
| 22 | #include <QWidget> |
| 23 | |
| 24 | #if defined(Q_OS_WIN32) |
| 25 | #include <windows.h> |
| 26 | #include <dsound.h> |
| 27 | #endif |
| 28 | |
| 29 | #define GST_DISABLE_LOADSAVEcxx . . $ `src/monitorplayer.h:29:9`! 1 |
| 30 | #define GST_DISABLE_REGISTRYcxx . . $ `src/monitorplayer.h:30:9`! 1 |
| 31 | #define GST_DISABLE_DEPRECATEDcxx . . $ `src/monitorplayer.h:31:9`! 1 |
| 32 | #include <gst/gst.h> |
| 33 | |
| 34 | typedef QPaircxx . . $ QPair#<QStringcxx . . $ QString#, QUuidcxx . . $ QUuid#> dsDevicecxx . . $ dsDevice#; |
| 35 | |
| 36 | |
| 37 | class MonitorPlayercxx . . $ MonitorPlayer#: public QWidgetcxx . . $ QWidget# |
| 38 | { |
| 39 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 40 | public: |
| 41 | MonitorPlayercxx . . $ MonitorPlayer#MonitorPlayer(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = nullptr); |
| 42 | ~cxx . . $ MonitorPlayer#`~MonitorPlayer`(ced63f7c635d850d).MonitorPlayercxx . . $ MonitorPlayer#(); |
| 43 | |
| 44 | |
| 45 | bool preparecxx . . $ MonitorPlayer#prepare(c9857a73d68e59ba).(); |
| 46 | bool readycxx . . $ MonitorPlayer#ready(c9857a73d68e59ba).(); |
| 47 | bool canOpencxx . . $ MonitorPlayer#canOpen(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# mime); |
| 48 | void opencxx . . $ MonitorPlayer#open(fe09fe9c2ffe9947).(QUrlcxx . . $ QUrl# url); |
| 49 | void playcxx . . $ MonitorPlayer#play(49f6e7a06ebc5aa8).(); |
| 50 | void stopcxx . . $ MonitorPlayer#stop(49f6e7a06ebc5aa8).(); |
| 51 | void pausecxx . . $ MonitorPlayer#pause(49f6e7a06ebc5aa8).(); |
| 52 | bool closecxx . . $ MonitorPlayer#close(c9857a73d68e59ba).(); |
| 53 | void setPositioncxx . . $ MonitorPlayer#setPosition(c7ea15d6df5a9ba6).(QTimecxx . . $ QTime#); |
| 54 | QTimecxx . . $ QTime# positioncxx . . $ MonitorPlayer#position(bd2fc2b92108c576).(); |
| 55 | double volumecxx . . $ MonitorPlayer#volume(31fa7155c10fdd13).(); |
| 56 | void setVolumecxx . . $ MonitorPlayer#setVolume(ba8836b59fb42830).(double); |
| 57 | void disablecxx . . $ MonitorPlayer#disable(49f6e7a06ebc5aa8).(); |
| 58 | void enablecxx . . $ MonitorPlayer#enable(49f6e7a06ebc5aa8).(); |
| 59 | bool isDisabledcxx . . $ MonitorPlayer#isDisabled(c9857a73d68e59ba).(); |
| 60 | |
| 61 | QTimecxx . . $ QTime# lengthcxx . . $ MonitorPlayer#length(bd2fc2b92108c576).(); |
| 62 | bool isPlayingcxx . . $ MonitorPlayer#isPlaying(c9857a73d68e59ba).(); |
| 63 | bool mediaPlayablecxx . . $ MonitorPlayer#mediaPlayable(c9857a73d68e59ba).(); |
| 64 | QStringListcxx . . $ QStringList# outputDevicescxx . . $ MonitorPlayer#outputDevices(669a05bc42dd57cc).(); |
| 65 | QStringcxx . . $ QString# outputDeviceNamecxx . . $ MonitorPlayer#outputDeviceName(4365c3963150523e).(); |
| 66 | QStringcxx . . $ QString# outputDeviceIDcxx . . $ MonitorPlayer#outputDeviceID(4365c3963150523e).(); |
| 67 | void setOutputDevicecxx . . $ MonitorPlayer#setOutputDevice(7df51288a9ebd664).(QStringcxx . . $ QString# deviceName); |
| 68 | void readDevicescxx . . $ MonitorPlayer#readDevices(49f6e7a06ebc5aa8).(); |
| 69 | QStringcxx . . $ QString# defaultDeviceIDcxx . . $ MonitorPlayer#defaultDeviceID(4365c3963150523e).(); |
| 70 | |
| 71 | double levelLeftcxx . . $ MonitorPlayer#levelLeft(31fa7155c10fdd13).(); |
| 72 | double levelRightcxx . . $ MonitorPlayer#levelRight(31fa7155c10fdd13).(); |
| 73 | |
| 74 | void newpadcxx . . $ MonitorPlayer#newpad(dde4ed65bff788c3). (GstElement *decodebin, GstPad *pad, gpointer data); |
| 75 | static GstBusSyncReply bus_cbcxx . . $ MonitorPlayer#bus_cb(42d5341555275e83). (GstBus *bus, GstMessage *msg, gpointer data); |
| 76 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 77 | void finishcxx . . $ MonitorPlayer#finish(49f6e7a06ebc5aa8).(); |
| 78 | void errorcxx . . $ MonitorPlayer#error(49f6e7a06ebc5aa8).(); |
| 79 | void levelChangedcxx . . $ MonitorPlayer#levelChanged(49f6e7a06ebc5aa8).(); |
| 80 | void positionChangedcxx . . $ MonitorPlayer#positionChanged(49f6e7a06ebc5aa8).(); |
| 81 | void loadFinishedcxx . . $ MonitorPlayer#loadFinished(49f6e7a06ebc5aa8).(); |
| 82 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 83 | void loadThreadFinishedcxx . . $ MonitorPlayer#loadThreadFinished(49f6e7a06ebc5aa8).(); |
| 84 | void messageReceivedcxx . . $ MonitorPlayer#messageReceived(5d052221dcf2e2ca).(GstMessage* message); |
| 85 | |
| 86 | private: |
| 87 | struct MonitorPlayerPrivatecxx . . $ MonitorPlayerPrivate# *pcxx . . $ MonitorPlayer#p.; |
| 88 | |
| 89 | GstElement *pipelinecxx . . $ MonitorPlayer#pipeline.; |
| 90 | GstBus *buscxx . . $ MonitorPlayer#bus.; |
| 91 | gint64 Gstartcxx . . $ MonitorPlayer#Gstart.; |
| 92 | gint64 Glengthcxx . . $ MonitorPlayer#Glength.; |
| 93 | void setLinkcxx . . $ MonitorPlayer#setLink(922ca78bb9e093d3).(int, QUrlcxx . . $ QUrl#&); |
| 94 | void asyncOpencxx . . $ MonitorPlayer#asyncOpen(fe09fe9c2ffe9947).(QUrlcxx . . $ QUrl# url); |
| 95 | void cleanupcxx . . $ MonitorPlayer#cleanup(49f6e7a06ebc5aa8).(); |
| 96 | void sync_set_statecxx . . $ MonitorPlayer#sync_set_state(db0fd986d64b302f).(GstElement*, GstState); |
| 97 | |
| 98 | }; |
| 99 | |
| 100 | #endif // MONITORPLAYER_H |
| 101 | |
| 102 | |
| 103 | |
| 104 |