9#include "initobexmanagerjob.h"
11#include "obexmanager.h"
12#include "obexmanager_p.h"
16class InitObexManagerJobPrivate :
public QObject
19 explicit InitObexManagerJobPrivate(InitObexManagerJob *q, ObexManager *manager);
22 void initError(
const QString &errorText);
25 InitObexManagerJob *q;
26 ObexManager *m_manager;
29InitObexManagerJobPrivate::InitObexManagerJobPrivate(InitObexManagerJob *q, ObexManager *manager)
36void InitObexManagerJobPrivate::doStart()
38 if (m_manager->d->m_initialized) {
39 qCWarning(BLUEZQT) <<
"InitObexManagerJob: ObexManager already initialized!";
44 connect(m_manager->d.get(), &ObexManagerPrivate::initError,
this, &InitObexManagerJobPrivate::initError);
45 connect(m_manager->d.get(), &ObexManagerPrivate::initFinished,
this, &InitObexManagerJobPrivate::initFinished);
50void InitObexManagerJobPrivate::initError(
const QString &errorText)
52 qCWarning(BLUEZQT) <<
"InitObexManagerJob Error:" << errorText;
54 q->setError(InitObexManagerJob::UserDefinedError);
55 q->setErrorText(errorText);
59void InitObexManagerJobPrivate::initFinished()
64InitObexManagerJob::InitObexManagerJob(ObexManager *manager)
66 , d(new InitObexManagerJobPrivate(this, manager))
70InitObexManagerJob::~InitObexManagerJob()
73 qCWarning(BLUEZQT) <<
"InitObexManagerJob Error: Job was deleted before finished!";
75 setError(UserDefinedError);
76 setErrorText(QStringLiteral(
"Job was deleted before finished."));
86void InitObexManagerJob::doStart()
91void InitObexManagerJob::doEmitResult()
98#include "moc_initobexmanagerjob.cpp"
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:46:08 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.