~ubuntu-branches/ubuntu/utopic/ubuntu-system-settings-online-accounts/utopic-proposed

« back to all changes in this revision

Viewing changes to tests/online-accounts-ui/mock/signonui-request-mock.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Ubuntu daily release, Alberto Mardegan
  • Date: 2014-10-01 13:31:34 UTC
  • mfrom: (1.1.36)
  • Revision ID: package-import@ubuntu.com-20141001133134-3fgng1e52axk5d6t
Tags: 0.4+14.10.20141001-0ubuntu1
[ Ubuntu daily release ]
* New rebuild forced

[ Alberto Mardegan ]
* Minor improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2014 Canonical Ltd.
 
3
 *
 
4
 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
 
5
 *
 
6
 * This file is part of online-accounts-ui
 
7
 *
 
8
 * This program is free software: you can redistribute it and/or modify it
 
9
 * under the terms of the GNU General Public License version 3, as published
 
10
 * by the Free Software Foundation.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful, but
 
13
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
14
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
15
 * PURPOSE.  See the GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License along
 
18
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
 */
 
20
 
 
21
#ifndef MOCK_SIGNON_UI_REQUEST_H
 
22
#define MOCK_SIGNON_UI_REQUEST_H
 
23
 
 
24
#include "request-handler.h"
 
25
#include "signonui-request.h"
 
26
 
 
27
#include <QPointer>
 
28
#include <QVariantMap>
 
29
 
 
30
namespace SignOnUi {
 
31
 
 
32
class RequestPrivate: public QObject
 
33
{
 
34
    Q_OBJECT
 
35
    Q_DECLARE_PUBLIC(Request)
 
36
 
 
37
public:
 
38
    RequestPrivate(Request *request);
 
39
    ~RequestPrivate();
 
40
    static RequestPrivate *mocked(Request *r) { return r->d_ptr; }
 
41
 
 
42
private:
 
43
    mutable Request *q_ptr;
 
44
    QVariantMap m_clientData;
 
45
    QPointer<RequestHandler> m_handler;
 
46
};
 
47
 
 
48
} // namespace
 
49
 
 
50
#endif // MOCK_SIGNON_UI_REQUEST_H