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

kget

  • sources
  • kde-4.12
  • kdenetwork
  • kget
  • transfer-plugins
  • bittorrent
  • advanceddetails
trackerview.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2006-2007 by Joris Guisson, Ivan Vasic *
3  * joris.guisson@gmail.com *
4  * ivasic@gmail.com *
5  * *
6  * This program is free software; you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation; either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program; if not, write to the *
18  * Free Software Foundation, Inc., *
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
20  ***************************************************************************/
21 #ifndef TRACKERVIEW_H
22 #define TRACKERVIEW_H
23 
24 #include "ui_trackerview.h"
25 #include <QSortFilterProxyModel>
26 
27 namespace bt
28 {
29  class TorrentInterface;
30 }
31 
32 namespace kt
33 {
34  class TrackerModel;
35 
39  class TrackerView: public QWidget, public Ui_TrackerView
40  {
41  Q_OBJECT
42  public:
43  TrackerView(QWidget *parent);
44  virtual ~TrackerView();
45 
46  void update();
47  void changeTC(bt::TorrentInterface* ti);
48  void saveState(KSharedConfigPtr cfg);
49  void loadState(KSharedConfigPtr cfg);
50 
51  public slots:
52  virtual void updateClicked();
53  virtual void restoreClicked();
54  virtual void changeClicked();
55  virtual void removeClicked();
56  virtual void addClicked();
57  virtual void scrapeClicked();
58  void currentChanged(const QModelIndex & current,const QModelIndex & previous);
59 
60  private:
61  void torrentChanged(bt::TorrentInterface* ti);
62 
63  private:
64  bt::TorrentInterface* tc;
65  TrackerModel* model;
66  QSortFilterProxyModel* proxy_model;
67  };
68 }
69 #endif
kt::TrackerView::scrapeClicked
virtual void scrapeClicked()
Definition: trackerview.cpp:145
kt::TrackerView::updateClicked
virtual void updateClicked()
Definition: trackerview.cpp:137
kt::TrackerView::update
void update()
Definition: trackerview.cpp:163
QWidget
kt::TrackerView::restoreClicked
virtual void restoreClicked()
Definition: trackerview.cpp:130
kt::TrackerModel
Definition: trackermodel.h:40
kt::TrackerView::loadState
void loadState(KSharedConfigPtr cfg)
Definition: trackerview.cpp:217
kt::TrackerView::removeClicked
virtual void removeClicked()
Definition: trackerview.cpp:109
kt::TrackerView::addClicked
virtual void addClicked()
Definition: trackerview.cpp:78
kt::TrackerView::currentChanged
void currentChanged(const QModelIndex &current, const QModelIndex &previous)
Definition: trackerview.cpp:192
QSortFilterProxyModel
kt::TrackerView
Definition: trackerview.h:39
kt::TrackerView::changeClicked
virtual void changeClicked()
Definition: trackerview.cpp:118
kt::TrackerView::saveState
void saveState(KSharedConfigPtr cfg)
Definition: trackerview.cpp:210
kt::TrackerView::changeTC
void changeTC(bt::TorrentInterface *ti)
Definition: trackerview.cpp:153
Ui_TrackerView
kt::TrackerView::TrackerView
TrackerView(QWidget *parent)
Definition: trackerview.cpp:44
kt::TrackerView::~TrackerView
virtual ~TrackerView()
Definition: trackerview.cpp:74
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 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