#include <MrSIDPasswordDelegate.h>
Public Member Functions | |
MrSIDPasswordDelegate () | |
constructor | |
virtual | ~MrSIDPasswordDelegate () |
destructor | |
virtual LT_STATUS | reportIncorrectPassword ()=0 |
user function for user notification | |
virtual LT_STATUS | getPassword ()=0 |
user function for getting the password | |
Protected Member Functions | |
char * | getPasswordBuffer () |
get password buffer | |
lt_uint32 | getPasswordBufferLength () |
get password buffer length | |
Friends | |
class | MrSIDImageReaderInterface |
class | MG2ImageWriter |
class | MG3ImageWriter |
class | MG4ImageWriter |
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 | ( | ) |
virtual MrSIDPasswordDelegate::~MrSIDPasswordDelegate | ( | ) | [virtual] |
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.
Implemented in MrSIDSimplePasswordDelegate.
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().
Implemented in MrSIDSimplePasswordDelegate.
char* MrSIDPasswordDelegate::getPasswordBuffer | ( | ) | [protected] |
This function returns a pointer to the allocated area for the password obtained from the user.
lt_uint32 MrSIDPasswordDelegate::getPasswordBufferLength | ( | ) | [protected] |
This function returns the length of the buffer returned from getPasswordBuffer().
friend class MrSIDImageReaderInterface [friend] |
Definition at line 96 of file MrSIDPasswordDelegate.h.
friend class MG2ImageWriter [friend] |
Definition at line 97 of file MrSIDPasswordDelegate.h.
friend class MG3ImageWriter [friend] |
Definition at line 98 of file MrSIDPasswordDelegate.h.
friend class MG4ImageWriter [friend] |
Definition at line 99 of file MrSIDPasswordDelegate.h.
LizardTech |