2013-07-04 21:59:40 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) by Daniel Molkentin <danimo@owncloud.com>
|
|
|
|
*
|
|
|
|
* This program 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; version 2 of the License.
|
|
|
|
*
|
|
|
|
* This program 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SETTINGSDIALOG_H
|
|
|
|
#define SETTINGSDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QStyledItemDelegate>
|
|
|
|
|
2013-07-05 20:46:43 +04:00
|
|
|
#include "mirall/progressdispatcher.h"
|
|
|
|
|
2013-07-04 21:59:40 +04:00
|
|
|
class QStandardItemModel;
|
|
|
|
class QListWidgetItem;
|
|
|
|
|
|
|
|
namespace Mirall {
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class SettingsDialog;
|
|
|
|
}
|
|
|
|
class AccountSettings;
|
|
|
|
class Application;
|
2013-07-22 14:11:12 +04:00
|
|
|
class FolderMan;
|
2013-07-04 21:59:40 +04:00
|
|
|
|
|
|
|
class SettingsDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit SettingsDialog(Application *app, QWidget *parent = 0);
|
|
|
|
~SettingsDialog();
|
|
|
|
|
|
|
|
void addAccount(const QString &title, QWidget *widget);
|
|
|
|
|
2013-07-08 06:01:26 +04:00
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent *event);
|
|
|
|
|
2013-07-22 14:11:12 +04:00
|
|
|
protected slots:
|
|
|
|
void slotUpdateAccountState();
|
|
|
|
|
2013-07-04 21:59:40 +04:00
|
|
|
private:
|
|
|
|
Ui::SettingsDialog *_ui;
|
|
|
|
AccountSettings *_accountSettings;
|
2013-07-22 14:11:12 +04:00
|
|
|
QListWidgetItem *_accountItem;
|
2013-07-04 21:59:40 +04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SETTINGSDIALOG_H
|