epoc32/include/ineturi.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 // Copyright (c) 2007-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // Class for storing URI and its properties.
    15 // 
    16 //
    17 
    18 
    19 
    20 /**
    21  @file
    22  @publishedAll
    23  @released
    24 */
    25 
    26 #ifndef __INETURI_H__
    27 #define __INETURI_H__
    28 
    29 
    30 class CInetUriImpl;
    31 class CInetUriProperties;
    32 class CUri8;
    33 
    34 using namespace InetUriList;
    35 
    36 /**
    37 RInetUri represents a handle to the URI and its associated URI properties. A URI must always be associated with 
    38 a service type and a list type. Service type defines the purpose for which the URI is added (for example, 
    39 Browser, WAP Push, Push EMail, and so on), and the list type defines the permission associated with the URI 
    40 (for example, whitelist or blacklist).
    41 
    42 @publishedAll
    43 @released
    44 */
    45 class RInetUri
    46 	{
    47 public:	
    48 	friend class CInetUriListImpl;
    49 	
    50 	IMPORT_C RInetUri ();
    51 
    52 	IMPORT_C void CreateL ( const TDesC8& aUri,  TServiceType aServiceType, TListType aListType );
    53 	IMPORT_C void Close ();
    54 	
    55 	IMPORT_C TServiceType ServiceType () const;
    56 	IMPORT_C TPermission Permission () const;
    57 	IMPORT_C TListType ListType () const;	
    58 	IMPORT_C const TDesC8& FavouriteName () const;
    59 	IMPORT_C const CUri8& Uri () const;
    60 		
    61 	IMPORT_C void SetListType ( TListType aListType );
    62 	IMPORT_C void SetFavouriteNameL ( const TDesC8& aFavouriteName );	
    63 	
    64 private:
    65 	// Used internally. Not intended for external use
    66 	CInetUriImpl& Impl () const;
    67 	void Attach ( CInetUriImpl& aInetUri );
    68 private:
    69 	CInetUriImpl* iInetUriImpl; // // The internal URI object that this handle is connected to
    70 	};
    71 
    72 #endif //__INETURI_H__