delegate for locked MrSID images
More...
#include <MrSIDPasswordDelegate.h>
This abstract class is used with MrSIDImageReaderBase::setPasswordDelegate() to supply a user-callback mechanism for supplying text passwords to the internal MrSID decoder logic.
Users should derive their own class from this, supplying their own reportIncorrectPassword() and getPassword() methods.
Definition at line 30 of file MrSIDPasswordDelegate.h.
§ MrSIDPasswordDelegate()
MrSIDPasswordDelegate::MrSIDPasswordDelegate |
( |
| ) |
|
§ ~MrSIDPasswordDelegate()
virtual MrSIDPasswordDelegate::~MrSIDPasswordDelegate |
( |
| ) |
|
|
virtual |
§ getPassword()
virtual LT_STATUS MrSIDPasswordDelegate::getPassword |
( |
| ) |
|
|
pure virtual |
This function is called by the decoder to request a password from the user. Derived classes must implement this function, e.g. to pop up a text-entry dialog box.
The implementation of this function must copy the password into the buffer pointed by getPasswordBuffer().
- Returns
- success or failure in getting password from user
Implemented in MrSIDSimplePasswordDelegate.
§ getPasswordBuffer()
char* MrSIDPasswordDelegate::getPasswordBuffer |
( |
| ) |
|
|
protected |
This function returns a pointer to the allocated area for the password obtained from the user.
- Returns
- pointer to the password buffer
§ getPasswordBufferLength()
lt_uint32 MrSIDPasswordDelegate::getPasswordBufferLength |
( |
| ) |
|
|
protected |
This function returns the length of the buffer returned from getPasswordBuffer().
- Returns
- length of the password buffer
§ reportIncorrectPassword()
virtual LT_STATUS MrSIDPasswordDelegate::reportIncorrectPassword |
( |
| ) |
|
|
pure virtual |
This function is called by the decoder if the password entered was incorrect. Derived classes must implement this function, e.g. to pop up a message box, abort the operation, etc.
- Returns
- success or failure in reporting to user
Implemented in MrSIDSimplePasswordDelegate.
§ MG2ImageWriter
friend class MG2ImageWriter |
|
friend |
§ MG3ImageWriter
friend class MG3ImageWriter |
|
friend |
§ MG4ImageWriter
friend class MG4ImageWriter |
|
friend |
§ MrSIDImageReaderInterface
The documentation for this class was generated from the following file: