00001 #ifndef UIACCOUNTSETTINGS_H 00002 #define UIACCOUNTSETTINGS_H 00003 00004 #include <QDialog> 00005 00006 #include "datatypes/account.h" 00007 #include "datatypes/driverinfo.h" 00008 #include "uiaddaccount.h" 00009 #include <servicemgr.h> 00010 00011 namespace Ui { 00012 class UIAccountSettings; 00013 } 00014 00027 class UIAccountSettings : public QDialog 00028 { 00029 Q_OBJECT 00030 00031 public: 00043 explicit UIAccountSettings(ServiceMgr *sm, QWidget *parent = 0); 00044 ~UIAccountSettings(); 00045 00052 void addNewAccount(); 00053 00054 private: 00055 Ui::UIAccountSettings *ui; 00056 00057 ServiceMgr *sm; 00058 00059 private slots: 00060 void on_btnAddNew_clicked(); 00061 00062 void updateAccounts(QString accountName, AccountList name); 00063 00064 void selectAccount(); 00065 00066 void on_btnRemove_clicked(); 00067 00068 void on_btnReconnect_clicked(); 00069 }; 00070 00071 #endif // UIACCOUNTSETTINGS_H