![]() |
VLC-Qt 0.8.0- (Different version)
|
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_VLCINSTANCE_H_ 00020 #define VLCQT_VLCINSTANCE_H_ 00021 00022 #include <QtCore/QObject> 00023 00024 #include "SharedExportCore.h" 00025 00026 struct libvlc_instance_t; 00027 00035 class VLCQT_CORE_EXPORT VlcInstance : public QObject 00036 { 00037 Q_OBJECT 00038 public: 00047 explicit VlcInstance(const QStringList &args, 00048 QObject *parent = NULL); 00049 00053 ~VlcInstance(); 00054 00059 libvlc_instance_t *core(); 00060 00065 static QString libVersion(); 00066 00071 static QString version(); 00072 00077 static QString compiler(); 00078 00083 static QString changeset(); 00084 00093 void setUserAgent(const QString &application, 00094 const QString &version); 00095 00096 private: 00097 libvlc_instance_t *_vlcInstance; 00098 }; 00099 00100 #endif // VLCQT_VLCINSTANCE_H_