• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kget

  • sources
  • kde-4.14
  • kdenetwork
  • kget
  • ui
  • history
transferhistorycategorizeddelegate.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 TRANSFERHISTORYCATEGORIZEDDELEGATE_H
12 #define TRANSFERHISTORYCATEGORIZEDDELEGATE_H
13 
14 #include <QObject>
15 
16 class QStandardItem;
17 
18 class TransferHistoryCategorizedDelegate : public QObject
19 {
20 Q_OBJECT
21 public:
22  enum AlternativeRoles {
23  RoleSize = 0xFF,
24  RoleDate = 0xFE,
25  RoleUrl = 0xFD,
26  RoleDest = 0xFA
27  };
28 
29  TransferHistoryCategorizedDelegate();
30  ~TransferHistoryCategorizedDelegate();
31 
32  virtual void categorizeItem(QStandardItem *item)
33  {
34  Q_UNUSED(item)
35  };
36 };
37 
39 class DateCategorizedDelegate : public TransferHistoryCategorizedDelegate
40 {
41 public:
42  DateCategorizedDelegate();
43  ~DateCategorizedDelegate();
44 
45  void categorizeItem(QStandardItem *item);
46 };
47 
49 class SizeCategorizedDelegate : public TransferHistoryCategorizedDelegate
50 {
51 public:
52  SizeCategorizedDelegate();
53  ~SizeCategorizedDelegate();
54 
55  void categorizeItem(QStandardItem *item);
56 };
57 
59 class HostCategorizedDelegate : public TransferHistoryCategorizedDelegate
60 {
61 public:
62  HostCategorizedDelegate();
63  ~HostCategorizedDelegate();
64 
65  void categorizeItem(QStandardItem *item);
66 };
67 
68 #endif
SizeCategorizedDelegate::SizeCategorizedDelegate
SizeCategorizedDelegate()
Definition: transferhistorycategorizeddelegate.cpp:64
SizeCategorizedDelegate
Categorzes the transfers in size ranges.
Definition: transferhistorycategorizeddelegate.h:49
DateCategorizedDelegate::~DateCategorizedDelegate
~DateCategorizedDelegate()
Definition: transferhistorycategorizeddelegate.cpp:33
DateCategorizedDelegate::DateCategorizedDelegate
DateCategorizedDelegate()
Definition: transferhistorycategorizeddelegate.cpp:29
SizeCategorizedDelegate::categorizeItem
void categorizeItem(QStandardItem *item)
Definition: transferhistorycategorizeddelegate.cpp:70
HostCategorizedDelegate::HostCategorizedDelegate
HostCategorizedDelegate()
Definition: transferhistorycategorizeddelegate.cpp:96
TransferHistoryCategorizedDelegate::RoleDate
Definition: transferhistorycategorizeddelegate.h:24
TransferHistoryCategorizedDelegate
Definition: transferhistorycategorizeddelegate.h:18
TransferHistoryCategorizedDelegate::RoleDest
Definition: transferhistorycategorizeddelegate.h:26
HostCategorizedDelegate
Categorizes the transfer by source host.
Definition: transferhistorycategorizeddelegate.h:59
SizeCategorizedDelegate::~SizeCategorizedDelegate
~SizeCategorizedDelegate()
Definition: transferhistorycategorizeddelegate.cpp:67
TransferHistoryCategorizedDelegate::TransferHistoryCategorizedDelegate
TransferHistoryCategorizedDelegate()
Definition: transferhistorycategorizeddelegate.cpp:21
TransferHistoryCategorizedDelegate::~TransferHistoryCategorizedDelegate
~TransferHistoryCategorizedDelegate()
Definition: transferhistorycategorizeddelegate.cpp:25
HostCategorizedDelegate::~HostCategorizedDelegate
~HostCategorizedDelegate()
Definition: transferhistorycategorizeddelegate.cpp:100
QObject
TransferHistoryCategorizedDelegate::RoleSize
Definition: transferhistorycategorizeddelegate.h:23
TransferHistoryCategorizedDelegate::RoleUrl
Definition: transferhistorycategorizeddelegate.h:25
DateCategorizedDelegate
Categorizes the transfers in date ranges.
Definition: transferhistorycategorizeddelegate.h:39
TransferHistoryCategorizedDelegate::categorizeItem
virtual void categorizeItem(QStandardItem *item)
Definition: transferhistorycategorizeddelegate.h:32
DateCategorizedDelegate::categorizeItem
void categorizeItem(QStandardItem *item)
Definition: transferhistorycategorizeddelegate.cpp:37
HostCategorizedDelegate::categorizeItem
void categorizeItem(QStandardItem *item)
Definition: transferhistorycategorizeddelegate.cpp:104
QStandardItem
TransferHistoryCategorizedDelegate::AlternativeRoles
AlternativeRoles
Definition: transferhistorycategorizeddelegate.h:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:28:43 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