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

kget

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

#include <iwfiletreemodel.h>

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

Public Member Functions

 IWFileTreeModel (bt::TorrentInterface *tc, QObject *parent)
 
virtual ~IWFileTreeModel ()
 
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)
 
virtual void update ()
 
- Public Member Functions inherited from kt::TorrentFileTreeModel
 TorrentFileTreeModel (bt::TorrentInterface *tc, DeselectMode mode, QObject *parent)
 
virtual ~TorrentFileTreeModel ()
 
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 void loadExpandedState (QSortFilterProxyModel *pm, QTreeView *tv, const QByteArray &state)
 
virtual void onCodecChange ()
 
virtual QModelIndex parent (const QModelIndex &index) const
 
virtual int rowCount (const QModelIndex &parent) const
 
virtual QByteArray saveExpandedState (QSortFilterProxyModel *pm, QTreeView *tv)
 
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 missingFilesMarkedDND ()
 
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::TorrentFileTreeModel
bool emit_check_state_change
 
Node * root
 
- Protected Attributes inherited from kt::TorrentFileModel
bool file_names_editable
 
DeselectMode mode
 
bt::TorrentInterface * tc
 

Detailed Description

Author
Joris Guisson

Expands the standard TorrentFileTreeModel to show more information.

Definition at line 35 of file iwfiletreemodel.h.

Constructor & Destructor Documentation

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

Definition at line 35 of file iwfiletreemodel.cpp.

kt::IWFileTreeModel::~IWFileTreeModel ( )
virtual

Definition at line 51 of file iwfiletreemodel.cpp.

Member Function Documentation

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

Reimplemented from kt::TorrentFileTreeModel.

Definition at line 55 of file iwfiletreemodel.cpp.

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

Reimplemented from kt::TorrentFileTreeModel.

Definition at line 92 of file iwfiletreemodel.cpp.

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

Reimplemented from kt::TorrentFileModel.

Definition at line 271 of file iwfiletreemodel.cpp.

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

Reimplemented from kt::TorrentFileModel.

Definition at line 277 of file iwfiletreemodel.cpp.

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

Reimplemented from kt::TorrentFileTreeModel.

Definition at line 60 of file iwfiletreemodel.cpp.

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

Reimplemented from kt::TorrentFileTreeModel.

Definition at line 232 of file iwfiletreemodel.cpp.

void kt::IWFileTreeModel::update ( )
virtual

Update gui if necessary.

Reimplemented from kt::TorrentFileModel.

Definition at line 320 of file iwfiletreemodel.cpp.


The documentation for this class was generated from the following files:
  • iwfiletreemodel.h
  • iwfiletreemodel.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