• 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
  • ui
  • metalinkcreator
urlwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2 * Copyright (C) 2009 Matthias Fuchs <mat69@gmx.net> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
18 ***************************************************************************/
19 
20 #ifndef URLWIDGET_H
21 #define URLWIDGET_H
22 
23 #include <QtCore/QPointer>
24 
25 #include "ui_urlwidget.h"
26 
27 namespace KGetMetalink
28 {
29  class Resources;
30 }
31 
32 class MirrorModel;
33 class MirrorProxyModel;
34 class QSortFilterProxyModel;
35 
36 class UrlWidget : public QObject
37 {
38  Q_OBJECT
39 
40  public:
41  UrlWidget(QObject *parent = 0);
42  ~UrlWidget();
43 
44  void init(KGetMetalink::Resources *resources, QSortFilterProxyModel *countrySort);
45 
46  QWidget *widget();
47 
48  void save();
49 
50  bool hasUrls() const;
51 
52  signals:
53  void urlsChanged();
54 
55  private slots:
56  void slotUrlClicked();
57  void slotAddMirror();
58  void slotRemoveMirror();
59 
60  private:
61  KGetMetalink::Resources *m_resources;
62  MirrorModel *m_mirrorModel;
63  MirrorProxyModel *m_proxy;
64  QSortFilterProxyModel *m_countrySort;
65  QPointer<QWidget> m_widget;
66  Ui::UrlWidget ui;
67 };
68 
69 #endif
UrlWidget::urlsChanged
void urlsChanged()
UrlWidget
Definition: urlwidget.h:36
UrlWidget::widget
QWidget * widget()
Definition: urlwidget.cpp:61
QWidget
QObject
MirrorModel
Definition: mirrormodel.h:88
MirrorProxyModel
Definition: mirrormodel.h:49
UrlWidget::~UrlWidget
~UrlWidget()
Definition: urlwidget.cpp:56
QSortFilterProxyModel
UrlWidget::save
void save()
Definition: urlwidget.cpp:111
UrlWidget::init
void init(KGetMetalink::Resources *resources, QSortFilterProxyModel *countrySort)
Definition: urlwidget.cpp:66
KGetMetalink::Resources
Definition: metalinker.h:190
UrlWidget::UrlWidget
UrlWidget(QObject *parent=0)
Definition: urlwidget.cpp:27
UrlWidget::hasUrls
bool hasUrls() const
Definition: urlwidget.cpp:85
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