2010-03-24 00:11:46 +01:00
|
|
|
/* This file is part of Clementine.
|
2010-11-20 14:27:10 +01:00
|
|
|
Copyright 2010, David Sansome <me@davidsansome.com>
|
2010-03-24 00:11:46 +01:00
|
|
|
|
|
|
|
Clementine 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 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Clementine 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 Clementine. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2010-02-24 23:26:01 +01:00
|
|
|
#ifndef ADDSTREAMDIALOG_H
|
|
|
|
#define ADDSTREAMDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2010-05-10 23:50:31 +02:00
|
|
|
#include <QUrl>
|
2010-02-24 23:26:01 +01:00
|
|
|
|
|
|
|
class SavedRadio;
|
2010-05-10 23:50:31 +02:00
|
|
|
class Ui_AddStreamDialog;
|
2010-02-24 23:26:01 +01:00
|
|
|
|
|
|
|
class AddStreamDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
AddStreamDialog(QWidget *parent = 0);
|
2010-05-10 23:50:31 +02:00
|
|
|
~AddStreamDialog();
|
2010-02-24 23:26:01 +01:00
|
|
|
|
2010-05-28 00:53:07 +02:00
|
|
|
void set_url(const QUrl& url);
|
|
|
|
void set_name(const QString& name);
|
|
|
|
void set_save_visible(bool visible);
|
|
|
|
void set_add_on_accept(SavedRadio* saved_radio) { saved_radio_ = saved_radio; }
|
|
|
|
|
2010-02-24 23:26:01 +01:00
|
|
|
QUrl url() const;
|
2010-05-28 00:53:07 +02:00
|
|
|
QString name() const;
|
2010-02-24 23:26:01 +01:00
|
|
|
|
|
|
|
void accept();
|
|
|
|
|
2010-06-16 18:21:38 +02:00
|
|
|
protected:
|
|
|
|
void showEvent(QShowEvent *);
|
|
|
|
|
2010-02-24 23:26:01 +01:00
|
|
|
private slots:
|
|
|
|
void TextChanged(const QString& text);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static const char* kSettingsGroup;
|
|
|
|
|
2010-05-10 23:50:31 +02:00
|
|
|
Ui_AddStreamDialog* ui_;
|
2010-02-24 23:26:01 +01:00
|
|
|
|
|
|
|
SavedRadio* saved_radio_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ADDSTREAMDIALOG_H
|