Patch level : 10.0

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Aggiunta funzione cantaccess_box per segnalare mancanza di permessi di accesso


git-svn-id: svn://10.65.10.50/branches/R_10_00@22435 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2011-09-29 13:44:59 +00:00
parent a3f110a82f
commit eb73ee0390
2 changed files with 7 additions and 0 deletions

View File

@ -183,6 +183,12 @@ bool cantwrite_box(const char* filename)
return error_box(FR("Impossibile scrivere '%s'"), filename);
}
bool cantaccess_box(const char* filename)
{
if (filename == NULL || *filename < ' ')
filename = TR("questa funzione");
return error_box(FR("L'utente %s non può accedere a %s"), (const char*)user(), filename);
}
// @doc EXTERNAL
// @msg __trace | Permette di mandare dei messaggi nel file trace.log

View File

@ -21,6 +21,7 @@ extern "C" {
bool yesnofatal_box(const char* fmt, ...);
bool cantread_box(const char* filename);
bool cantwrite_box(const char* filename);
bool cantaccess_box(const char* filename);
bool __trace(const char* fmt, ...);
bool __tracemem(const char* fmt);
#ifdef __cplusplus