Created
July 23, 2012 06:43
-
-
Save sandrinodimattia/3162307 to your computer and use it in GitHub Desktop.
eID MW warning level
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void APL_EIDCard::askWarningLevel() | |
{ | |
APL_AccessWarningLevel lWarningLevel=getWarningLevel(); | |
if(lWarningLevel==APL_ACCESSWARNINGLEVEL_REFUSED) | |
throw CMWEXCEPTION(EIDMW_ERR_NOT_ALLOW_BY_USER); | |
if(lWarningLevel==APL_ACCESSWARNINGLEVEL_BEING_ASKED) | |
throw CMWEXCEPTION(EIDMW_ERR_USER_MUST_ANSWER); | |
if(lWarningLevel==APL_ACCESSWARNINGLEVEL_TO_ASK) | |
{ | |
// Set the warning level to accepted without displaying the dialog. | |
setWarningLevel(APL_ACCESSWARNINGLEVEL_ACCEPTED); | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment