accountmanager.h 462 B

1234567891011121314151617181920212223242526
  1. #ifndef ACCOUNTMANAGER_H
  2. #define ACCOUNTMANAGER_H
  3. #include <QObject>
  4. #include "fscomm.h"
  5. class AccountManager : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit AccountManager(QObject *parent = 0);
  10. void newAccount(Account &acc);
  11. signals:
  12. void sigNewAccount(Account &acc);
  13. public slots:
  14. private slots:
  15. void newEventSlot(QSharedPointer<switch_event_t>);
  16. private:
  17. static QList<QSharedPointer<Account> > _accounts;
  18. };
  19. #endif // ACCOUNTMANAGER_H