• 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
  • history
transferhistory.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2007 by Lukas Appelhans <l.appelhans@gmx.de>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 */
10 
11 #ifndef TRANSFERHISTORY_H
12 #define TRANSFERHISTORY_H
13 
14 #include <QList>
15 #include "../../core/basedialog.h"
16 
17 #include "ui_transferhistory.h"
18 
19 class QFileSystemWatcher;
20 class QModelIndex;
21 class QProgressBar;
22 class KLineEdit;
23 class KPushButton;
24 class TransferHistoryStore;
25 class TransferHistoryItem;
26 
27 class TransferHistory : public KGetSaveSizeDialog, Ui::TransferHistory
28 {
29  Q_OBJECT
30 
31  public:
32  TransferHistory(QWidget *parent = 0);
33  ~TransferHistory();
34 
35  virtual QSize sizeHint() const;
36 
37  private:
38  enum RangeType {
39  Date = 0,
40  Size = 1,
41  Host = 2
42  };
43  void hideEvent(QHideEvent *event);
44  QString statusText(int status) const;
45 
46  bool save;
47  QFileSystemWatcher *watcher;
48  int m_rangeType;
49  QWidget *m_view;
50  QProgressBar *m_progressBar;
51  QVBoxLayout *m_verticalLayout;
52  KComboBox *m_rangeTypeCombobox;
53  QHBoxLayout *m_hboxLayout;
54  KLineEdit *m_searchBar;
55  QAction *m_actionDelete_Selected;
56  QAction *m_actionClear;
57  QAction *m_actionDownload;
58  QAction *m_openFile;
59  QPushButton *m_clearButton;
60  KPushButton *m_iconView;
61  KPushButton *m_listView;
62  bool m_iconModeEnabled;
63  TransferHistoryStore *m_store;
64 
65  public slots:
66  void slotDeleteTransfer(const QString &url, const QModelIndex &index = QModelIndex());
67 
68  private slots:
69  void slotDeleteTransfer();
70  void slotAddTransfers();
71  void slotClear();
72  void slotWriteDefault();
73  void slotDownload();
74  void slotOpenFile(const QModelIndex &index = QModelIndex());
75  void contextMenuEvent(QContextMenuEvent *event);
76  void slotLoadRangeType(int type);
77  void slotSetListMode();
78  void slotSetIconMode();
79  void slotElementLoaded(int number, int total, const TransferHistoryItem &item);
80  void slotLoadFinished();
81 };
82 
83 #endif
TransferHistory::sizeHint
virtual QSize sizeHint() const
Definition: transferhistory.cpp:114
TransferHistoryItem
Definition: transferhistorystore.h:23
QWidget
TransferHistoryStore
Definition: transferhistorystore.h:53
TransferHistory
Definition: transferhistory.h:27
TransferHistory::slotDeleteTransfer
void slotDeleteTransfer(const QString &url, const QModelIndex &index=QModelIndex())
Definition: transferhistory.cpp:131
KGetSaveSizeDialog
Subclass to make sure that the size of the dialog is automatically stored and restored.
Definition: basedialog.h:32
TransferHistory::TransferHistory
TransferHistory(QWidget *parent=0)
Definition: transferhistory.cpp:42
TransferHistory::~TransferHistory
~TransferHistory()
Definition: transferhistory.cpp:109
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