radiostation.h

Go to the documentation of this file.
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 #ifndef RADIOSTATION_H
00022 #define RADIOSTATION_H
00023 
00024 #include "ripping.h"
00025 #include "settings_stream_dialog.h"
00026 
00035 class radioStation : public ripping
00036 {
00037 
00038      Q_OBJECT
00039 
00049      Q_PROPERTY(QString configFileName READ configFileName)
00050 
00051   public:
00052      //contructor(s) and destructor(s)
00070      explicit radioStation(const QPointer<QObject> parent = 0,
00071                             const QPointer<QWidget> mainWidget = 0,
00072                             const QString &configFileName = QString());
00091      explicit radioStation(const QPointer<QObject> parent,
00092                             const QPointer<QWidget> mainWidget,
00093                             const QString & configFileName,
00094                             const qlonglong & index);
00096      virtual ~radioStation();
00098      QString configFileName() const;
00099 
00103      // doxygen doesn't accept "#configFileName" in this special section.
00105   public:
00107      virtual PropertyValue bitrate() const;
00109      virtual PropertyValue metaInterval() const;
00111      virtual PropertyValue serverName() const;
00113      virtual PropertyValue streamName() const;
00114   protected:
00116      virtual void setBitrate(qint64 bitrate);
00118      virtual void setMetaInterval(qint64 metaInterval);
00120      virtual void setServerName(const QString newServerName);
00122      virtual void setStreamName(const QString newStreamName);
00124 
00125   public slots:
00128      int execSettingsDialog();
00131      void showSettingsDialog();
00132 
00133   protected:
00137      QPointer<settings_stream> config_skeleton;
00141      QPointer<QWidget> m_mainWidget;
00144      virtual QStringList parameterList() const;
00146      virtual QString serverUri() const;
00149      QPointer<settings_stream_dialog> settingsDialog;
00150 
00151   private:
00159      void helper_setupConfigSystem(const QString & configFile);
00171      int helper_displaySettingsDialog(bool returnImmediately);
00173      QString internal_configFileName;
00183      KSharedConfig::Ptr shared_config;
00184  };
00185 
00186 #endif

Generated on Sat May 2 10:43:44 2009 for kradioripper by  doxygen 1.5.6