1 | /* |
2 | * BluezQt - Asynchronous BlueZ wrapper library |
3 | * |
4 | * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com> |
5 | * |
6 | * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
7 | */ |
8 | |
9 | #ifndef BLUEZQT_INITOBEXMANAGERJOB_H |
10 | #define BLUEZQT_INITOBEXMANAGERJOB_H |
11 | |
12 | #include "bluezqt_export.h" |
13 | #include "job.h" |
14 | |
15 | namespace BluezQt |
16 | { |
17 | class ObexManager; |
18 | |
19 | /** |
20 | * @class BluezQt::InitObexManagerJob initobexmanagerjob.h <BluezQt/InitObexManagerJob> |
21 | * |
22 | * Init obex manager job. |
23 | * |
24 | * This class represents a job that initializes ObexManager. |
25 | */ |
26 | class BLUEZQT_EXPORT InitObexManagerJob : public Job |
27 | { |
28 | Q_OBJECT |
29 | Q_PROPERTY(ObexManager *manager READ manager) |
30 | |
31 | public: |
32 | /** |
33 | * Destroys an InitObexManagerJob object. |
34 | */ |
35 | ~InitObexManagerJob() override; |
36 | |
37 | /** |
38 | * Returns a manager that is being initialized. |
39 | * |
40 | * @return manager |
41 | */ |
42 | ObexManager *manager() const; |
43 | |
44 | Q_SIGNALS: |
45 | /** |
46 | * Indicates that the job have finished. |
47 | */ |
48 | void result(InitObexManagerJob *job); |
49 | |
50 | private: |
51 | BLUEZQT_NO_EXPORT explicit InitObexManagerJob(ObexManager *manager); |
52 | |
53 | void doStart() override; |
54 | void doEmitResult() override; |
55 | |
56 | std::unique_ptr<class InitObexManagerJobPrivate> const d; |
57 | |
58 | friend class InitObexManagerJobPrivate; |
59 | friend class ObexManager; |
60 | }; |
61 | |
62 | } // namespace BluezQt |
63 | |
64 | #endif // BLUEZQT_INITOBEXMANAGERJOB_H |
65 | |