prefaccounts.h 677 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef PREFACCOUNTS_H
  2. #define PREFACCOUNTS_H
  3. #include <QObject>
  4. #include "ui_prefdialog.h"
  5. #include "fscomm.h"
  6. class AccountDialog;
  7. class PrefAccounts : public QObject {
  8. Q_OBJECT
  9. public:
  10. explicit PrefAccounts(Ui::PrefDialog *ui);
  11. void writeConfig();
  12. void postWriteConfig();
  13. public slots:
  14. void readConfig();
  15. private slots:
  16. void addAccountBtnClicked();
  17. void editAccountBtnClicked();
  18. void remAccountBtnClicked();
  19. private:
  20. void markAccountToDelete(QString gwName); /* TODO: Might be interesting to pass the account instead */
  21. Ui::PrefDialog *_ui;
  22. AccountDialog *_accDlg;
  23. QList<QString> _toDelete;
  24. };
  25. #endif // PREFACCOUNTS_H