/* * vdr-tv-client: TV frontend for watching tv streams from the vdr server. * * Copyright (c) 2011, Mika Laitio. * * 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 * Or, point your browser to http://www.gnu.org/copyleft/gpl.html * */ #include "QMLVDRClient.h" #include class QMLVDRClientPrivate { public: QMLVDRClientPrivate(){} }; QMLVDRClient::QMLVDRClient(QObject *parent) : QObject(parent), priva(new QMLVDRClientPrivate) { } QMLVDRClient::~QMLVDRClient() { delete this->priva; } void QMLVDRClient::launch_viewer(const QString &server_address) { QTextStream out(stdout); out << "vdr server address for client launch: " << server_address << endl; QString program = "/usr/bin/vdr-sxfe"; QStringList arguments; //arguments << "-style" << "motif"; arguments << server_address; QProcess *myProcess = new QProcess(this); out << "calling start" << endl; myProcess->start(program, arguments); out << "wait for finished" << endl; myProcess->waitForFinished(); out << "wait for finished done" << endl; }