2010-01-07 18:00:34 -05:00
|
|
|
#ifndef ACCOUNTDIALOG_H
|
|
|
|
#define ACCOUNTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class AccountDialog;
|
|
|
|
}
|
|
|
|
|
2010-01-07 19:41:10 -05:00
|
|
|
class QSettings;
|
|
|
|
|
2010-01-07 18:00:34 -05:00
|
|
|
class AccountDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2010-01-13 22:25:27 -05:00
|
|
|
AccountDialog(QString accId, QWidget *parent = 0);
|
2010-01-07 18:00:34 -05:00
|
|
|
~AccountDialog();
|
2010-01-13 22:25:27 -05:00
|
|
|
void clear();
|
|
|
|
void setAccId(QString);
|
2010-01-13 23:54:03 -05:00
|
|
|
void readConfig();
|
2010-01-07 18:00:34 -05:00
|
|
|
|
2010-01-13 21:32:20 -05:00
|
|
|
signals:
|
|
|
|
void gwAdded();
|
|
|
|
|
2010-01-07 19:12:54 -05:00
|
|
|
private slots:
|
|
|
|
void writeConfig();
|
2010-01-10 23:40:39 -05:00
|
|
|
void addExtraParam();
|
|
|
|
void remExtraParam();
|
2010-01-07 19:12:54 -05:00
|
|
|
|
2010-01-07 18:00:34 -05:00
|
|
|
protected:
|
|
|
|
void changeEvent(QEvent *e);
|
|
|
|
|
|
|
|
private:
|
2010-01-13 22:25:27 -05:00
|
|
|
QString _accId;
|
2010-01-07 18:00:34 -05:00
|
|
|
Ui::AccountDialog *ui;
|
2010-01-07 19:41:10 -05:00
|
|
|
QSettings *_settings;
|
2010-01-07 18:00:34 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ACCOUNTDIALOG_H
|