epoc32/include/ineturi.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/ineturi.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,72 @@
     1.4 +// Copyright (c) 2007-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 +// Class for storing URI and its properties.
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +
    1.22 +
    1.23 +/**
    1.24 + @file
    1.25 + @publishedAll
    1.26 + @released
    1.27 +*/
    1.28 +
    1.29 +#ifndef __INETURI_H__
    1.30 +#define __INETURI_H__
    1.31 +
    1.32 +
    1.33 +class CInetUriImpl;
    1.34 +class CInetUriProperties;
    1.35 +class CUri8;
    1.36 +
    1.37 +using namespace InetUriList;
    1.38 +
    1.39 +/**
    1.40 +RInetUri represents a handle to the URI and its associated URI properties. A URI must always be associated with 
    1.41 +a service type and a list type. Service type defines the purpose for which the URI is added (for example, 
    1.42 +Browser, WAP Push, Push EMail, and so on), and the list type defines the permission associated with the URI 
    1.43 +(for example, whitelist or blacklist).
    1.44 +
    1.45 +@publishedAll
    1.46 +@released
    1.47 +*/
    1.48 +class RInetUri
    1.49 +	{
    1.50 +public:	
    1.51 +	friend class CInetUriListImpl;
    1.52 +	
    1.53 +	IMPORT_C RInetUri ();
    1.54 +
    1.55 +	IMPORT_C void CreateL ( const TDesC8& aUri,  TServiceType aServiceType, TListType aListType );
    1.56 +	IMPORT_C void Close ();
    1.57 +	
    1.58 +	IMPORT_C TServiceType ServiceType () const;
    1.59 +	IMPORT_C TPermission Permission () const;
    1.60 +	IMPORT_C TListType ListType () const;	
    1.61 +	IMPORT_C const TDesC8& FavouriteName () const;
    1.62 +	IMPORT_C const CUri8& Uri () const;
    1.63 +		
    1.64 +	IMPORT_C void SetListType ( TListType aListType );
    1.65 +	IMPORT_C void SetFavouriteNameL ( const TDesC8& aFavouriteName );	
    1.66 +	
    1.67 +private:
    1.68 +	// Used internally. Not intended for external use
    1.69 +	CInetUriImpl& Impl () const;
    1.70 +	void Attach ( CInetUriImpl& aInetUri );
    1.71 +private:
    1.72 +	CInetUriImpl* iInetUriImpl; // // The internal URI object that this handle is connected to
    1.73 +	};
    1.74 +
    1.75 +#endif //__INETURI_H__