13#include "broadcaststatus.h"
14#include <QCoreApplication>
16static PimCommon::BroadcastStatus *instance_;
18static void deleteGlobalStaticBroadcastStatus()
26BroadcastStatus *BroadcastStatus::instance()
29 instance_ =
new BroadcastStatus();
30 qAddPostRoutine(deleteGlobalStaticBroadcastStatus);
35class BroadcastStatusPrivate
38 BroadcastStatusPrivate() =
default;
41 bool mTransientActive =
false;
44BroadcastStatus::BroadcastStatus()
45 : d(new
PimCommon::BroadcastStatusPrivate)
49BroadcastStatus::~BroadcastStatus()
54void BroadcastStatus::setStatusMsg(
const QString &message)
56 d->mStatusMsg = message;
57 if (!d->mTransientActive) {
58 Q_EMIT statusMsg(message);
62void BroadcastStatus::setTransientStatusMsg(
const QString &msg)
64 d->mTransientActive =
true;
65 Q_EMIT statusMsg(msg);
68void BroadcastStatus::reset()
70 d->mTransientActive =
false;
72 Q_EMIT statusMsg(d->mStatusMsg);
76#include "moc_broadcaststatus.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:22 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.