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 SETTINGS_STREAM_WIDGET_CONNECTION_H 00022 #define SETTINGS_STREAM_WIDGET_CONNECTION_H 00023 00024 #include "ui_settings_stream_widget_connection.h" 00025 #include "get_stream_info.h" 00026 #include <QStackedWidget> 00027 00065 class settings_stream_widget_connection 00066 : public QStackedWidget, private Ui::settings_stream_widget_connection 00067 { 00068 00069 Q_OBJECT 00070 00071 public: 00073 settings_stream_widget_connection(QWidget *parent=0); 00075 virtual ~settings_stream_widget_connection(); 00076 00077 public slots: 00109 void load_info_from_kcfg_and_start_recognization(); 00110 00111 private: 00114 get_stream_info m_process; 00122 void helper_disconnect_m_process_and_kill(); 00124 QString helper_qstring_localized__recognizing(); 00133 void helper_setServerUri_connectMProcess_startRecognization(); 00134 00135 private slots: 00141 void delete_old_streamInfo_and_start_recognization(); 00145 void change_empty_user_visible_widgets_to__connection_failed(); 00155 void setBitrate(void * index, const PropertyValue & bitrate); 00165 void setMetaInterval(void * index, const PropertyValue & metaInterval); 00175 void setServerName(void * index, const PropertyValue & serverName); 00185 void setStreamName(void * index, const PropertyValue & streamName); 00186 }; 00187 00188 #endif