Logo Search packages:      
Sourcecode: qchat version File versions  Download package

UsersStatisticsModel Class Reference

#include <usersstatisticsmodel.h>

List of all members.

Detailed Description

Anistratov Oleg <ower86@gmail.com>

Definition at line 26 of file usersstatisticsmodel.h.

Public Types

enum  ColumnID {
  NickName, Gender, RealName, Status,
  StatusDescription, IP, CompName, OS,
  Uptime, ChatTime, Last, Invalid = 1000

Public Member Functions

void addColumn (uint c)
void clearColumns ()
int columnCount (const QModelIndex &=QModelIndex()) const
int columnID (uint n)
int columnsCount () const
QVariant data (const QModelIndex &index, int role) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
void resetModel ()
void resort () const
int rowCount (const QModelIndex &=QModelIndex()) const
void setSortingColumn (int c)
void setSortOrder (Qt::SortOrder o)
void setUsers (UsersList *u)
void sort (int column, Qt::SortOrder order=Qt::AscendingOrder) const
int sortingColumn () const
Qt::SortOrder sortOrder () const
 UsersStatisticsModel (QObject *=0)

Private Member Functions

int cmp (UserWgt *, UserWgt *, int, Qt::SortOrder) const

Private Attributes

QVector< uint > m_columns
int m_sortingColumn
Qt::SortOrder m_sortOrder
UserWgt ** m_usersOrder
int m_usersOrderMaxSize
int m_usersOrderSize

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index