BibleTime
btinforendering.h
Go to the documentation of this file.
1 /*********
2 *
3 * In the name of the Father, and of the Son, and of the Holy Spirit.
4 *
5 * This file is part of BibleTime's source code, https://bibletime.info/
6 *
7 * Copyright 1999-2021 by the BibleTime developers.
8 * The BibleTime source code is licensed under the GNU General Public License
9 * version 2.0.
10 *
11 **********/
12 
13 #pragma once
14 
15 #include <QList>
16 #include <QPair>
17 #include <QString>
18 
19 #include "../drivers/btmodulelist.h"
20 
21 
22 namespace Rendering {
23 
24 enum InfoType {
31  Reference, // for rendering references
32 };
33 
34 using InfoData = QPair<InfoType, QString>;
36 
37 
38 /** Parse string for attributes */
39 ListInfoData detectInfo(QString const & data);
40 
41 /** Process list of InfoData and format all data into string */
42 QString formatInfo(ListInfoData const & info,
43  BtConstModuleList const & modules);
44 QString formatInfo(QString const & info, QString const & lang = QString());
45 
46 } /* namespace Rendering { */
QList< CSwordModuleInfo const * > BtConstModuleList
Definition: btmodulelist.h:21
QList< InfoData > ListInfoData
QString formatInfo(const ListInfoData &list, BtConstModuleList const &modules)
ListInfoData detectInfo(QString const &data)
QPair< InfoType, QString > InfoData