[OpenDocString] kdeconnect-kde (cpp)
screensaverinhibitplugin-win.cpp
ScreensaverInhibitPlugin::ScreensaverInhibitPlugin(QObject *parent, const QVariantList &args)
    : KdeConnectPlugin(parent, args)
{
    SetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED);
}
Constructs a plugin object and sets the execution state to continous and display required.
ScreensaverInhibitPlugin::~ScreensaverInhibitPlugin()
{
    SetThreadExecutionState(ES_CONTINUOUS);
}
Sets the execution state to continous.
bool ScreensaverInhibitPlugin::receivePacket(const NetworkPacket &np)
{
    Q_UNUSED(np);
    return false;
}
This retrieves a packet from the inhibit plugin and marks it for delivery.