#include <recorder.h>
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 | |
ChatWindow * | mChat |
std::ofstream | mStream |
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.
void Recorder::record | ( | const std::string & | msg | ) |
Outputs the message to the recorder file.
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.
msg | The file to write out to. If null, then stop recording. |
Definition at line 71 of file recorder.cpp.
bool Recorder::isRecording | ( | ) | [inline] |
void Recorder::action | ( | const gcn::ActionEvent & | event | ) |
called when the button is pressed
event | is the event that is generated |
Definition at line 117 of file recorder.cpp.
ChatWindow* Recorder::mChat [private] |
Definition at line 71 of file recorder.h.
std::ofstream Recorder::mStream [private] |
Definition at line 73 of file recorder.h.