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_INITOBEXMANAGERJOB_H 0010 #define BLUEZQT_INITOBEXMANAGERJOB_H 0011 0012 #include "bluezqt_export.h" 0013 #include "job.h" 0014 0015 namespace BluezQt 0016 { 0017 class ObexManager; 0018 0019 /** 0020 * @class BluezQt::InitObexManagerJob initobexmanagerjob.h <BluezQt/InitObexManagerJob> 0021 * 0022 * Init obex manager job. 0023 * 0024 * This class represents a job that initializes ObexManager. 0025 */ 0026 class BLUEZQT_EXPORT InitObexManagerJob : public Job 0027 { 0028 Q_OBJECT 0029 Q_PROPERTY(ObexManager *manager READ manager) 0030 0031 public: 0032 /** 0033 * Destroys an InitObexManagerJob object. 0034 */ 0035 ~InitObexManagerJob() override; 0036 0037 /** 0038 * Returns a manager that is being initialized. 0039 * 0040 * @return manager 0041 */ 0042 ObexManager *manager() const; 0043 0044 Q_SIGNALS: 0045 /** 0046 * Indicates that the job have finished. 0047 */ 0048 void result(InitObexManagerJob *job); 0049 0050 private: 0051 BLUEZQT_NO_EXPORT explicit InitObexManagerJob(ObexManager *manager); 0052 0053 void doStart() override; 0054 void doEmitResult() override; 0055 0056 class InitObexManagerJobPrivate *const d; 0057 0058 friend class InitObexManagerJobPrivate; 0059 friend class ObexManager; 0060 }; 0061 0062 } // namespace BluezQt 0063 0064 #endif // BLUEZQT_INITOBEXMANAGERJOB_H