Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
mozXMLTermTextListener Class Reference

#include <mozXMLTermListeners.h>

Inheritance diagram for mozXMLTermTextListener:
Inheritance graph
[legend]
Collaboration diagram for mozXMLTermTextListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 mozXMLTermTextListener ()
virtual ~mozXMLTermTextListener ()
void SetXMLTerminal (mozIXMLTerminal *aXMLTerminal)
 Save non-owning reference to containing XMLTerminal object.
virtual NS_DECL_ISUPPORTS nsresult HandleEvent (nsIDOMEvent *aEvent)
virtual nsresult HandleText (nsIDOMEvent *aTextEvent)
void handleEvent (in nsIDOMEvent event)
 This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Protected Attributes

mozIXMLTerminalmXMLTerminal
 non-owning reference to containing XMLTerminal object (for callback)

Detailed Description

Definition at line 96 of file mozXMLTermListeners.h.


Constructor & Destructor Documentation

Definition at line 451 of file mozXMLTermListeners.cpp.

{
}

Definition at line 456 of file mozXMLTermListeners.cpp.

{
}

Member Function Documentation

This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Parameters:
evtThe Event contains contextual information about the event. It also contains the stopPropagation and preventDefault methods which are used in determining the event's flow and default action.

Definition at line 497 of file mozXMLTermListeners.cpp.

{
  return NS_OK;
}

Implements nsIDOMTextListener.

Definition at line 504 of file mozXMLTermListeners.cpp.

{
  nsCOMPtr<nsIPrivateTextEvent> textEvent (do_QueryInterface(aTextEvent));
  if (!textEvent) {
    // Soft failure
    return NS_OK;
  }

  XMLT_LOG(mozXMLTermTextListener::HandleText,50,("\n"));

  nsAutoString textStr;
  textEvent->GetText(textStr);

  // Transmit text to terminal
  mXMLTerminal->SendTextAux(textStr.get());

  return NS_OK;
}

Here is the call graph for this function:

Save non-owning reference to containing XMLTerminal object.

Parameters:
aXMLTerminalthe XMLTerm instance

Definition at line 104 of file mozXMLTermListeners.h.

    {mXMLTerminal = aXMLTerminal;}

Here is the caller graph for this function:


Member Data Documentation

non-owning reference to containing XMLTerminal object (for callback)

Definition at line 118 of file mozXMLTermListeners.h.


The documentation for this class was generated from the following files: