• 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
webseedstab.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2008 by Joris Guisson and 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 KTWEBSEEDSTAB_H
22 #define KTWEBSEEDSTAB_H
23 
24 #include <QWidget>
25 #include <QSortFilterProxyModel>
26 #include "ui_webseedstab.h"
27 
28 namespace bt
29 {
30  class TorrentInterface;
31 }
32 
33 namespace kt
34 {
35  class WebSeedsModel;
36 
40  class WebSeedsTab : public QWidget,public Ui_WebSeedsTab
41  {
42  Q_OBJECT
43  public:
44  WebSeedsTab(QWidget* parent);
45  virtual ~WebSeedsTab();
46 
51  void changeTC(bt::TorrentInterface* tc);
52 
54  void update();
55 
56  void saveState(KSharedConfigPtr cfg);
57  void loadState(KSharedConfigPtr cfg);
58 
59  private slots:
60  void addWebSeed();
61  void removeWebSeed();
62  void onWebSeedTextChanged(const QString & ws);
63  void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected);
64 
65  private:
66  void selectionChanged(const QModelIndexList & indexes);
67 
68  private:
69  bt::TorrentInterface* curr_tc;
70  WebSeedsModel* model;
71  QSortFilterProxyModel* proxy_model;
72  };
73 
74 }
75 
76 #endif
kt::WebSeedsTab::~WebSeedsTab
virtual ~WebSeedsTab()
Definition: webseedstab.cpp:58
kt::WebSeedsTab::changeTC
void changeTC(bt::TorrentInterface *tc)
Switch to a different torrent.
Definition: webseedstab.cpp:62
QWidget
kt::WebSeedsModel
Definition: webseedsmodel.h:38
kt::WebSeedsTab
Tab which displays the list of webseeds of a torrent, and allows you to add or remove them...
Definition: webseedstab.h:40
kt::WebSeedsTab::WebSeedsTab
WebSeedsTab(QWidget *parent)
Definition: webseedstab.cpp:33
kt::WebSeedsTab::saveState
void saveState(KSharedConfigPtr cfg)
Definition: webseedstab.cpp:152
QSortFilterProxyModel
Ui_WebSeedsTab
kt::WebSeedsTab::loadState
void loadState(KSharedConfigPtr cfg)
Definition: webseedstab.cpp:159
kt::WebSeedsTab::update
void update()
Check to see if the GUI needs to be updated.
Definition: webseedstab.cpp:146
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