aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Output/oss4/outputoss4factory.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-11-03 22:22:25 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-11-03 22:22:25 +0000
commite79b8db2c0422d07e300e51bab3e37b319dd522c (patch)
tree6ed4546471a7d8476edd8aa04e79cf242fdc076b /src/plugins/Output/oss4/outputoss4factory.cpp
parentddb2af1329d04fd02ba17754bbb973a4ad1a6b03 (diff)
downloadqmmp-e79b8db2c0422d07e300e51bab3e37b319dd522c.tar.gz
qmmp-e79b8db2c0422d07e300e51bab3e37b319dd522c.tar.bz2
qmmp-e79b8db2c0422d07e300e51bab3e37b319dd522c.zip
fixed engine stop order
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7689 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Output/oss4/outputoss4factory.cpp')
0 files changed, 0 insertions, 0 deletions
*********************************** * Copyright (C) 2017 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include <QTimer> #include <QSettings> #include <qmmp/qmmp.h> #include "shoutclient.h" ShoutClient::ShoutClient(QObject *parent) : QObject(parent) { shout_init(); m_shout_conn = shout_new(); m_timer = new QTimer(this); m_timer->setSingleShot(true); m_timer->setInterval(4000); QObject::connect(m_timer, SIGNAL(timeout()), SLOT(close())); readSettings(); } ShoutClient::~ShoutClient() { close(); shout_free(m_shout_conn); shout_shutdown(); } void ShoutClient::readSettings() { QSettings settings(Qmmp::configFile(), QSettings::IniFormat); settings.beginGroup("Shout"); shout_set_host(m_shout_conn, settings.value("host", "127.0.0.1").toString().toLatin1().constData()); shout_set_port(m_shout_conn, settings.value("port", 8000).toInt()); shout_set_password(m_shout_conn, settings.value("passw", "hackme").toString().toLatin1().constData()); shout_set_mount(m_shout_conn, QString("/%1").arg(settings.value("mount", "qmmp.out").toString()). toLatin1().constData()); shout_set_name(m_shout_conn, "qmmp");