Nepomuk-Core
#include <rooms-model.h>

Public Types | |
| enum | Column { NameColumn = 0, HandleNameColumn, AccountIdentifierColumn } | 
| enum | Roles { HandleNameRole = Qt::UserRole, FavoriteRoomRole } | 
Public Member Functions | |
| FavoriteRoomsModel (QObject *parent=0) | |
| void | addRoom (const QVariantMap &room) | 
| void | addRooms (const QList< QVariantMap > newRoomList) | 
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const | 
| bool | containsRoom (const QString &handle, const QString &account) const | 
| int | countForAccount (const QString &account) const | 
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const | 
| void | removeRoom (const QVariantMap &room) | 
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const | 
Detailed Description
Definition at line 69 of file rooms-model.h.
Member Enumeration Documentation
Definition at line 74 of file rooms-model.h.
Definition at line 80 of file rooms-model.h.
Constructor & Destructor Documentation
      
  | 
  explicit | 
Definition at line 150 of file rooms-model.cpp.
Member Function Documentation
| void KTp::FavoriteRoomsModel::addRoom | ( | const QVariantMap & | room | ) | 
Add a new room to the list.
- Parameters
 - 
  
room The room to add.  
Definition at line 215 of file rooms-model.cpp.
| void KTp::FavoriteRoomsModel::addRooms | ( | const QList< QVariantMap > | newRoomList | ) | 
Add new rooms to the list.
- Parameters
 - 
  
newRoomList The list with the new rooms to add.  
Definition at line 206 of file rooms-model.cpp.
      
  | 
  virtual | 
Definition at line 163 of file rooms-model.cpp.
| bool KTp::FavoriteRoomsModel::containsRoom | ( | const QString & | handle, | 
| const QString & | account | ||
| ) | const | 
Checks if it contains a room (identified by his handle-name).
- Parameters
 - 
  
handle The handle to look for.  
- Returns
 - True if it contains the room else false.
 
Definition at line 230 of file rooms-model.cpp.
| int KTp::FavoriteRoomsModel::countForAccount | ( | const QString & | account | ) | const | 
Returns the count of rooms for the specified account.
- Parameters
 - 
  
account The account to return the count for.  
- Returns
 - The count of rooms.
 
Definition at line 243 of file rooms-model.cpp.
      
  | 
  virtual | 
Definition at line 172 of file rooms-model.cpp.
| void KTp::FavoriteRoomsModel::removeRoom | ( | const QVariantMap & | room | ) | 
Remove a room from the list.
- Parameters
 - 
  
room The room to remove.  
Definition at line 222 of file rooms-model.cpp.
      
  | 
  virtual | 
Definition at line 154 of file rooms-model.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Mar 22 2013 10:58:52 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.