QTfrontend/model/roomslistmodel.h
changeset 6733 5abbc345a82f
parent 6732 c906dc78091f
child 6966 eda4f63bec41
equal deleted inserted replaced
6732:c906dc78091f 6733:5abbc345a82f
    13     QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    13     QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    14     int rowCount(const QModelIndex & parent) const;
    14     int rowCount(const QModelIndex & parent) const;
    15     int columnCount(const QModelIndex & parent) const;
    15     int columnCount(const QModelIndex & parent) const;
    16     QVariant data(const QModelIndex &index, int role) const;
    16     QVariant data(const QModelIndex &index, int role) const;
    17 
    17 
       
    18 public slots:
       
    19     void setRoomsList(const QStringList & rooms);
       
    20     void addRoom(const QStringList & info);
       
    21     void removeRoom(const QString & name);
       
    22     void updateRoom(const QString & name, const QStringList & info);
       
    23 
    18 private:
    24 private:
    19     QList<QStringList> m_data;
    25     QList<QStringList> m_data;
    20     QStringList m_headerData;
    26     QStringList m_headerData;
       
    27 
       
    28     QStringList roomInfo2RoomRecord(const QStringList & info);
    21 };
    29 };
    22 
    30 
    23 #endif // ROOMSLISTMODEL_H
    31 #endif // ROOMSLISTMODEL_H