bigscreen: add comment on how this plugin is used

Currently bigscreenplugin emits a signal whose consumption point is not documented in our code.
This patch adds a link to a usecase of this emitted signal.
This commit is contained in:
Piyush Aggarwal 2020-11-14 09:02:21 +05:30 committed by Nicolas Fella
parent 473b1f07c3
commit d137910aaf

View file

@ -30,6 +30,9 @@ BigscreenPlugin::~BigscreenPlugin() = default;
bool BigscreenPlugin::receivePacket(const NetworkPacket& np)
{
QString message = np.get<QString>(QStringLiteral("content"));
/* Emit a signal that will be consumed by Plasma BigScreen:
* https://invent.kde.org/plasma/plasma-bigscreen/-/blob/master/containments/homescreen/package/contents/ui/indicators/KdeConnect.qml
*/
Q_EMIT messageReceived(message);
return true;
}