Falkon
Develop
Cross-platform Qt-based web browser
historyitem.h
Go to the documentation of this file.
1
/* ============================================================
2
* Falkon - Qt web browser
3
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
* ============================================================ */
18
#ifndef HISTORYITEM_H
19
#define HISTORYITEM_H
20
21
#include <QIcon>
22
23
#include "
qzcommon.h
"
24
#include "
history.h
"
25
26
class
FALKON_EXPORT
HistoryItem
27
{
28
public
:
29
explicit
HistoryItem
(
HistoryItem
* parent =
nullptr
);
30
~HistoryItem
();
31
32
void
changeParent(
HistoryItem
* parent);
33
HistoryItem
* parent()
const
;
34
35
HistoryItem
* child(
int
row)
const
;
36
int
childCount()
const
;
37
38
void
prependChild(
HistoryItem
* child);
39
void
appendChild(
HistoryItem
* child);
40
void
insertChild(
int
row,
HistoryItem
* child);
41
42
void
removeChild(
int
row);
43
void
removeChild(
HistoryItem
* child);
44
45
int
row();
46
int
indexOfChild(
HistoryItem
* child);
47
48
bool
isTopLevel()
const
;
49
50
QIcon icon()
const
;
51
void
setIcon(
const
QIcon &icon);
52
53
void
setStartTimestamp(qint64 start);
54
qint64 startTimestamp()
const
;
55
56
void
setEndTimestamp(qint64 end);
57
qint64 endTimestamp()
const
;
58
59
HistoryEntry
historyEntry
;
60
QString
title
;
61
bool
canFetchMore
;
62
63
private
:
64
HistoryItem
* m_parent;
65
QList<HistoryItem*> m_children;
66
67
QIcon m_icon;
68
69
qint64 m_startTimestamp;
70
qint64 m_endTimestamp;
71
};
72
73
#endif
// HISTORYITEM_H
HistoryItem
Definition:
historyitem.h:27
HistoryItem::canFetchMore
bool canFetchMore
Definition:
historyitem.h:61
HistoryItem::title
QString title
Definition:
historyitem.h:60
HistoryItem::historyEntry
HistoryEntry historyEntry
Definition:
historyitem.h:59
history.h
qzcommon.h
FALKON_EXPORT
#define FALKON_EXPORT
Definition:
qzcommon.h:28
History::HistoryEntry
Definition:
history.h:39
src
lib
history
historyitem.h
Generated by
1.9.3