• 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
transferhistorycategorizedview.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2 
3  Copyright (C) 2008 Javier Goday <jgoday@gmail.com>
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 TRANSFERHISTORYCATEGORIZEDVIEW_H
12 #define TRANSFERHISTORYCATEGORIZEDVIEW_H
13 
14 #include "ui/history/transferhistorycategorizeddelegate.h"
15 
16 #include <QWidget>
17 #include <QModelIndex>
18 
19 class QDate;
20 class QStandardItemModel;
21 class KCategorizedView;
22 class KCategoryDrawer;
23 class KCategorizedSortFilterProxyModel;
24 
25 class TransferHistoryCategorizedView : public QWidget
26 {
27 Q_OBJECT
28 public:
29 
30  TransferHistoryCategorizedView(QWidget *parent = 0);
31  ~TransferHistoryCategorizedView();
32 
33  void addData(const QDate &date, const QString &url, const QString &dest, int size);
34  QVariant data(const QModelIndex &index, TransferHistoryCategorizedDelegate::AlternativeRoles role) const;
35 
36 signals:
37  void deletedTransfer(const QString &url, const QModelIndex &index);
38  void doubleClicked(const QModelIndex &);
39 
40 public slots:
41  void clear();
42  void setFilterRegExp(const QString &text);
43  void setCategorizedDelegate(TransferHistoryCategorizedDelegate *m_delegate);
44  void removeRow(int row, const QModelIndex &parent = QModelIndex());
45 
46 private slots:
47  void update();
48 
49 private:
50  QStandardItemModel *m_model;
51  KCategorizedView *m_view;
52  KCategoryDrawer *m_drawer;
53  KCategorizedSortFilterProxyModel *m_proxyModel;
54  TransferHistoryCategorizedDelegate *m_delegate;
55 };
56 #endif
TransferHistoryCategorizedView::clear
void clear()
Definition: transferhistorycategorizedview.cpp:84
QWidget
QStandardItemModel
TransferHistoryCategorizedView::~TransferHistoryCategorizedView
~TransferHistoryCategorizedView()
Definition: transferhistorycategorizedview.cpp:62
TransferHistoryCategorizedDelegate
Definition: transferhistorycategorizeddelegate.h:18
TransferHistoryCategorizedView::setFilterRegExp
void setFilterRegExp(const QString &text)
Definition: transferhistorycategorizedview.cpp:89
TransferHistoryCategorizedView::data
QVariant data(const QModelIndex &index, TransferHistoryCategorizedDelegate::AlternativeRoles role) const
Definition: transferhistorycategorizedview.cpp:78
TransferHistoryCategorizedView::doubleClicked
void doubleClicked(const QModelIndex &)
transferhistorycategorizeddelegate.h
TransferHistoryCategorizedView::TransferHistoryCategorizedView
TransferHistoryCategorizedView(QWidget *parent=0)
Definition: transferhistorycategorizedview.cpp:26
TransferHistoryCategorizedView
Definition: transferhistorycategorizedview.h:25
TransferHistoryCategorizedView::deletedTransfer
void deletedTransfer(const QString &url, const QModelIndex &index)
TransferHistoryCategorizedView::removeRow
void removeRow(int row, const QModelIndex &parent=QModelIndex())
Definition: transferhistorycategorizedview.cpp:102
TransferHistoryCategorizedView::addData
void addData(const QDate &date, const QString &url, const QString &dest, int size)
Definition: transferhistorycategorizedview.cpp:66
TransferHistoryCategorizedView::setCategorizedDelegate
void setCategorizedDelegate(TransferHistoryCategorizedDelegate *m_delegate)
Definition: transferhistorycategorizedview.cpp:94
TransferHistoryCategorizedDelegate::AlternativeRoles
AlternativeRoles
Definition: transferhistorycategorizeddelegate.h:22
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