pspsdk-1.0+beta2
psputility_msgdialog.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * psputility_msdialog.h - Definitions and Functions for Dialogs
7  * section of the pspUtility library
8  *
9  * Copyright (c) 2005 Marcus Comstedt <marcus@mc.pp.se>
10  * (c) 2008 InsertWittyName <tias_dp@hotmail.com>
11  *
12  * $Id: psputility_msgdialog.h 2433 2008-10-15 10:00:27Z iwn $
13  */
14 #ifndef __PSPUTILITY_DIALOGS_H__
15 #define __PSPUTILITY_DIALOGS_H__
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 typedef enum
22 {
23  PSP_UTILITY_MSGDIALOG_MODE_ERROR = 0, /* Error message */
24  PSP_UTILITY_MSGDIALOG_MODE_TEXT /* String message */
25 
27 
28 typedef enum
29 {
30  PSP_UTILITY_MSGDIALOG_OPTION_ERROR = 0, /* Error message (why two flags?) */
31  PSP_UTILITY_MSGDIALOG_OPTION_TEXT = 0x00000001, /* Text message (why two flags?) */
32  PSP_UTILITY_MSGDIALOG_OPTION_YESNO_BUTTONS = 0x00000010, /* Yes/No buttons instead of 'Cancel' */
33  PSP_UTILITY_MSGDIALOG_OPTION_DEFAULT_NO = 0x00000100 /* Default position 'No', if not set will default to 'Yes' */
34 
36 
37 typedef enum
38 {
43 
45 
50 {
52  int unknown;
54  unsigned int errorValue;
56  char message[512];
57  int options; /* OR ::pspUtilityMsgDialogOption together for multiple options */
59 
61 
69 
76 
85 
91 void sceUtilityMsgDialogUpdate(int n);
92 
96 int sceUtilityMsgDialogAbort(void);
97 
98 #ifdef __cplusplus
99 }
100 #endif
101 
102 #endif