epoc32/include/cauthentication.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
     1.1 --- a/epoc32/include/cauthentication.h	Wed Mar 31 12:27:01 2010 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,79 +0,0 @@
     1.4 -// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 -// All rights reserved.
     1.6 -// This component and the accompanying materials are made available
     1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     1.8 -// which accompanies this distribution, and is available
     1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 -//
    1.11 -// Initial Contributors:
    1.12 -// Nokia Corporation - initial contribution.
    1.13 -//
    1.14 -// Contributors:
    1.15 -//
    1.16 -// Description:
    1.17 -// Authentication class for storing login information
    1.18 -// 
    1.19 -//
    1.20 -
    1.21 -
    1.22 -
    1.23 -/**
    1.24 - @file cauthentication.h
    1.25 - @publishedPartner
    1.26 - @released
    1.27 -*/
    1.28 -
    1.29 -#ifndef __CAUTHENTICATION_H__
    1.30 -#define __CAUTHENTICATION_H__
    1.31 -
    1.32 -#include <uri8.h>
    1.33 -
    1.34 -/**
    1.35 -CAuthentication encapsulates username and login information. 
    1.36 -Uses 8-bit descriptors. Unicode text must be tranformed into UTF8 for storage.
    1.37 -@publishedPartner
    1.38 -@released
    1.39 -*/
    1.40 -class CAuthentication: public CBase
    1.41 -	{
    1.42 -public:
    1.43 -	/**
    1.44 -	   enum for TMethod
    1.45 -	*/
    1.46 -	enum TMethod
    1.47 -		{
    1.48 -		/** Basic */
    1.49 -		EBasic,
    1.50 -		/** Digest */
    1.51 -		EDigest
    1.52 -		};
    1.53 -public:
    1.54 -	IMPORT_C static CAuthentication* NewL(const TDesC8& aName, const TDesC8& aPassword, TMethod aMethod = EDigest);
    1.55 -	IMPORT_C static CAuthentication* NewL(const TUriC8& aUri, TMethod aMethod = EDigest);
    1.56 -	IMPORT_C ~CAuthentication();
    1.57 -	IMPORT_C const TDesC8& Name() const;
    1.58 -	IMPORT_C const TDesC8& Password() const;
    1.59 -	IMPORT_C TMethod Method() const;
    1.60 -	IMPORT_C void SetNameL(const TDesC8& aName);
    1.61 -	IMPORT_C void SetPasswordL(const TDesC8& aPassword);
    1.62 -	IMPORT_C void SetMethod(TMethod aMethod);
    1.63 -private:
    1.64 -	CAuthentication(TMethod aMethod);
    1.65 -	void ConstructL(const TDesC8& aName, const TDesC8& aPassword);
    1.66 -	void ConstructL(const TUriC8& aUri);
    1.67 -private:
    1.68 -	/** 
    1.69 -		The descriptor buffer that contains the Name.
    1.70 -	 */
    1.71 -	HBufC8*		iName;
    1.72 -	/** 
    1.73 -		The descriptor buffer that contains the Password.
    1.74 -	 */
    1.75 -	HBufC8*		iPassword;
    1.76 -	/** 
    1.77 -		The enum of type TMethod.
    1.78 -	 */
    1.79 -	TMethod		iMethodType;
    1.80 -	};
    1.81 -
    1.82 -#endif //__CAUTHENTICATION_H__