2010-01-10 23:40:39 -05:00
|
|
|
#ifndef PREFACCOUNTS_H
|
|
|
|
#define PREFACCOUNTS_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include "ui_prefdialog.h"
|
2010-07-03 12:37:32 -04:00
|
|
|
#include "fscomm.h"
|
2010-01-10 23:40:39 -05:00
|
|
|
|
2010-01-13 21:32:20 -05:00
|
|
|
class AccountDialog;
|
2010-01-10 23:40:39 -05:00
|
|
|
|
2010-01-13 21:32:20 -05:00
|
|
|
class PrefAccounts : public QObject {
|
|
|
|
Q_OBJECT
|
2010-01-10 23:40:39 -05:00
|
|
|
public:
|
|
|
|
explicit PrefAccounts(Ui::PrefDialog *ui);
|
|
|
|
void writeConfig();
|
2010-07-03 12:37:32 -04:00
|
|
|
void postWriteConfig();
|
2010-01-10 23:40:39 -05:00
|
|
|
|
2010-01-13 21:32:20 -05:00
|
|
|
public slots:
|
2010-07-03 12:37:32 -04:00
|
|
|
void readConfig();
|
2010-01-13 21:32:20 -05:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void addAccountBtnClicked();
|
2010-01-13 22:25:27 -05:00
|
|
|
void editAccountBtnClicked();
|
|
|
|
void remAccountBtnClicked();
|
2010-01-13 21:32:20 -05:00
|
|
|
|
2010-01-10 23:40:39 -05:00
|
|
|
private:
|
2010-07-03 12:37:32 -04:00
|
|
|
void markAccountToDelete(QString gwName); /* TODO: Might be interesting to pass the account instead */
|
2010-01-10 23:40:39 -05:00
|
|
|
Ui::PrefDialog *_ui;
|
2010-01-13 21:32:20 -05:00
|
|
|
AccountDialog *_accDlg;
|
2010-07-03 12:37:32 -04:00
|
|
|
QList<QString> _toDelete;
|
2010-01-10 23:40:39 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PREFACCOUNTS_H
|