Widget to present debconf elements. More...
|DebconfGui (const QString &socketName, QWidget *parent=0)|
|DebconfGui (int readfd, int writefd, QWidget *parent=0)|
|void||closeEvent (QCloseEvent *event)|
|void||cmd_go (const QString &title, const QStringList &input)|
|void||cmd_progress (const QString ¶m)|
Widget to present debconf elements.
This class provides a widget subclass that can present Debconf elements (questions), using a socket file.
For this class to be useful the programs that are going to use debconf to present questions must have the enviroment variables DEBIAN_FRONTEND set to passthrough and DEBCONF_PIPE to the path set on the constructor (
socketName). Then when a new connection arrives this class will take care of talking the debconf protocol and emit activated() so that this widget should be shown, and deactivated() when it should be hidden.