epoc32/include/ups/upserr.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/ups/upserr.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,85 @@
     1.4 +/*
     1.5 +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +* Error defined by the User Prompt Service.
    1.19 +* System servers MUST interpret any error returned by the User Prompt Service as EDecNo 
    1.20 +* and deny the client applications request.
    1.21 +*
    1.22 +*/
    1.23 +
    1.24 +
    1.25 +/**
    1.26 + @file
    1.27 + @publishedAll
    1.28 + @released. 
    1.29 +*/
    1.30 +
    1.31 +#ifndef UPSERR_H
    1.32 +#define UPSERR_H
    1.33 +
    1.34 +#include <e32base.h>
    1.35 +#include <e32cmn.h>
    1.36 +
    1.37 +/// A fingerprint was either empty or exceeded KUpsMaxFingerprintLength bytes.
    1.38 +const TInt KErrUpsBadFingerprintLength = -5703;
    1.39 +
    1.40 +/// The policy evaluator ECOM plug-in specified in the policy file was not found.
    1.41 +const TInt KErrUpsMissingPolicyEvaluator = -5704;
    1.42 +
    1.43 +/// The dialog creator ECOM plug-in specified in the policy file was not found.
    1.44 +const TInt KErrUpsMissingDialogCreator = -5705;
    1.45 +
    1.46 +/// An error occured whilst parsing a policy file.		
    1.47 +const TInt KErrUpsBadPolicyFile = -5706;
    1.48 +
    1.49 +/// No policy file was found for the requested server secure id and service uid
    1.50 +const TInt KErrUpsMissingPolicyFile = -5707;
    1.51 +
    1.52 +/// A file in the policy directory did not conform to the policy file name format
    1.53 +/// -  ups_SystemServerSid_ServiceUid.rsc
    1.54 +const TInt KErrUpsInvalidPolicyFileName = -5708;
    1.55 +
    1.56 +//One of the required arguments was not found
    1.57 +const TInt KErrUpsMissingArgument		= -5709;
    1.58 +
    1.59 +//The client entity was exceeded the maximum allowed length
    1.60 +const TInt KErrUpsBadClientEntityLength	 = -5710;
    1.61 +
    1.62 +//The client thread ID is invalid (either bad, or has since terminated)
    1.63 +const TInt KErrUpsBadClientThreadId	 = -5711;
    1.64 +
    1.65 +//The client process ID is invalid (either bad, or has since terminated)
    1.66 +const TInt KErrUpsBadClientProcessId	 = -5712;
    1.67 +
    1.68 +/// UPS policy library panic category
    1.69 +_LIT(KUpsPoliciesPanicCat, "UPS-Policies");
    1.70 +/// UPS policy library panic codes
    1.71 +enum TUpsPoliciesPanicCat 
    1.72 +	{
    1.73 +	/// A corrupt policy file on the Z drive was encountered
    1.74 +	EUpsPoliciesCorruptRomPolicy = 0
    1.75 +	};
    1.76 +
    1.77 +/// UPS client library panic category
    1.78 +_LIT(KUpsClientPanicCat, "UPS-Client");
    1.79 +/// UPS policy library panic codes
    1.80 +enum TUpsClientPanicCat 
    1.81 +	{
    1.82 +	/// RUpsSubsession has not been initialised
    1.83 +	EUpsClientNotInitialised = 0
    1.84 +	};
    1.85 +
    1.86 +
    1.87 +#endif // UPSERR_H
    1.88 +