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-2025 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
22namespace Rendering {
23
33
34using InfoData = QPair<InfoType, QString>;
35using ListInfoData = QList<InfoData>;
36
37
38/** Parse string for attributes */
39ListInfoData detectInfo(QString const & data);
40
41/** Process list of InfoData and format all data into string */
42QString formatInfo(ListInfoData const & info,
43 BtConstModuleList const & modules);
44QString formatInfo(QString const & info, QString const & lang = QString());
45
46} /* namespace Rendering { */
QList< CSwordModuleInfo const * > BtConstModuleList
QList< InfoData > ListInfoData
QString formatInfo(const ListInfoData &list, BtConstModuleList const &modules)
ListInfoData detectInfo(QString const &data)
QPair< InfoType, QString > InfoData