File indexing completed on 2024-12-01 12:29:48
0001 /* 0002 * BluezQt - Asynchronous BlueZ wrapper library 0003 * 0004 * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com> 0005 * 0006 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef BLUEZQT_INITMANAGERJOB_H 0010 #define BLUEZQT_INITMANAGERJOB_H 0011 0012 #include "bluezqt_export.h" 0013 #include "job.h" 0014 #include "manager.h" 0015 #include "obexmanager.h" 0016 0017 namespace BluezQt 0018 { 0019 /** 0020 * @class BluezQt::InitManagerJob initmanagerjob.h <BluezQt/InitManagerJob> 0021 * 0022 * Init manager job. 0023 * 0024 * This class represents a job that initializes Manager. 0025 */ 0026 class BLUEZQT_EXPORT InitManagerJob : public Job 0027 { 0028 Q_OBJECT 0029 Q_PROPERTY(Manager *manager READ manager) 0030 0031 public: 0032 /** 0033 * Destroys an InitManagerJob object. 0034 */ 0035 ~InitManagerJob() override; 0036 0037 /** 0038 * Returns a manager that is being initialized. 0039 * 0040 * @return manager 0041 */ 0042 Manager *manager() const; 0043 0044 Q_SIGNALS: 0045 /** 0046 * Indicates that the job have finished. 0047 */ 0048 void result(InitManagerJob *job); 0049 0050 private: 0051 explicit InitManagerJob(Manager *manager); 0052 0053 void doStart() override; 0054 void doEmitResult() override; 0055 0056 class InitManagerJobPrivate *const d; 0057 0058 friend class InitManagerJobPrivate; 0059 friend class Manager; 0060 }; 0061 0062 } // namespace BluezQt 0063 0064 #endif // BLUEZQT_INITMANAGERJOB_H