File indexing completed on 2024-05-19 04:50:10

0001 /****************************************************************************************
0002  * Copyright (c) 2010     Ian Monroe <ian@monroe.nu>                                   *
0003  *
0004  * This program is free software; you can redistribute it and/or modify it under        *
0005  * the terms of the GNU General Public License as published by the Free Software        *
0006  * Foundation; either version 2 of the License, or (at your option) version 3 or        *
0007  * any later version accepted by the membership of KDE e.V. (or its successor approved  *
0008  * by the membership of KDE e.V.), which shall act as a proxy defined in Section 14 of  *
0009  * version 3 of the license.                                                            *
0010  *                                                                                      *
0011  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0012  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0013  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0014  *                                                                                      *
0015  * You should have received a copy of the GNU General Public License along with         *
0016  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0017  ****************************************************************************************/
0018 
0019 #ifndef ADDSERVERDIALOG_H
0020 #define ADDSERVERDIALOG_H
0021 
0022 #include <QDialog>
0023 #include <QPointer>
0024 
0025 namespace Ui
0026 {
0027     class NewServerWidget;
0028 }
0029 
0030 class AmpacheAccountLogin;
0031 
0032 class AddServerDialog : public QDialog
0033 {
0034     Q_OBJECT
0035     public:
0036         AddServerDialog();
0037         ~AddServerDialog() override;
0038         QString name();
0039         QString password();
0040         QString username();
0041         QUrl url();
0042     private Q_SLOTS:
0043         void anyTextEdited();
0044         void verifyData();
0045         void loginResult();
0046     private:
0047         Ui::NewServerWidget* m_widgets;
0048         QPointer<AmpacheAccountLogin> m_login;
0049 };
0050 
0051 #endif // ADDSERVERDIALOG_H