AusweisApp2
HistoryInfo.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "AbstractSettings.h"
10 
11 #include <QDateTime>
12 #include <QString>
13 
14 
15 namespace governikus
16 {
17 
22 {
23  private:
24  static QDateTime roundToSeconds(const QDateTime& pDateTime);
25 
29  QString mSubjectName;
30 
34  QString mSubjectUrl;
35 
39  QString mPurpose;
40 
44  QDateTime mDateTime;
45 
49  QString mTermOfUsage;
50 
54  QStringList mRequestedData;
55 
56  public:
58  {
59  }
60 
61 
62  HistoryInfo(const QString& pSubjectName, const QString& pSubjectUrl, const QString& pUsage, const QDateTime& pDateTime, const QString& pTermOfUsage, const QStringList& pRequestedData);
63 
64  bool operator==(const HistoryInfo& pOther) const
65  {
66  return mSubjectName == pOther.mSubjectName && mSubjectUrl == pOther.mSubjectUrl && mPurpose == pOther.mPurpose
67  && mDateTime == pOther.mDateTime && mTermOfUsage == pOther.mTermOfUsage && mRequestedData == pOther.mRequestedData;
68  }
69 
70 
71  bool operator!=(const HistoryInfo& pOther) const
72  {
73  return !(*this == pOther);
74  }
75 
76 
77  const QString& getSubjectName() const;
78  const QString& getSubjectUrl() const;
79  const QString& getPurpose() const;
80  const QDateTime& getDateTime() const;
81  const QString& getTermOfUsage() const;
82  const QStringList& getRequestedData() const;
83 };
84 
85 
86 } // namespace governikus
Represents a history entry, i.e.
Definition: HistoryInfo.h:22
const QString & getPurpose() const
Definition: HistoryInfo.cpp:51
const QString & getSubjectName() const
Definition: HistoryInfo.cpp:57
const QStringList & getRequestedData() const
Definition: HistoryInfo.cpp:33
bool operator==(const HistoryInfo &pOther) const
Definition: HistoryInfo.h:64
HistoryInfo()
Definition: HistoryInfo.h:57
const QDateTime & getDateTime() const
Definition: HistoryInfo.cpp:45
bool operator!=(const HistoryInfo &pOther) const
Definition: HistoryInfo.h:71
const QString & getTermOfUsage() const
Definition: HistoryInfo.cpp:39
const QString & getSubjectUrl() const
Definition: HistoryInfo.cpp:63
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15