Dialogs
Detailed Description
Functions to display Sony's dialogs
Define Documentation
#define OSL_DIALOG_NONE 0 |
#define OSL_DIALOG_MESSAGE 1 |
#define OSL_DIALOG_ERROR 2 |
#define OSL_DIALOG_NETCONF 3 |
#define OSL_DIALOG_STATUS_NONE PSP_UTILITY_DIALOG_NONE |
No dialog is currently active
#define OSL_DIALOG_STATUS_INIT PSP_UTILITY_DIALOG_INIT |
The dialog is currently being initialized
#define OSL_DIALOG_STATUS_VISIBLE PSP_UTILITY_DIALOG_VISIBLE |
The dialog is visible and ready for use
#define OSL_DIALOG_STATUS_QUIT PSP_UTILITY_DIALOG_QUIT |
The dialog has been canceled and should be shut down
#define OSL_DIALOG_STATUS_FINISHED PSP_UTILITY_DIALOG_FINISHED |
The dialog has successfully shut down
Function Documentation
int oslDialogDrawAndWait |
( |
int |
dialogType |
) |
|
Universal routine which draws the current dialog (of the given dialog type) and waits for the user finish work with it. Returns 0 or ErrorCode (<0).
int oslDialogIsActive |
( |
|
) |
|
Tests whether any of ERROR,MESSAGE or NETCONF dialogs is currently active
int oslInitMessageDialog |
( |
const char * |
message, |
|
|
int |
enableYesno | |
|
) |
| | |
Initializes a Message Dialog
- Parameters:
-
| *message | Text shown in the message dialog |
| enableYesno | if 1 the dialog will have Yes/No option |
int oslInitErrorDialog |
( |
const unsigned int |
error |
) |
|
Initializes an Error Dialog
- Parameters:
-
Draws the current dialog to screen. After drawing it you should check if the user closed it. Remember to call oslEndDialog.
Returns the current dialog type
int oslGetDialogStatus |
( |
|
) |
|
Returns the current dialog status
int oslGetDialogButtonPressed |
( |
|
) |
|
Returns the button pressed in the dialog (only for message dialog with enableYesno == 1)
Initializes the net conf dialog
int oslDialogGetResult |
( |
|
) |
|
Gets the dialog result (OSL_DIALOG_CANCEL or OSL_DIALOG_OK)