Base class for notification targets.
Base class for notification targets. DjVuPort provides base functionality for classes willing to take part in sending and receiving messages generated during decoding process. You need to derive your class from DjVuPort if you want it to be able to send or receive requests. In addition, for receiving requests you should override one or more virtual function.Important remark --- All ports should be allocated on the heap using operator new and immediately secured using a GP smart pointer. Ports which are not secured by a smart-pointer are not considered ``alive'' and never receive notifications!
DjVuPort(const DjVuPort & port)
DjVuPort& operator=(const DjVuPort & port)
virtual bool inherits(const char * class_name) const
Notifications.
virtual GURL id_to_url(const DjVuPort * source, const char * id)
virtual GPBase id_to_file(const DjVuPort * source, const char * id)
virtual GP<DataPool> request_data(const DjVuPort * source, const GURL & url)
virtual bool notify_error(const DjVuPort * source, const char * msg)
virtual bool notify_status(const DjVuPort * source, const char * msg)
virtual void notify_redisplay(const class DjVuImage * source)
virtual void notify_relayout(const class DjVuImage * source)
virtual void notify_chunk_done(const DjVuPort * source, const char * name)
virtual void notify_file_flags_changed(const class DjVuFile * source, long set_mask, long clr_mask)
set_mask - bits, which have been set
clr_mask - bits, which have been cleared virtual void notify_doc_flags_changed(const class DjVuDocument * source, long set_mask, long clr_mask)
set_mask - bits, which have been set
clr_mask - bits, which have been cleared virtual void notify_decode_progress(const DjVuPort * source, float done)
enum ErrorRecoveryAction
Alphabetic index HTML hierarchy of classes or Java