diff options
author | Simon Rettberg | 2014-02-07 01:48:59 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-02-07 01:48:59 +0100 |
commit | 8ae112083bbe26848f41d09c95559acb96b3ccb0 (patch) | |
tree | c9e4408acff35a608e41540e221c4232fb1384a6 /src/pwgui/pwgui.h | |
parent | Lots of changes: Two binaries (selection/pw auth), qmake -> cmake, gitignore,... (diff) | |
download | printergui-8ae112083bbe26848f41d09c95559acb96b3ccb0.tar.gz printergui-8ae112083bbe26848f41d09c95559acb96b3ccb0.tar.xz printergui-8ae112083bbe26848f41d09c95559acb96b3ccb0.zip |
Getting there, slowly:
- Check if the backend is invoked as a result of the printergui sending a printjob
If not, just relay to the real backend and appear transparent
If yes, copy environment from the printergui (X access etc) and show the
username/password dialog.
- Drop privileges whereever neccessary (when invoking backend, when showing GUI)
TODO: Use pipe to send user/pass to backend from the GUI. Make OK and Cancel
in the GUI work.
Diffstat (limited to 'src/pwgui/pwgui.h')
-rw-r--r-- | src/pwgui/pwgui.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pwgui/pwgui.h b/src/pwgui/pwgui.h index 3e56ec8..95a7a05 100644 --- a/src/pwgui/pwgui.h +++ b/src/pwgui/pwgui.h @@ -16,7 +16,7 @@ class PwGui : public QMainWindow Q_OBJECT public: - explicit PwGui(QWidget *parent = 0); + explicit PwGui(int pfd, QWidget *parent = 0); ~PwGui(); private slots: @@ -26,6 +26,7 @@ private: Ui::PwGui *ui; void initializeUI(); QTimer* checkStatusTimer; + int pipefd; }; #endif // AUTHENTICATION_H |