/* * Copyright (C) 2014 Canonical Ltd. * * Contact: Alberto Mardegan * * This file is part of lomiri-online-accounts-ui * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef MOCK_SIGNON_UI_REQUEST_H #define MOCK_SIGNON_UI_REQUEST_H #include "signonui-request.h" #include #include #include namespace SignOnUi { class RequestPrivate: public QObject { Q_OBJECT Q_DECLARE_PUBLIC(Request) public: RequestPrivate(Request *request); ~RequestPrivate(); static RequestPrivate *mocked(Request *r) { return r->d_ptr; } void setProviderId(const QString &id) { m_providerId = id; } void setWindowTitle(const QString &title) { m_windowTitle = title; } private: mutable Request *q_ptr; QVariantMap m_clientData; QPointer m_handler; QString m_providerId; QString m_windowTitle; }; } // namespace #endif // MOCK_SIGNON_UI_REQUEST_H