• 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
filedlg.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 FILEDLG_H
21 #define FILEDLG_H
22 
23 #include "../../core/basedialog.h"
24 #include "ui_filedlg.h"
25 #include "ui_urlwidget.h"
26 #include "ui_commondata.h"
27 
28 namespace KGetMetalink
29 {
30  class File;
31 }
32 
33 class QSortFilterProxyModel;
34 class VerificationModel;
35 class UrlWidget;
36 
37 class FileDlg : public KGetSaveSizeDialog
38 {
39  Q_OBJECT
40 
41  public:
42  FileDlg(KGetMetalink::File *file, const QStringList &currentFileNames, QSortFilterProxyModel *countrySort, QSortFilterProxyModel *languageSort, QWidget *parent, bool edit = false);
43 
44  Q_SIGNALS:
45  void addFile();
46  void fileEdited(const QString &oldFileName, const QString &newFileName);
47 
48  private slots:
49  void slotUpdateOkButton();
50  void slotOkClicked();
51 
52  //verification stuff
53  void slotUpdateVerificationButtons();
54  void slotAddHash();
55  void slotRemoveHash();
56 
57  private:
58  KGetMetalink::File *m_file;
59  QString m_initialFileName;
60  QStringList m_currentFileNames;
61  VerificationModel *m_verificationModel;
62  QSortFilterProxyModel *m_verificationProxy;
63  bool m_edit;
64  UrlWidget *m_urlWidget;
65  Ui::FileDlg ui;
66  Ui::CommonData uiData;
67  QHash<QString, int> m_diggestLength;
68 };
69 
70 #endif
FileDlg::FileDlg
FileDlg(KGetMetalink::File *file, const QStringList &currentFileNames, QSortFilterProxyModel *countrySort, QSortFilterProxyModel *languageSort, QWidget *parent, bool edit=false)
Definition: filedlg.cpp:33
UrlWidget
Definition: urlwidget.h:36
QWidget
FileDlg::fileEdited
void fileEdited(const QString &oldFileName, const QString &newFileName)
KGetMetalink::File
Definition: metalinker.h:239
FileDlg
Definition: filedlg.h:37
FileDlg::addFile
void addFile()
KGetSaveSizeDialog
Subclass to make sure that the size of the dialog is automatically stored and restored.
Definition: basedialog.h:32
QSortFilterProxyModel
VerificationModel
Definition: verificationmodel.h:29
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