• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

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>

Inheritance diagram for DjVuErrorList:

Inheritance graph
[legend]

List of all members.


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.

Author:
Bill C Riemers <docbill@sourceforge.net>
Version:
$Id: DjVuErrorList.h,v 1.9 2003/11/07 22:08:20 leonb Exp $#


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]

The normal port caster constructor.

Definition at line 81 of file DjVuErrorList.cpp.


Member Function Documentation

void DjVuErrorList::ClearError ( void   )  [inline]

Just clear the list.

Definition at line 164 of file DjVuErrorList.h.

void DjVuErrorList::ClearStatus ( void   )  [inline]

Just clear the list.

Definition at line 176 of file DjVuErrorList.h.

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]

Get the listing of errors, and clear the list.

Definition at line 156 of file DjVuErrorList.h.

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]

Check if there are anymore error messages.

Definition at line 180 of file DjVuErrorList.h.

bool DjVuErrorList::HasStatus ( void   )  const [inline]

Check if there are any more status messages.

Definition at line 184 of file DjVuErrorList.h.

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.

GP< DataPool > DjVuErrorList::request_data ( const DjVuPort *  source,
const GURL &  url 
) [virtual]

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:
  • DjVuErrorList.h
  • DjVuErrorList.cpp

kviewshell

Skip menu "kviewshell"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal