UIs::Searching::SearchModel Class Reference

#include <SearchModel.h> [code]

Inherits QAbstractTableModel.

Inheritance diagram for UIs::Searching::SearchModel:

Inheritance graph
[legend]
Collaboration diagram for UIs::Searching::SearchModel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 85 of file SearchModel.h.

Signals

void itemAdded ()

Public Member Functions

 SearchModel (QObject *parent)
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
QVariant data (const QModelIndex &index, int role) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
bool hasChildren (const QModelIndex &index) const
QModelIndex index (int row, int column, const QModelIndex &parent) const
void tabActivated ()
void tabDisactivated ()
void addItem (SearchResult *result)
void addHits (const QueryHits &quieryHits)

Private Types

enum  SearchModelField {
  fileName,
  extension,
  size,
  hosts,
  speed,
  client
}

Private Member Functions

 SearchModel (const SearchModel &)
SearchModeloperator= (const SearchModel &)
int findIndex (SearchResult *result)

Private Attributes

QList< SearchResultresultList
IconProvider iconProvider
int cCount
bool tabActive

Classes

class  IconProvider


Member Enumeration Documentation

enum UIs::Searching::SearchModel::SearchModelField [private]
 

Enumerator:
fileName 
extension 
size 
hosts 
speed 
client 

Definition at line 129 of file SearchModel.h.


Constructor & Destructor Documentation

UIs::Searching::SearchModel::SearchModel const SearchModel  )  [private]
 

SearchModel::SearchModel QObject parent  ) 
 

Definition at line 89 of file SearchModel.cpp.


Member Function Documentation

void SearchModel::addHits const QueryHits quieryHits  ) 
 

Definition at line 108 of file SearchModel.cpp.

void SearchModel::addItem SearchResult result  ) 
 

Definition at line 112 of file SearchModel.cpp.

int SearchModel::columnCount const QModelIndex &  parent = QModelIndex()  )  const
 

Definition at line 144 of file SearchModel.cpp.

QVariant SearchModel::data const QModelIndex &  index,
int  role
const
 

Definition at line 149 of file SearchModel.cpp.

int SearchModel::findIndex SearchResult result  )  [private]
 

Definition at line 304 of file SearchModel.cpp.

bool SearchModel::hasChildren const QModelIndex &  index  )  const
 

Definition at line 198 of file SearchModel.cpp.

QVariant SearchModel::headerData int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole
const
 

Definition at line 248 of file SearchModel.cpp.

QModelIndex SearchModel::index int  row,
int  column,
const QModelIndex &  parent
const
 

Definition at line 209 of file SearchModel.cpp.

void UIs::Searching::SearchModel::itemAdded  )  [signal]
 

SearchModel& UIs::Searching::SearchModel::operator= const SearchModel  )  [private]
 

int SearchModel::rowCount const QModelIndex &  parent = QModelIndex()  )  const
 

Definition at line 133 of file SearchModel.cpp.

void SearchModel::tabActivated  ) 
 

Definition at line 285 of file SearchModel.cpp.

void SearchModel::tabDisactivated  ) 
 

Definition at line 290 of file SearchModel.cpp.


Member Data Documentation

int UIs::Searching::SearchModel::cCount [private]
 

Definition at line 133 of file SearchModel.h.

IconProvider UIs::Searching::SearchModel::iconProvider [private]
 

Definition at line 132 of file SearchModel.h.

QList<SearchResult> UIs::Searching::SearchModel::resultList [private]
 

Definition at line 131 of file SearchModel.h.

bool UIs::Searching::SearchModel::tabActive [private]
 

Definition at line 134 of file SearchModel.h.


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