applayerpluginsandutils/uripermissionservices/inc/ineturi.h
changeset 0 b16258d2340f
child 9 9015645363c8
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     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 "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".
       
     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  @file
       
    20  @publishedAll
       
    21  @released
       
    22 */
       
    23 
       
    24 #ifndef __INETURI_H__
       
    25 #define __INETURI_H__
       
    26 
       
    27 
       
    28 class CInetUriImpl;
       
    29 class CInetUriProperties;
       
    30 class CUri8;
       
    31 
       
    32 using namespace InetUriList;
       
    33 
       
    34 /**
       
    35 RInetUri represents a handle to the URI and its associated URI properties. A URI must always be associated with 
       
    36 a service type and a list type. Service type defines the purpose for which the URI is added (for example, 
       
    37 Browser, WAP Push, Push EMail, and so on), and the list type defines the permission associated with the URI 
       
    38 (for example, whitelist or blacklist).
       
    39 
       
    40 @publishedAll
       
    41 @released
       
    42 */
       
    43 class RInetUri
       
    44 	{
       
    45 public:	
       
    46 	friend class CInetUriListImpl;
       
    47 	
       
    48 	IMPORT_C RInetUri ();
       
    49 
       
    50 	IMPORT_C void CreateL ( const TDesC8& aUri,  TServiceType aServiceType, TListType aListType );
       
    51 	IMPORT_C void Close ();
       
    52 	
       
    53 	IMPORT_C TServiceType ServiceType () const;
       
    54 	IMPORT_C TPermission Permission () const;
       
    55 	IMPORT_C TListType ListType () const;	
       
    56 	IMPORT_C const TDesC8& FavouriteName () const;
       
    57 	IMPORT_C const CUri8& Uri () const;
       
    58 		
       
    59 	IMPORT_C void SetListType ( TListType aListType );
       
    60 	IMPORT_C void SetFavouriteNameL ( const TDesC8& aFavouriteName );	
       
    61 	
       
    62 private:
       
    63 	// Used internally. Not intended for external use
       
    64 	CInetUriImpl& Impl () const;
       
    65 	void Attach ( CInetUriImpl& aInetUri );
       
    66 private:
       
    67 	CInetUriImpl* iInetUriImpl; // // The internal URI object that this handle is connected to
       
    68 	};
       
    69 
       
    70 #endif //__INETURI_H__