2
0

account.h 688 B

123456789101112131415161718192021222324252627
  1. #ifndef ACCOUNT_H
  2. #define ACCOUNT_H
  3. #include <QString>
  4. //#include "fscomm.h" Why does this break AccountManager?
  5. class Account {
  6. public:
  7. explicit Account(QString name);
  8. void setName(QString name) { _name = name; }
  9. QString getName() { return _name; }
  10. void setState(int state) { _state = state; }
  11. int getState() { return _state; }
  12. QString getStateName();
  13. QString getUUID() { return _uuid; }
  14. void setStausCode(QString code) { _statusCode = code; }
  15. void setStatusPhrase(QString phrase) { _statusPhrase = phrase; }
  16. private:
  17. QString _name;
  18. int _state;
  19. QString _uuid;
  20. QString _statusCode;
  21. QString _statusPhrase;
  22. };
  23. #endif // ACCOUNT_H