chatslistmodel.h 435 B

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