2
0

accountdialog.h 844 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef ACCOUNTDIALOG_H
  2. #define ACCOUNTDIALOG_H
  3. #include <QDialog>
  4. #include "fscomm.h"
  5. namespace Ui {
  6. class AccountDialog;
  7. }
  8. class AccountDialog : public QDialog {
  9. Q_OBJECT
  10. public:
  11. AccountDialog(QWidget *parent = 0);
  12. ~AccountDialog();
  13. void clear();
  14. void readConfig();
  15. void setName(QString name) { _name = name; }
  16. signals:
  17. void gwAdded(QString);
  18. private slots:
  19. void writeConfig();
  20. void addExtraParam();
  21. void remExtraParam();
  22. void codecSettingsComboChanged(int);
  23. void clidSettingsComboChanged(int);
  24. protected:
  25. void changeEvent(QEvent *e);
  26. private:
  27. void setParam(QDomElement &parent, QString name, QString value);
  28. /* Might need the profile as well someday */
  29. QString _name; /* Needs to be empty when not editing */
  30. Ui::AccountDialog *ui;
  31. };
  32. #endif // ACCOUNTDIALOG_H