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
Definition: PdfExporter.h:19
bool exportHistory()
Definition: PdfExporter.cpp:101
bool exportSelfInfo(const QDateTime &pDate, const QVector< QPair< QString, QString >> &pInfoData)
Definition: PdfExporter.cpp:160
PdfExporter(const QString &pFilename, bool pOpenFile=true, bool pFixFilename=true)
Definition: PdfExporter.cpp:31
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15