Recorder Class Reference

#include <recorder.h>

Inheritance diagram for Recorder:

Window

List of all members.


Detailed Description

Definition at line 36 of file recorder.h.


Public Member Functions

 Recorder (ChatWindow *chat, const std::string &title=_("Recording..."), const std::string &buttonTxt=_("Stop recording"))
virtual ~Recorder ()
void record (const std::string &msg)
 Outputs the message to the recorder file.
void setRecordingFile (const std::string &msg)
 Sets the file being recorded to.
bool isRecording ()
 Whether or not the recorder is in use.
void action (const gcn::ActionEvent &event)
 called when the button is pressed

Private Attributes

ChatWindowmChat
std::ofstream mStream

Constructor & Destructor Documentation

Recorder::Recorder ( ChatWindow chat,
const std::string &  title = _("Recording..."),
const std::string &  buttonTxt = _("Stop recording") 
)

Definition at line 35 of file recorder.cpp.

Recorder::~Recorder (  )  [virtual]

Definition at line 59 of file recorder.cpp.


Member Function Documentation

void Recorder::record ( const std::string &  msg  ) 

Outputs the message to the recorder file.

Parameters:
msg the line to write to the recorded file.

Definition at line 63 of file recorder.cpp.

void Recorder::setRecordingFile ( const std::string &  msg  ) 

Sets the file being recorded to.

Parameters:
msg The file to write out to. If null, then stop recording.

Definition at line 71 of file recorder.cpp.

bool Recorder::isRecording (  )  [inline]

Whether or not the recorder is in use.

Definition at line 61 of file recorder.h.

void Recorder::action ( const gcn::ActionEvent &  event  ) 

called when the button is pressed

Parameters:
event is the event that is generated

Definition at line 117 of file recorder.cpp.


Member Data Documentation

Definition at line 71 of file recorder.h.

std::ofstream Recorder::mStream [private]

Definition at line 73 of file recorder.h.


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

Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5