-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patheditProperties.h
executable file
·50 lines (47 loc) · 1.9 KB
/
editProperties.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef EDITPROPERTIES_H
#define EDITPROPERTIES_H
#include "ui_EditProperties.h"
#include "ui_HashingAlgorithm.h"
#include <QMessageBox>
#include <QFileDialog>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <errno.h>
#include <sys/stat.h>
#include "userproperties.h"
#include "myLibb.h"
/**
* Σε αυτήν την φόρμα εμφανίζονται όλες οι πληροφορίες του χρήστη που έχει επιλεχθεί για επεξεργασία.
* Από αυτήν ξεκινάνε όλες οι ενέργειες επεξεργασίας που μπορούν να γίνουν σε ένα λογαριασμό,
* ανάμεσα τους η επεξεργασία ονόματος και προσωπικών στοιχείων του χρήστη,ενεργοποίηση/απενεργοποίηση του λογαριασμού,εισαγωγή/διαγραφή του χρήστη από ομάδες,
* αλλαγή κύριας ομάδας του χρήστη,ορισμός κωδικών,και δυνατότητες για την διάρκεια που θα είναι ενεργός ο λογαριασμός.
*/
class EditProperties : public QDialog , public Ui::EditProperties
{
Q_OBJECT
public:
void setOldUsername (const QString oldUsername );
QString getOldUsername();
EditProperties( QWidget *parent = 0 );
~EditProperties();
void comboShell();
void acct_shadow(struct spwd spw);
int set_password(QString nam);
int set_shad_expire(QString months,int days_value,int years_value);
private:
void set_account(bool set);
QString oldUsername_;
private slots:
void set_Pass_info();
void ok_to_edit_Button();
void changeMembers(const QModelIndex &index );
void fillEasyList();
void easyCheckboxClicked();
void easyAddGroups(const QModelIndex &index);
void setPrimaryGroup();
void disablechk();
void browse();
void openHashingAlgorithm();
};
#endif