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

kget

  • kt
  • IWFileListModel
Public Member Functions | List of all members
kt::IWFileListModel Class Reference

#include <iwfilelistmodel.h>

Inheritance diagram for kt::IWFileListModel:
Inheritance graph
[legend]

Public Member Functions

 IWFileListModel (bt::TorrentInterface *tc, QObject *parent)
 
virtual ~IWFileListModel ()
 
virtual int columnCount (const QModelIndex &parent) const
 
virtual QVariant data (const QModelIndex &index, int role) const
 
void filePercentageChanged (bt::TorrentFileInterface *file, float percentage)
 
void filePreviewChanged (bt::TorrentFileInterface *file, bool preview)
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role)
 
void update ()
 
- Public Member Functions inherited from kt::TorrentFileListModel
 TorrentFileListModel (bt::TorrentInterface *tc, DeselectMode mode, QObject *parent)
 
virtual ~TorrentFileListModel ()
 
virtual bt::Uint64 bytesToDownload ()
 
virtual void changePriority (const QModelIndexList &indexes, bt::Priority newpriority)
 
virtual void checkAll ()
 
virtual QString dirPath (const QModelIndex &idx)
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent) const
 
virtual bt::TorrentFileInterface * indexToFile (const QModelIndex &idx)
 
virtual void invertCheck ()
 
virtual QModelIndex parent (const QModelIndex &index) const
 
virtual int rowCount (const QModelIndex &parent) const
 
virtual void uncheckAll ()
 
- Public Member Functions inherited from kt::TorrentFileModel
 TorrentFileModel (bt::TorrentInterface *tc, DeselectMode mode, QObject *parent)
 
virtual ~TorrentFileModel ()
 
bool fileNamesEditable () const
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 
virtual void loadExpandedState (QSortFilterProxyModel *pm, QTreeView *tv, const QByteArray &state)
 
virtual void missingFilesMarkedDND ()
 
virtual void onCodecChange ()
 
virtual QByteArray saveExpandedState (QSortFilterProxyModel *pm, QTreeView *tv)
 
void setFileNamesEditable (bool on)
 

Additional Inherited Members

- Public Types inherited from kt::TorrentFileModel
enum  DeselectMode { KEEP_FILES, DELETE_FILES }
 
- Signals inherited from kt::TorrentFileModel
void checkStateChanged ()
 
- Protected Attributes inherited from kt::TorrentFileModel
bool file_names_editable
 
DeselectMode mode
 
bt::TorrentInterface * tc
 

Detailed Description

Author
Joris Guisson

Expands the standard TorrentFileListModel to show more information.

Definition at line 35 of file iwfilelistmodel.h.

Constructor & Destructor Documentation

kt::IWFileListModel::IWFileListModel ( bt::TorrentInterface *  tc,
QObject *  parent 
)

Definition at line 35 of file iwfilelistmodel.cpp.

kt::IWFileListModel::~IWFileListModel ( )
virtual

Definition at line 44 of file iwfilelistmodel.cpp.

Member Function Documentation

int kt::IWFileListModel::columnCount ( const QModelIndex &  parent) const
virtual

Reimplemented from kt::TorrentFileListModel.

Definition at line 48 of file iwfilelistmodel.cpp.

QVariant kt::IWFileListModel::data ( const QModelIndex &  index,
int  role 
) const
virtual

Reimplemented from kt::TorrentFileListModel.

Definition at line 88 of file iwfilelistmodel.cpp.

void kt::IWFileListModel::filePercentageChanged ( bt::TorrentFileInterface *  file,
float  percentage 
)
virtual

Reimplemented from kt::TorrentFileModel.

Definition at line 245 of file iwfilelistmodel.cpp.

void kt::IWFileListModel::filePreviewChanged ( bt::TorrentFileInterface *  file,
bool  preview 
)
virtual

Reimplemented from kt::TorrentFileModel.

Definition at line 252 of file iwfilelistmodel.cpp.

QVariant kt::IWFileListModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
virtual

Reimplemented from kt::TorrentFileListModel.

Definition at line 56 of file iwfilelistmodel.cpp.

bool kt::IWFileListModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
virtual

Reimplemented from kt::TorrentFileListModel.

Definition at line 220 of file iwfilelistmodel.cpp.

void kt::IWFileListModel::update ( )
virtual

Update gui if necessary.

Reimplemented from kt::TorrentFileModel.

Definition at line 259 of file iwfilelistmodel.cpp.


The documentation for this class was generated from the following files:
  • iwfilelistmodel.h
  • iwfilelistmodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



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