37 lines
814 B
C++
37 lines
814 B
C++
/*!
|
|
* \copyright Copyright (c) 2014-2019 Governikus GmbH & Co. KG, Germany
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "ActivationContext.h"
|
|
|
|
namespace governikus
|
|
{
|
|
|
|
class CustomSchemeActivationContext
|
|
: public ActivationContext
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
const QUrl mActivationUrl;
|
|
QUrl mRedirectAddress;
|
|
|
|
public:
|
|
CustomSchemeActivationContext(const QUrl& pActivationUrl);
|
|
virtual ~CustomSchemeActivationContext() override;
|
|
|
|
QUrl getActivationURL() const override;
|
|
|
|
bool sendProcessing() override;
|
|
bool sendOperationAlreadyActive() override;
|
|
bool sendErrorPage(http_status pStatusCode, const GlobalStatus& pStatus) override;
|
|
bool sendRedirect(const QUrl& pRedirectAddress, const GlobalStatus& pResult) override;
|
|
|
|
Q_SIGNALS:
|
|
void fireShowUserInformation(const QString& pMessage);
|
|
};
|
|
|
|
} // namespace governikus
|