You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-ftp/filezilla/files/filezilla-3.13.0-fzputtygen...

41 lines
864 B

#ifndef FILEZILLA_FZPUTTYGEN_INTERFACE_HEADER
#define FILEZILLA_FZPUTTYGEN_INTERFACE_HEADER
#include <wx/process.h>
class CFZPuttyGenInterface
{
public:
CFZPuttyGenInterface(wxWindow* parent);
virtual ~CFZPuttyGenInterface();
bool LoadKeyFile(wxString& keyFile, bool silent, wxString& comment, wxString& data);
void EndProcess();
void DeleteProcess();
bool IsProcessCreated();
bool IsProcessStarted();
protected:
// return -1 on error
int NeedsConversion(wxString keyFile, bool silent);
// return -1 on error
int IsKeyFileEncrypted(wxString keyFile, bool silent);
wxProcess* m_pProcess{};
bool m_initialized{};
wxWindow* m_parent;
enum ReplyCode {
success,
error,
failure
};
bool LoadProcess(bool silent);
bool Send(const wxString& cmd);
ReplyCode GetReply(wxString& reply);
};
#endif /* FILEZILLA_FZPUTTYGEN_INTERFACE_HEADER */