LeechCraft Monocle
0.6.70-14794-g33744ae6ce
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
15
{
16
namespace
Monocle
17
{
18
struct
TOCEntry;
19
22
typedef
QList<TOCEntry>
TOCEntryLevel_t
;
23
26
struct
TOCEntry
27
{
34
ILink_ptr
Link_
;
35
38
QString
Name_
;
39
42
TOCEntryLevel_t
ChildLevel_
;
43
};
44
50
class
IHaveTOC
51
{
52
public
:
55
virtual
~IHaveTOC
() {}
56
64
virtual
TOCEntryLevel_t
GetTOC
() = 0;
65
};
66
}
67
}
68
69
Q_DECLARE_INTERFACE (
LC::Monocle::IHaveTOC
,
70
"org.LeechCraft.Monocle.IHaveTOC/1.0"
)
LC::Monocle::IHaveTOC
Interface for documents supporting table of contents.
Definition:
ihavetoc.h:51
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:55
ilink.h
LC::Monocle::TOCEntryLevel_t
QList< TOCEntry > TOCEntryLevel_t
A list of table of contents entries.
Definition:
ihavetoc.h:22
LC::Monocle::ILink_ptr
std::shared_ptr< ILink > ILink_ptr
Definition:
ilink.h:89
LC
Definition:
iannotation.h:21
LC::Monocle::TOCEntry
A single table of contents entry.
Definition:
ihavetoc.h:27
LC::Monocle::TOCEntry::ChildLevel_
TOCEntryLevel_t ChildLevel_
Child items of this entry.
Definition:
ihavetoc.h:42
LC::Monocle::TOCEntry::Name_
QString Name_
The human-readable name of the entry.
Definition:
ihavetoc.h:38
LC::Monocle::TOCEntry::Link_
ILink_ptr Link_
The link action corresponding to this entry.
Definition:
ihavetoc.h:34
src
plugins
monocle
interfaces
monocle
ihavetoc.h
Generated by
1.9.6