2010-01-10 23:40:39 -05:00
|
|
|
#ifndef PREFACCOUNTS_H
|
|
|
|
#define PREFACCOUNTS_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include "ui_prefdialog.h"
|
|
|
|
|
2010-01-20 00:11:40 -05:00
|
|
|
#define FSCOMM_EVENT_ACC_REMOVED "fscomm::acc_removed"
|
|
|
|
|
2010-01-10 23:40:39 -05:00
|
|
|
class QSettings;
|
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-01-13 21:32:20 -05:00
|
|
|
public slots:
|
2010-01-23 01:50:13 -05:00
|
|
|
void readConfig(bool reload=true);
|
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:
|
|
|
|
Ui::PrefDialog *_ui;
|
2010-01-13 21:32:20 -05:00
|
|
|
AccountDialog *_accDlg;
|
2010-01-10 23:40:39 -05:00
|
|
|
QSettings *_settings;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PREFACCOUNTS_H
|