VLC-Qt 0.8.0- (Different version)
Audio.h
00001 /****************************************************************************
00002 * VLC-Qt - Qt and libvlc connector library
00003 * Copyright (C) 2012 Tadej Novak <tadej@tano.si>
00004 *
00005 * This library is free software: you can redistribute it and/or modify
00006 * it under the terms of the GNU Lesser General Public License as published
00007 * by the Free Software Foundation, either version 3 of the License, or
00008 * (at your option) any later version.
00009 *
00010 * This library is distributed in the hope that it will be useful,
00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013 * GNU Lesser General Public License for more details.
00014 *
00015 * You should have received a copy of the GNU Lesser General Public License
00016 * along with this library. If not, see <http://www.gnu.org/licenses/>.
00017 *****************************************************************************/
00018 
00019 #ifndef VLCQT_AUDIO_H_
00020 #define VLCQT_AUDIO_H_
00021 
00022 #include <QtCore/QObject>
00023 #include <QtCore/QStringList>
00024 
00025 #include "SharedExportCore.h"
00026 
00027 class VlcMediaPlayer;
00028 
00029 struct libvlc_media_player_t;
00030 
00037 class VLCQT_CORE_EXPORT VlcAudio : public QObject
00038 {
00039 Q_OBJECT
00040 public:
00048     explicit VlcAudio(VlcMediaPlayer *player);
00049 
00053     ~VlcAudio();
00054 
00059     bool getMute() const;
00060 
00065     void setVolume(const int &volume);
00066 
00071     void setTrack(const int &track);
00072 
00077     bool toggleMute() const;
00078 
00083     int track() const;
00084 
00089     int trackCount() const;
00090 
00095     QStringList trackDescription() const;
00096 
00101     QList<int> trackIds() const;
00102 
00107     int volume() const;
00108 
00109 private:
00110     libvlc_media_player_t *_vlcMediaPlayer;
00111 };
00112 
00113 #endif // VLCQT_AUDIO_H_
 All Classes Namespaces Functions Enumerations