AusweisApp2/src/qml/QmlExtension_generic.cpp

63 lines
993 B
C++
Raw Normal View History

2017-07-03 09:33:28 +02:00
/*!
2018-03-28 15:10:51 +02:00
* \copyright Copyright (c) 2016-2018 Governikus GmbH & Co. KG, Germany
2017-07-03 09:33:28 +02:00
*/
#include "QmlExtension.h"
#ifndef Q_OS_WINRT
2017-12-20 14:54:05 +01:00
#include "PdfExporter.h"
2017-07-03 09:33:28 +02:00
#endif
#include <QLoggingCategory>
#include <QUrl>
Q_DECLARE_LOGGING_CATEGORY(qml)
using namespace governikus;
void QmlExtension::showSettings(const QString&)
{
2017-12-20 14:54:05 +01:00
qCWarning(qml) << "NOT IMPLEMENTED";
2017-07-03 09:33:28 +02:00
}
void QmlExtension::shareText(const QString&, const QString&)
{
2017-12-20 14:54:05 +01:00
qCWarning(qml) << "NOT IMPLEMENTED";
2017-07-03 09:33:28 +02:00
}
void QmlExtension::showFeedback(const QString&)
{
2017-12-20 14:54:05 +01:00
qCWarning(qml) << "NOT IMPLEMENTED";
2017-07-03 09:33:28 +02:00
}
void QmlExtension::mailLog(const QString&, const QString&, const QString&)
{
2017-12-20 14:54:05 +01:00
qCWarning(qml) << "NOT IMPLEMENTED";
2017-07-03 09:33:28 +02:00
}
bool QmlExtension::exportHistory(const QString& pPdfUrl) const
{
#ifdef Q_OS_WINRT
return false;
#else
2017-12-20 14:54:05 +01:00
PdfExporter exporter(QUrl(pPdfUrl).toLocalFile());
return exporter.exportHistory();
2017-07-03 09:33:28 +02:00
#endif
}
2017-12-20 14:54:05 +01:00
void QmlExtension::keepScreenOn(bool)
{
qCWarning(qml) << "NOT IMPLEMENTED";
}
2017-07-03 09:33:28 +02:00
#include "moc_QmlExtension.cpp"