kviewshell
DjVuErrorList Class Reference
DjVuErrorList# provides a convenient way to redirect error messages from classes derived from DjVuPort to a list that can be accessed at any time. More...
#include <DjVuErrorList.h>
Public Member Functions | |
GUTF8String | GetError (void) |
GUTF8String | GetStatus (void) |
virtual bool | notify_error (const DjVuPort *source, const GUTF8String &msg) |
virtual bool | notify_status (const DjVuPort *source, const GUTF8String &msg) |
virtual GP< DataPool > | request_data (const DjVuPort *source, const GURL &url) |
GURL | set_stream (GP< ByteStream >) |
DjVuErrorList.h | |
This file implements a very simple class for redirecting port caster messages that would normally end up on stderr to a double linked list. DjVuErrorList class.
| |
void | ClearError (void) |
void | ClearStatus (void) |
void | connect (const DjVuPort &port) |
GList< GUTF8String > | GetErrorList (void) |
GList< GUTF8String > | GetStatusList (void) |
bool | HasError (void) const |
bool | HasStatus (void) const |
Static Public Member Functions | |
static GP< DjVuErrorList > | create (void) |
Protected Member Functions | |
DjVuErrorList (void) |
Detailed Description
DjVuErrorList# provides a convenient way to redirect error messages from classes derived from DjVuPort to a list that can be accessed at any time.
Definition at line 93 of file DjVuErrorList.h.
Constructor & Destructor Documentation
DjVuErrorList::DjVuErrorList | ( | void | ) | [protected] |
Member Function Documentation
void DjVuErrorList::ClearError | ( | void | ) | [inline] |
void DjVuErrorList::ClearStatus | ( | void | ) | [inline] |
void DjVuErrorList::connect | ( | const DjVuPort & | port | ) | [inline] |
Add a new class to have its messages redirected here.
Definition at line 152 of file DjVuErrorList.h.
static GP<DjVuErrorList> DjVuErrorList::create | ( | void | ) | [inline, static] |
Definition at line 99 of file DjVuErrorList.h.
GUTF8String DjVuErrorList::GetError | ( | void | ) |
Get one error message and clear that message from the list.
Definition at line 110 of file DjVuErrorList.cpp.
GList< GUTF8String > DjVuErrorList::GetErrorList | ( | void | ) | [inline] |
GUTF8String DjVuErrorList::GetStatus | ( | void | ) |
Get one status message and clear that message from the list.
Definition at line 123 of file DjVuErrorList.cpp.
GList< GUTF8String > DjVuErrorList::GetStatusList | ( | void | ) | [inline] |
Get the listing of status messages, and clear the list.
Definition at line 168 of file DjVuErrorList.h.
bool DjVuErrorList::HasError | ( | void | ) | const [inline] |
bool DjVuErrorList::HasStatus | ( | void | ) | const [inline] |
bool DjVuErrorList::notify_error | ( | const DjVuPort * | source, | |
const GUTF8String & | msg | |||
) | [virtual] |
Append all error messages to the list.
Reimplemented from DjVuSimplePort.
Definition at line 96 of file DjVuErrorList.cpp.
bool DjVuErrorList::notify_status | ( | const DjVuPort * | source, | |
const GUTF8String & | msg | |||
) | [virtual] |
Append all status messages to the list.
Reimplemented from DjVuSimplePort.
Definition at line 103 of file DjVuErrorList.cpp.
This gets the data.
We can't use the simple port's request data since we want to allow the user to specify the ByteStream.
Reimplemented from DjVuSimplePort.
Definition at line 136 of file DjVuErrorList.cpp.
GURL DjVuErrorList::set_stream | ( | GP< ByteStream > | xibs | ) |
This constructor allows the user to specify the ByteStream.
Definition at line 84 of file DjVuErrorList.cpp.
The documentation for this class was generated from the following files: