Update contrib.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
31 namespace UserPromptService
34 Class that represents the fingerprint data for a stored decision.
36 The raw fingerprint data must be between one and KMaxFingerprintLength bytes in
37 length and are typically created from selected parts of the destination and opaque fields.
39 E.g. Hash("GPRS") or Hash("+442071541000") or "ALL"\n
41 Since hash functions are irreversible the fingerprint may also include a human readable
42 string of up to KMaxDescriptionLength characters in length that describes the data used to
43 generate the hash. This may be used by a management user interface that allows a device user
44 to rescind individual decisions.
46 This field is stored in the decision record but is otherwise unused by the User Prompt Service.
48 NONSHARABLE_CLASS(CFingerprint) : public CBase
51 IMPORT_C static CFingerprint* NewL(const TDesC8& aFingerprint, const TDesC& aDescription);
52 IMPORT_C static CFingerprint* NewLC(const TDesC8& aFingerprint, const TDesC& aDescription);
54 IMPORT_C const TDesC8& Fingerprint() const;
55 IMPORT_C const TDesC& Description() const;
60 void ConstructL(const TDesC8& aFingerprint, const TDesC& aDescription);
62 HBufC8* iFingerprint; ///< The raw fingerprint data
63 HBufC* iDescription; ///< Describes the data used to generate the hash
67 #endif // FINGERPRINT_H