source: filezilla/trunk/fuentes/src/interface/fzputtygen_interface.h @ 3185

Last change on this file since 3185 was 3185, checked in by jrpelegrina, 3 years ago

Update new version: 3.15.02

File size: 840 bytes
Line 
1#ifndef FILEZILLA_FZPUTTYGEN_INTERFACE_HEADER
2#define FILEZILLA_FZPUTTYGEN_INTERFACE_HEADER
3
4#include <wx/process.h>
5
6class CFZPuttyGenInterface final
7{
8public:
9        CFZPuttyGenInterface(wxWindow* parent);
10        virtual ~CFZPuttyGenInterface();
11        bool LoadKeyFile(wxString& keyFile, bool silent, wxString& comment, wxString& data);
12
13        void EndProcess();
14        void DeleteProcess();
15        bool IsProcessCreated();
16        bool IsProcessStarted();
17
18protected:
19        // return -1 on error
20        int NeedsConversion(wxString keyFile, bool silent);
21
22        // return -1 on error
23        int IsKeyFileEncrypted();
24
25        wxProcess* m_pProcess{};
26        bool m_initialized{};
27        wxWindow* m_parent;
28
29        enum ReplyCode {
30                success,
31                error,
32                failure
33        };
34
35        bool LoadProcess(bool silent);
36        bool Send(const wxString& cmd);
37        ReplyCode GetReply(wxString& reply);
38};
39
40#endif /* FILEZILLA_FZPUTTYGEN_INTERFACE_HEADER */
Note: See TracBrowser for help on using the repository browser.