rosterlistmodel.h 457 B

12345678910111213141516171819202122232425
  1. #ifndef ROSTERLISTMODEL_H
  2. #define ROSTERLISTMODEL_H
  3. #include "listmodel.h"
  4. #include "rosteritemmodel.h"
  5. class RosterListModel : public ListModel
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit RosterListModel( QObject *parent = 0 );
  10. Q_INVOKABLE void append( RosterItemModel *item );
  11. Q_INVOKABLE void remove( int index );
  12. Q_INVOKABLE int count();
  13. Q_INVOKABLE void clearList();
  14. signals:
  15. void rosterChanged();
  16. };
  17. #endif // ROSTERLISTMODEL_H