AusweisApp2
PdfExporter.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include <QCoreApplication>
10 #include <QDateTime>
11 #include <QList>
12 #include <QString>
13 #include <QStringList>
14 #include <QVector>
15 
16 namespace governikus
17 {
19 {
20  Q_DECLARE_TR_FUNCTIONS(governikus::PdfExporter)
21 
22  private:
23  QString mFilename;
24  bool mOpenFile;
25  bool mColoredRow;
26  int mColumnCount;
27  QStringList mContent;
28 
29  [[nodiscard]] QString getContent() const;
30 
31  void checkOpenFile(bool pSuccess);
32  void initTable(int pColumnCount, const QList<int>& pWidth, const QStringList& pValues);
33  void closeTable();
34  void addTableRow(const QStringList& pValues);
35  void toggleRowColor();
36 
37  public:
38  PdfExporter(const QString& pFilename, bool pOpenFile = true, bool pFixFilename = true);
39  bool exportHistory();
40  bool exportSelfInfo(const QDateTime& pDate, const QVector<QPair<QString, QString>>& pInfoData);
41 };
42 
43 } // namespace governikus
governikus::PdfExporter::exportSelfInfo
bool exportSelfInfo(const QDateTime &pDate, const QVector< QPair< QString, QString >> &pInfoData)
Definition: PdfExporter.cpp:160
governikus::PdfExporter
Definition: PdfExporter.h:19
governikus::PdfCreator::save
bool save()
Definition: PdfCreator.cpp:109
AppSettings.h
AccessRoleAndRight.h
PdfCreator.h
PdfExporter.h
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
governikus::PdfExporter::PdfExporter
PdfExporter(const QString &pFilename, bool pOpenFile=true, bool pFixFilename=true)
Definition: PdfExporter.cpp:31
governikus::LanguageLoader::getInstance
static LanguageLoader & getInstance()
governikus::PdfExporter::exportHistory
bool exportHistory()
Definition: PdfExporter.cpp:101
governikus::PdfCreator
Definition: PdfCreator.h:18
LanguageLoader.h
governikus::LanguageLoader::getUsedLocale
const QLocale & getUsedLocale() const
Definition: LanguageLoader.cpp:176