| 1 | /* |
| 2 | Copyright (C) 2011-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 | #ifndef PLAYER_H |
| 18 | #define PLAYER_Hcxx . . $ `src/player.h:18:9`! |
| 19 | |
| 20 | #include <QWidget> |
| 21 | #include <QtCore> |
| 22 | |
| 23 | #define GST_DISABLE_LOADSAVEcxx . . $ `src/player.h:23:9`! 1 |
| 24 | #define GST_DISABLE_REGISTRYcxx . . $ `src/player.h:24:9`! 1 |
| 25 | #define GST_DISABLE_DEPRECATEDcxx . . $ `src/player.h:25:9`! 1 |
| 26 | |
| 27 | #include <gst/gst.h> |
| 28 | |
| 29 | class Playercxx . . $ Player# : public QWidgetcxx . . $ QWidget# { |
| 30 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 31 | public: |
| 32 | Playercxx . . $ Player#Player(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent = nullptr); |
| 33 | ~cxx . . $ Player#`~Player`(ced63f7c635d850d).Playercxx . . $ Player#(); |
| 34 | |
| 35 | bool preparecxx . . $ Player#prepare(c9857a73d68e59ba).(); |
| 36 | bool readycxx . . $ Player#ready(c9857a73d68e59ba).(); |
| 37 | bool canOpencxx . . $ Player#canOpen(7dc6c9a0b6a7270f).(QStringcxx . . $ QString# mime); |
| 38 | void opencxx . . $ Player#open(fe09fe9c2ffe9947).(QUrlcxx . . $ QUrl# url); |
| 39 | void playcxx . . $ Player#play(49f6e7a06ebc5aa8).(); |
| 40 | void stopcxx . . $ Player#stop(49f6e7a06ebc5aa8).(); |
| 41 | void pausecxx . . $ Player#pause(49f6e7a06ebc5aa8).(); |
| 42 | bool closecxx . . $ Player#close(c9857a73d68e59ba).(); |
| 43 | void setPositioncxx . . $ Player#setPosition(c7ea15d6df5a9ba6).(QTimecxx . . $ QTime#); |
| 44 | QTimecxx . . $ QTime# positioncxx . . $ Player#position(bd2fc2b92108c576).(); |
| 45 | double volumecxx . . $ Player#volume(31fa7155c10fdd13).(); |
| 46 | void setVolumecxx . . $ Player#setVolume(ba8836b59fb42830).(double); |
| 47 | void setGaincxx . . $ Player#setGain(ba8836b59fb42830).(double); |
| 48 | void setEqualizercxx . . $ Player#setEqualizer(5fbc86da912b9923).(QStringcxx . . $ QString#, double); |
| 49 | |
| 50 | QTimecxx . . $ QTime# lengthcxx . . $ Player#length(bd2fc2b92108c576).(); |
| 51 | bool isPlayingcxx . . $ Player#isPlaying(c9857a73d68e59ba).(); |
| 52 | bool mediaPlayablecxx . . $ Player#mediaPlayable(c9857a73d68e59ba).(); |
| 53 | QStringcxx . . $ QString# lastErrorcxx . . $ Player#lastError.; |
| 54 | |
| 55 | double levelLeftcxx . . $ Player#levelLeft(31fa7155c10fdd13).(); |
| 56 | double levelRightcxx . . $ Player#levelRight(31fa7155c10fdd13).(); |
| 57 | double levelOutLeftcxx . . $ Player#levelOutLeft(31fa7155c10fdd13).(); |
| 58 | double levelOutRightcxx . . $ Player#levelOutRight(31fa7155c10fdd13).(); |
| 59 | |
| 60 | void newpadcxx . . $ Player#newpad(dde4ed65bff788c3).(GstElement* decodebin, GstPad* pad, gpointer data); |
| 61 | static GstBusSyncReply bus_cbcxx . . $ Player#bus_cb(42d5341555275e83).(GstBus* bus, GstMessage* msg, gpointer data); |
| 62 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 63 | void finishcxx . . $ Player#finish(49f6e7a06ebc5aa8).(); |
| 64 | void errorcxx . . $ Player#error(49f6e7a06ebc5aa8).(); |
| 65 | void levelChangedcxx . . $ Player#levelChanged(49f6e7a06ebc5aa8).(); |
| 66 | void positionChangedcxx . . $ Player#positionChanged(49f6e7a06ebc5aa8).(); |
| 67 | void loadFinishedcxx . . $ Player#loadFinished(49f6e7a06ebc5aa8).(); |
| 68 | |
| 69 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 70 | void loadThreadFinishedcxx . . $ Player#loadThreadFinished(49f6e7a06ebc5aa8).(); |
| 71 | void messageReceivedcxx . . $ Player#messageReceived(5d052221dcf2e2ca).(GstMessage* message); |
| 72 | |
| 73 | private: |
| 74 | struct PlayerPrivatecxx . . $ PlayerPrivate#* pcxx . . $ Player#p.; |
| 75 | |
| 76 | GstElement* pipelinecxx . . $ Player#pipeline.; |
| 77 | GstBus* buscxx . . $ Player#bus.; |
| 78 | gint64 Gstartcxx . . $ Player#Gstart., Glengthcxx . . $ Player#Glength.; |
| 79 | void setLinkcxx . . $ Player#setLink(922ca78bb9e093d3).(int, QUrlcxx . . $ QUrl#&); |
| 80 | void asyncOpencxx . . $ Player#asyncOpen(fe09fe9c2ffe9947).(QUrlcxx . . $ QUrl# url); |
| 81 | void cleanupcxx . . $ Player#cleanup(49f6e7a06ebc5aa8).(); |
| 82 | void sync_set_statecxx . . $ Player#sync_set_state(db0fd986d64b302f).(GstElement*, GstState); |
| 83 | }; |
| 84 | |
| 85 | #endif |