source: src-qt4/qsudo/mainwindow.h @ 49e8627

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since 49e8627 was 49e8627, checked in by yurkis <yurkis@…>, 11 months ago

Add ability to qsudo to show privileged command. Privileged actions without description may cause high security risc (user don't know what action will be executed

  • Property mode set to 100644
File size: 759 bytes
Line 
1#ifndef MAINWIN_H
2#define MAINWIN_H
3
4#include "ui_mainwindow.h"
5#include <QProcess>
6#include "../config.h"
7
8class MainWindow : public QMainWindow, private Ui::MainWindow
9{
10        Q_OBJECT
11
12public:
13        MainWindow() : QMainWindow()
14        {
15          setupUi(this);
16        }
17
18public slots:
19    void ProgramInit();
20
21private slots:
22    void slotButtonClicked(QAbstractButton *myBut);
23    void slotReturnPressed();
24    void slotProcDone();
25    void slotPrintStdErr();
26    void slotPrintStdOut();
27    void slotPwdTextChanged ( const QString & text );
28    void slotExpandCommandClicked(bool isChecked);
29
30
31private:
32    void startSudo();
33    void testPass();
34    bool checkUserGroup();
35    QProcess *sudoProc;
36    int tries;
37
38signals:
39
40} ;
41#endif // MAINWIN_H
42
Note: See TracBrowser for help on using the repository browser.