.


:




:

































 

 

 

 


,

,

,
,
, ,
, +

. .

1 res.res
Disc_n (int)
C:
D:
..
Folder_n (int)

File_n (int)
. + (int)
Prog_n (int)
.

2 pas.ad
Admin_pas (String)

3 _. us
id (int) -
pas (String) -
group_id (int)
secret_level (int) ( )
new_file_access (int)
0-, 1-, 2-
new_folder_access (int) 0- , 1-
disc_n (int)
.
folder_n (int)
.
file_n (int)
.
prog_n (int)
.

 

log(QString), , - . . crypt.h QString hashPas(QString pas) , QString crypt(QString str) , QString decrypt(QString str) .

,

User, . , loadFromFile(QString path), , - .

1- Ident -, - login(QString), .

2- EditUsers . // . .

3- EditUser . .

TextEdit , , , .
public openFile(QString __, int _), newFile(QString _), setUserName(QString name) newSession().
, , , , .
, .
, , , , .
, . newSession().

,

1 - public int typeFS(QString path) 1 , 2 , 3 , 0 , -1 - .

2 - public bool isLegal(QString path, ActionFS action), , /, .
action ActionFS = { delFile, delFolder, openFolder, readFile, writeFile, runProg }


crypt.h crypt.cpp , .

, , , -
+ .
- , User user .
.
, .

.

 



<== | ==>
. | 
:


: 2017-02-24; !; : 283 |


:

:

.
==> ...

1665 - | 1497 -


© 2015-2024 lektsii.org - -

: 0.012 .