• 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
verificationdialog.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 VERIFICATIONDIALOG_H
21 #define VERIFICATIONDIALOG_H
22 
23 #include "ui_verificationdialog.h"
24 #include "ui_verificationadddlg.h"
25 
26 #include "../core/basedialog.h"
27 
28 class FileModel;
29 class QSortFilterProxyModel;
30 class TransferHandler;
31 class Verifier;
32 class VerificationModel;
33 
34 class VerificationAddDlg : public KDialog
35 {
36  Q_OBJECT
37 
38  public:
39  explicit VerificationAddDlg(VerificationModel *model, QWidget *parent = 0, Qt::WFlags flags = 0);
40 
41  virtual QSize sizeHint() const;
42 
43  private slots:
44  void addChecksum();
45  void updateButton();
46 
47  private:
48  Ui::VerificationAddDlg ui;
49  VerificationModel *m_model;
50  QHash<QString, int> m_diggestLength;
51 };
52 
53 class VerificationDialog : public KGetSaveSizeDialog
54 {
55  Q_OBJECT
56 
57  public:
58  VerificationDialog(QWidget *parent, TransferHandler *transfer, const KUrl &file);
59 
60  virtual QSize sizeHint() const;
61 
62  private slots:
63  void fileFinished(const KUrl &file);
64  void updateButtons();
65  void addClicked();
66  void removeClicked();
67  void verifyClicked();
68  void slotVerified(bool verified);
69  void slotFinished();
70 
71  private:
72  TransferHandler *m_transfer;
73  Verifier *m_verifier;
74  VerificationModel *m_model;
75  QSortFilterProxyModel *m_proxy;
76  FileModel *m_fileModel;
77  QModelIndex m_file;
78  Ui::VerificationDialog ui;
79 };
80 
81 #endif //VERIFICATIONDIALOG_H
TransferHandler
Class TransferHandler:
Definition: transferhandler.h:48
VerificationDialog::VerificationDialog
VerificationDialog(QWidget *parent, TransferHandler *transfer, const KUrl &file)
Definition: verificationdialog.cpp:83
QWidget
KDialog
VerificationAddDlg
Definition: verificationdialog.h:34
VerificationDialog::sizeHint
virtual QSize sizeHint() const
Definition: verificationdialog.cpp:137
FileModel
This model represents the files that are being downloaded.
Definition: filemodel.h:101
KGetSaveSizeDialog
Subclass to make sure that the size of the dialog is automatically stored and restored.
Definition: basedialog.h:32
QSortFilterProxyModel
Verifier
Definition: verifier.h:68
VerificationAddDlg::VerificationAddDlg
VerificationAddDlg(VerificationModel *model, QWidget *parent=0, Qt::WFlags flags=0)
Definition: verificationdialog.cpp:35
VerificationModel
Definition: verificationmodel.h:29
VerificationDialog
Definition: verificationdialog.h:53
VerificationAddDlg::sizeHint
virtual QSize sizeHint() const
Definition: verificationdialog.cpp:58
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