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

kget

iwfiletreemodel.h

Go to the documentation of this file.
00001 
00003 /***************************************************************************
00004  *   Copyright (C) 2007 by Joris Guisson and Ivan Vasic                    *
00005  *   joris.guisson@gmail.com                                               *
00006  *   ivasic@gmail.com                                                      *
00007  *                                                                         *
00008  *   This program is free software; you can redistribute it and/or modify  *
00009  *   it under the terms of the GNU General Public License as published by  *
00010  *   the Free Software Foundation; either version 2 of the License, or     *
00011  *   (at your option) any later version.                                   *
00012  *                                                                         *
00013  *   This program is distributed in the hope that it will be useful,       *
00014  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00015  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00016  *   GNU General Public License for more details.                          *
00017  *                                                                         *
00018  *   You should have received a copy of the GNU General Public License     *
00019  *   along with this program; if not, write to the                         *
00020  *   Free Software Foundation, Inc.,                                       *
00021  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
00022  ***************************************************************************/
00023 #ifndef KTIWFILETREEMODEL_H
00024 #define KTIWFILETREEMODEL_H
00025 
00026 #include "torrentfiletreemodel.h"
00027 
00028 namespace kt
00029 {
00030 
00037     class IWFileTreeModel : public TorrentFileTreeModel
00038     {
00039         Q_OBJECT
00040     public:
00041         IWFileTreeModel(bt::TorrentInterface* tc,QObject* parent);
00042         virtual ~IWFileTreeModel();
00043 
00044         virtual int columnCount(const QModelIndex & parent) const;
00045         virtual QVariant headerData(int section, Qt::Orientation orientation,int role) const;
00046         virtual QVariant data(const QModelIndex & index, int role) const;
00047         virtual bool setData(const QModelIndex & index, const QVariant & value, int role); 
00048         virtual void update();
00049         
00050     private slots:
00051         void onPercentageUpdated(float p);
00052         void onPreviewAvailable(bool av);
00053         
00054     private:
00055         void update(const QModelIndex & index,bt::TorrentFileInterface* file,int col);
00056         
00057     private:
00058         bool preview;
00059         bool mmfile;
00060         double percentage;
00061     };
00062 
00063 }
00064 
00065 #endif

kget

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

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal