Update contrib.
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This file provides an internal API used by the class CAuthority?? for
15 // setting the value of authority components in a descriptor.
20 @file CAuthorityInternal.h
21 @see Authority8.h, Authority16.h
24 #ifndef __CAUTHORITYINTERNAL_H__
25 #define __CAUTHORITYINTERNAL_H__
31 template<class TPtrCType>
32 TInt CalculateAuthorityLength(const TPtrCType aComponent[], TBool& aIsIPv6Host);
34 template<class TPtrType, class TPtrCType>
35 void DoFormAuthority(TPtrType& aAuthority, TPtrCType aComponent[], const TBool& aIsIPv6Host);
37 template<class TPtrType, class TPtrCType>
38 void SetUserinfo(TPtrType& aAuthority, TPtrCType& aUserinfo);
40 template<class TPtrType, class TPtrCType>
41 void SetHost(TPtrType& aAuthority, TPtrCType& aHost);
43 template<class TPtrType, class TPtrCType>
44 void SetPort(TPtrType& aAuthority, TPtrCType& aPort);
46 #endif // __CAUTHORITYINTERNAL_H__