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

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

First release to xenial

File size: 864 bytes
Line 
1#ifndef FILEZILLA_FZPUTTYGEN_INTERFACE_HEADER
2#define FILEZILLA_FZPUTTYGEN_INTERFACE_HEADER
3
4#include <wx/process.h>
5
6class CFZPuttyGenInterface
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(wxString keyFile, bool silent);
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.