00001 /* 00002 Copyright (C) 2008 Tim Fechtner < urwald at users dot sourceforge dot net > 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public License as 00006 published by the Free Software Foundation; either version 2 of 00007 the License or (at your option) version 3 or any later version 00008 accepted by the membership of KDE e.V. (or its successor approved 00009 by the membership of KDE e.V.), which shall act as a proxy 00010 defined in Section 14 of version 3 of the license. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 #include "get_stream_info.h" 00022 #define AND && 00023 #define OR || 00024 #define NOT ! 00025 #define EQUAL == 00026 00027 get_stream_info::get_stream_info(const QPointer<QObject> parent) : ripping(parent) 00028 { 00029 } 00030 00031 get_stream_info::~get_stream_info() 00032 { 00033 } 00034 00035 QString get_stream_info::serverUri() const 00036 { 00037 return internal_serverUri; 00038 } 00039 00040 void get_stream_info::setServerUri(const QString value) 00041 { 00042 if (NOT (value EQUAL internal_serverUri)) { 00043 abortStreamripper(); 00044 internal_serverUri=value; 00045 resetStreamripperProperties(); 00046 }; 00047 } 00048 00049 QStringList get_stream_info::parameterList() const 00050 { 00051 // variables 00052 QStringList parameters; 00053 00054 //code 00055 // calculate all parameters 00056 parameters += ripping::parameterList(); 00057 00058 parameters.append(QString("-M")); 00059 parameters.append(QString("0")); // stop after the stream starts 00060 00061 parameters.append(QString("-A")); // don't write any files... 00062 00063 return parameters; 00064 }