00001 /* 00002 Copyright (C) 2008-2010 Lukas Sommer < SommerLuk at gmail dot com > 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 #ifndef STREAMRIPPER_BASE_H 00022 #define STREAMRIPPER_BASE_H 00023 00024 #include "console_reader.h" 00025 00032 class streamripper_base : public console_reader 00033 { 00034 00035 Q_OBJECT 00036 00048 Q_PROPERTY(void * index READ index WRITE setIndex) 00049 00050 public: 00051 //contructor(s) and destructor(s) 00054 streamripper_base(QObject *parent = 0); 00058 streamripper_base(QObject *parent, void *index); 00060 virtual ~streamripper_base(); 00061 00062 //properties 00064 virtual void *index() const; 00066 virtual void setIndex(void *index); 00067 00068 signals: 00070 void indexChanged(void *newIndex); 00071 00072 public slots: 00076 void abortStreamripper(); 00083 virtual void startStreamripper(); 00084 00085 protected: 00089 virtual QStringList parameterList() const = 0; 00093 virtual QString streamripperCommand() const = 0; 00094 00095 private: 00097 void *internal_index; 00098 }; 00099 00100 #endif