Debian Codegraph @

tests/online-accounts-service/tst_signonui_service/request-manager-mock.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2014 Canonical Ltd.
3 *
4 * Contact: Alberto Mardegan <[email protected]>
5 *
6 * This file is part of lomiri-online-accounts-service
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_REQUEST_MANAGER_H
22 #define MOCK_REQUEST_MANAGER_H
23
24 #include "request-manager.h"
25
26 #include <QObject>
27
28 namespace OnlineAccountsUi {
29
30 class RequestManagerPrivate: public QObject
31 {
32 Q_OBJECT
33 Q_DECLARE_PUBLIC(RequestManager)
34
35 public:
36 RequestManagerPrivate(RequestManager *q);
37 ~RequestManagerPrivate();
38 static RequestManagerPrivate *mocked(RequestManager *q) { return q->d_ptr; }
39
40 Q_SIGNALS:
41 void enqueueCalled(Request *request);
42
43 public:
44 mutable RequestManager *q_ptr;
45 };
46
47 } // namespace
48
49 #endif // MOCK_REQUEST_MANAGER_H