1 |
|
---|
2 | #include <string.h>
|
---|
3 | #include <wx/frame.h>
|
---|
4 | #include <wx/button.h>
|
---|
5 | #include <wx/string.h>
|
---|
6 | #include <wx/textdlg.h>
|
---|
7 | #include <wx/event.h>
|
---|
8 | #include <wx/stattext.h>
|
---|
9 | #include <pwd.h>
|
---|
10 |
|
---|
11 | #ifndef PSWDWINDOW_H
|
---|
12 |
|
---|
13 | #define PSWDWINDOW_H
|
---|
14 |
|
---|
15 | class pswdWindow : public wxFrame
|
---|
16 | {
|
---|
17 | public:
|
---|
18 |
|
---|
19 | /*Constructor for the pswdWindow class*/
|
---|
20 | pswdWindow(string * strHolder, wxString readout);
|
---|
21 |
|
---|
22 | /*Takes the user's password entry and compares it with the pwd_passwd element*/
|
---|
23 | void onEntry(wxCommandEvent &event);
|
---|
24 |
|
---|
25 | /*When someone decides not to save the file*/
|
---|
26 | void onCancel(wxCloseEvent &event);
|
---|
27 |
|
---|
28 | /*Or you could just close the window*/
|
---|
29 | void onClose(wxCloseEvent &event);
|
---|
30 | private:
|
---|
31 | wxPasswordEntryDialog field1;
|
---|
32 | wxButton entryButton, cancelButton;
|
---|
33 | bool * canHazMatch;
|
---|
34 | wxString textRead;
|
---|
35 | }
|
---|
36 |
|
---|
37 | #endif
|
---|