Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CPuttyAppUi Class Reference

PuTTY UI Application UI class. More...

#include <puttyappui.h>

Inheritance diagram for CPuttyAppUi:

MPuttyClient MDialObserver MRecorderObserver List of all members.

Public Methods

virtual void DialCompleted (TInt anError)
 Notifies the observer that a connection setup has completed.

virtual void RecordCompleted (TInt anError)
 Notifies the observer that recording has completed.

virtual void DrawText (TInt aX, TInt aY, const TDesC &aText, TBool aBold, TBool aUnderline, TRgb aForeground, TRgb aBackground)
 Draws text on the terminal window.

virtual void ConnectionError (const TDesC &aMessage)
 Reports a connection error to the user.

virtual void FatalError (const TDesC &aMessage)
 Reports a fatal error to the user.

virtual void ConnectionClosed ()
 Reports that the connection has been closed normally.

virtual THostKeyResponse UnknownHostKey (const TDesC &aFingerprint)
 Prompts the user to accept or reject an unknown host key.

virtual THostKeyResponse DifferentHostKey (const TDesC &aFingerprint)
 Prompts the user to accept or reject a changed host key.

virtual TBool AcceptCipher (const TDesC &aCipherName, TCipherDirection aDirection)
 Prompts the user to accept or reject a cipher below the warning threshold.


Detailed Description

PuTTY UI Application UI class.

Contains most of the UI logic, including engine and terminal callbacks.


Member Function Documentation

TBool CPuttyAppUi::AcceptCipher const TDesC &    aCipherName,
TCipherDirection    aDirection
[virtual]
 

Prompts the user to accept or reject a cipher below the warning threshold.

Parameters:
aCipherName  The cipher name
aDirection  The cipher usage direction
Returns:
ETrue if the cipher is accepted
See also:
TCipherDirection

Implements MPuttyClient.

void CPuttyAppUi::ConnectionError const TDesC &    aMessage [virtual]
 

Reports a connection error to the user.

After displaying the message, the engine must be re-initialized

Parameters:
aMessage  The error message

Implements MPuttyClient.

void CPuttyAppUi::DialCompleted TInt    anError [virtual]
 

Notifies the observer that a connection setup has completed.

Parameters:
anError  The error code, KErrNone if the connection was set up successfully.

Implements MDialObserver.

MPuttyClient::THostKeyResponse CPuttyAppUi::DifferentHostKey const TDesC &    aFingerprint [virtual]
 

Prompts the user to accept or reject a changed host key.

The method must display the key fingerprint to the user, and ask whether it should be accepted once, accepted permanently or rejected completely.

Parameters:
aFingerprint  The key fingerprint to display
Returns:
User selection
See also:
THostKeyResponse

Implements MPuttyClient.

void CPuttyAppUi::DrawText TInt    aX,
TInt    aY,
const TDesC &    aText,
TBool    aBold,
TBool    aUnderline,
TRgb    aForeground,
TRgb    aBackground
[virtual]
 

Draws text on the terminal window.

The coordinates are zero-based character coordinates inside the terminal. Cursor is drawn as text with specific colors.

Parameters:
aX  Text start X-coordinate
aY  Text start X-coordinate
aText  The text to draw
aBold  Bold attribute
aUnderline  Underline attribute
aForeground  Foreground color to use
aBackground  Background color to use

Implements MPuttyClient.

void CPuttyAppUi::FatalError const TDesC &    aMessage [virtual]
 

Reports a fatal error to the user.

After showing the message, the implementation must exit the program.

Parameters:
aMessage  The error message

Implements MPuttyClient.

void CPuttyAppUi::RecordCompleted TInt    anError [virtual]
 

Notifies the observer that recording has completed.

Parameters:
anError  The error code, KErrNone if recording was successfull.

Implements MRecorderObserver.

MPuttyClient::THostKeyResponse CPuttyAppUi::UnknownHostKey const TDesC &    aFingerprint [virtual]
 

Prompts the user to accept or reject an unknown host key.

The method must display the key fingerprint to the user, and ask whether it should be accepted once, accepted permanently or rejected completely.

Parameters:
aFingerprint  The key fingerprint to display
Returns:
User selection
See also:
THostKeyResponse

Implements MPuttyClient.


The documentation for this class was generated from the following files:
Generated on Sun Feb 9 13:01:29 2003 for PuTTY by doxygen1.2.18