• Skip to content
  • Skip to link menu
  • KDE API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • KTp
  • RoomsModel
Public Types | Public Member Functions | List of all members
KTp::RoomsModel Class Reference

#include <rooms-model.h>

Inheritance diagram for KTp::RoomsModel:
Inheritance graph
[legend]

Public Types

enum  Column { PasswordColumn = 0, MembersColumn, NameColumn, DescriptionColumn }
enum  Roles { HandleNameRole = Qt::UserRole }

Public Member Functions

 RoomsModel (QObject *parent=0)
void addRooms (const Tp::RoomInfoList newRoomList)
void clearRoomInfoList ()
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const

Detailed Description

Definition at line 30 of file rooms-model.h.

Member Enumeration Documentation

enum KTp::RoomsModel::Column
Enumerator:
PasswordColumn 
MembersColumn 
NameColumn 
DescriptionColumn 

Definition at line 36 of file rooms-model.h.

enum KTp::RoomsModel::Roles
Enumerator:
HandleNameRole 

Definition at line 43 of file rooms-model.h.

Constructor & Destructor Documentation

KTp::RoomsModel::RoomsModel ( QObject *  parent = 0)
explicit

Definition at line 25 of file rooms-model.cpp.

Member Function Documentation

void KTp::RoomsModel::addRooms ( const Tp::RoomInfoList  newRoomList)

Add new rooms to the list.

Parameters
newRoomListThe list with the new rooms to add.

Definition at line 131 of file rooms-model.cpp.

void KTp::RoomsModel::clearRoomInfoList ( )

Clear the room list.

Definition at line 140 of file rooms-model.cpp.

int KTp::RoomsModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 38 of file rooms-model.cpp.

QVariant KTp::RoomsModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

Definition at line 47 of file rooms-model.cpp.

QVariant KTp::RoomsModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
virtual

Definition at line 103 of file rooms-model.cpp.

int KTp::RoomsModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 29 of file rooms-model.cpp.


The documentation for this class was generated from the following files:
  • rooms-model.h
  • rooms-model.cpp
This file is part of the KDE documentation.
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.

ktp-common-internals API Reference

Skip menu "ktp-common-internals API Reference"
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal