00001
00010 #ifndef __PUTTYCLIENT_H__
00011 #define __PUTTYCLIENT_H__
00012
00013 #include <e32std.h>
00014 #include <gdi.h>
00015
00021 class MPuttyClient {
00022
00023 public:
00024
00025
00027 enum THostKeyResponse {
00028 EAbadonConnection,
00029 EAcceptTemporarily,
00030 EAcceptAndStore
00031 };
00032
00034 enum TCipherDirection {
00035 EBothDirections,
00036 EClientToServer,
00037 EServerToClient
00038 };
00039
00040
00041
00042
00056 virtual void DrawText(TInt aX, TInt aY, const TDesC &aText, TBool aBold,
00057 TBool aUnderline, TRgb aForeground,
00058 TRgb aBackground) = 0;
00059
00066 virtual void ConnectionError(const TDesC &aMessage) = 0;
00067
00074 virtual void FatalError(const TDesC &aMessage) = 0;
00075
00079 virtual void ConnectionClosed() = 0;
00080
00091 virtual THostKeyResponse UnknownHostKey(const TDesC &aFingerprint) = 0;
00092
00103 virtual THostKeyResponse DifferentHostKey(const TDesC &aFingerprint) = 0;
00104
00115 virtual TBool AcceptCipher(const TDesC &aCipherName,
00116 TCipherDirection aDirection) = 0;
00117 };
00118
00119
00120 #endif