From QtService.cpp :

"The QtService is a convenient template class that allows
    you to create a service for a particular application type.

    A Windows service or Unix daemon (a "service"), is a program that
    runs "in the background" independently of whether a user is logged
    in or not. A service is often set up to start when the machine
    boots up, and will typically run continuously as long as the
    machine is on.

    Services are usually non-interactive console applications. User
    interaction, if required, is usually implemented in a separate,
    normal GUI application that communicates with the service through
    an IPC channel. For simple communication,
    QtServiceController::sendCommand() and QtService::processCommand()
    may be used, possibly in combination with a shared settings file. For
    more complex, interactive communication, a custom IPC channel
    should be used, e.g. based on Qt's networking classes. (In certain
    circumstances, a service may provide a GUI itself, ref. the
    "interactive" example documentation)."

+1 from me to add this to QtCore

El 17/06/16 a les 12:30, Bo Thorsen ha escrit:
Den 17-06-2016 kl. 08:26 skrev Thiago Macieira:
And, what about QtService from QtSolutions ?
I don't know what that does.

On Windows it implements the interface so you can register a Qt application as a service and the users can control from the standard windows services panel - starting, stopping, automatic startup etc. It also provides methods for controlling this from code. It works very well.

Bo Thorsen,
Director, Viking Software.


_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to