LeechCraft Monocle
0.6.70-16373-g319c272718
Modular document viewer for LeechCraft
Loading...
Searching...
No Matches
ihavetoc.h
Go to the documentation of this file.
1
/**********************************************************************
2
* LeechCraft - modular cross-platform feature rich internet client.
3
* Copyright (C) 2006-2014 Georg Rudoy
4
*
5
* Distributed under the Boost Software License, Version 1.0.
6
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7
**********************************************************************/
8
9
#pragma once
10
11
#include <QMetaType>
12
#include "
ilink.h
"
13
14
namespace
LC::Monocle
15
{
16
template
<
typename
T>
17
struct
TOCEntryT;
18
21
template
<
typename
T>
22
using
TOCEntryLevelT
= QVector<TOCEntryT<T>>;
23
26
template
<
typename
T>
27
struct
TOCEntryT
28
{
31
T
Navigation_
;
32
35
QString
Name_
;
36
39
TOCEntryLevelT<T>
ChildLevel_
;
40
};
41
42
using
TOCEntryLevel_t
=
TOCEntryLevelT<NavigationAction>
;
43
using
TOCEntry
=
TOCEntryT<NavigationAction>
;
44
45
using
TOCEntryIDLevel
=
TOCEntryLevelT<QByteArray>
;
46
using
TOCEntryID
=
TOCEntryT<QByteArray>
;
47
53
class
IHaveTOC
54
{
55
public
:
58
virtual
~IHaveTOC
() {}
59
67
virtual
TOCEntryLevel_t
GetTOC
() = 0;
68
};
69
}
70
71
Q_DECLARE_INTERFACE (
LC::Monocle::IHaveTOC
,
72
"org.LeechCraft.Monocle.IHaveTOC/1.0"
)
LC::Monocle::IHaveTOC
Interface for documents supporting table of contents.
Definition
ihavetoc.h:54
LC::Monocle::IHaveTOC::GetTOC
virtual TOCEntryLevel_t GetTOC()=0
Returns the root level of the TOC.
LC::Monocle::IHaveTOC::~IHaveTOC
virtual ~IHaveTOC()
Virtual destructor.
Definition
ihavetoc.h:58
ilink.h
LC::Monocle
Definition
iannotation.h:23
LC::Monocle::TOCEntryLevel_t
TOCEntryLevelT< NavigationAction > TOCEntryLevel_t
Definition
ihavetoc.h:42
LC::Monocle::TOCEntryLevelT
QVector< TOCEntryT< T > > TOCEntryLevelT
A list of table of contents entries.
Definition
ihavetoc.h:22
LC::Monocle::TOCEntryIDLevel
TOCEntryLevelT< QByteArray > TOCEntryIDLevel
Definition
ihavetoc.h:45
LC::Monocle::TOCEntryT
A single table of contents entry.
Definition
ihavetoc.h:28
LC::Monocle::TOCEntryT::Navigation_
T Navigation_
The navigation action corresponding to this entry.
Definition
ihavetoc.h:31
LC::Monocle::TOCEntryT::ChildLevel_
TOCEntryLevelT< T > ChildLevel_
Child items of this entry.
Definition
ihavetoc.h:39
LC::Monocle::TOCEntryT::Name_
QString Name_
The human-readable name of the entry.
Definition
ihavetoc.h:35
src
plugins
monocle
interfaces
monocle
ihavetoc.h
Generated by
1.12.0