BluezQt

initmanagerjob.h
1 /*
2  * BluezQt - Asynchronous BlueZ wrapper library
3  *
4  * SPDX-FileCopyrightText: 2014-2015 David Rosca <[email protected]>
5  *
6  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #ifndef BLUEZQT_INITMANAGERJOB_H
10 #define BLUEZQT_INITMANAGERJOB_H
11 
12 #include "bluezqt_export.h"
13 #include "job.h"
14 #include "manager.h"
15 #include "obexmanager.h"
16 
17 namespace BluezQt
18 {
19 /**
20  * @class BluezQt::InitManagerJob initmanagerjob.h <BluezQt/InitManagerJob>
21  *
22  * Init manager job.
23  *
24  * This class represents a job that initializes Manager.
25  */
26 class BLUEZQT_EXPORT InitManagerJob : public Job
27 {
28  Q_OBJECT
29  Q_PROPERTY(Manager *manager READ manager)
30 
31 public:
32  /**
33  * Destroys an InitManagerJob object.
34  */
35  ~InitManagerJob() override;
36 
37  /**
38  * Returns a manager that is being initialized.
39  *
40  * @return manager
41  */
42  Manager *manager() const;
43 
44 Q_SIGNALS:
45  /**
46  * Indicates that the job have finished.
47  */
48  void result(InitManagerJob *job);
49 
50 private:
51  explicit InitManagerJob(Manager *manager);
52 
53  void doStart() override;
54  void doEmitResult() override;
55 
56  class InitManagerJobPrivate *const d;
57 
58  friend class InitManagerJobPrivate;
59  friend class Manager;
60 };
61 
62 } // namespace BluezQt
63 
64 #endif // BLUEZQT_INITMANAGERJOB_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Sep 25 2022 04:19:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.