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:
parent
473b1f07c3
commit
d137910aaf
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ BigscreenPlugin::~BigscreenPlugin() = default;
|
||||||
bool BigscreenPlugin::receivePacket(const NetworkPacket& np)
|
bool BigscreenPlugin::receivePacket(const NetworkPacket& np)
|
||||||
{
|
{
|
||||||
QString message = np.get<QString>(QStringLiteral("content"));
|
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);
|
Q_EMIT messageReceived(message);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue