applayerpluginsandutils/uripermissionservices/client/inc/ineturiimpl.h
changeset 0 b16258d2340f
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 // @internalComponent
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __INETURIIMPL_H__
       
    19 #define __INETURIIMPL_H__
       
    20 
       
    21 #include <ineturilistdef.h>
       
    22 #include <s32mem.h>
       
    23 #include "ineturiproperties.h"
       
    24 
       
    25 class TUriC8;
       
    26 class CUri8;
       
    27 
       
    28 
       
    29 /**
       
    30 CInetUriImpl implements RInetUri
       
    31 
       
    32 This class is the place holder for the URI and its associated properties. It is having
       
    33 methods to set the URI and its associated properties. Once created the URI and servicetype
       
    34 cannot be modified. Also, the class is having methods to pack and unpack the data streams
       
    35 that will be sent/receive via IPC
       
    36 
       
    37 @internalComponent
       
    38 */
       
    39 NONSHARABLE_CLASS ( CInetUriImpl ) : public CBase
       
    40 	{
       
    41 public:
       
    42 
       
    43 	~CInetUriImpl ();
       
    44 	
       
    45 	static CInetUriImpl* NewL ();
       
    46 	static CInetUriImpl* NewL ( const TDesC8& aUri, InetUriList::TServiceType aServiceType, InetUriList::TListType aType );
       
    47 	
       
    48 	CInetUriProperties& Properties () const;
       
    49 	
       
    50 	void SetUri ( CUri8& aUri );
       
    51 	
       
    52 	void SetUriL ( const TDesC8& aUri );
       
    53 	const CUri8& Uri () const;
       
    54 	const TDesC8& UriDes () const;
       
    55 	
       
    56 	void SetUriId ( TInt aId );
       
    57 	TInt UriId () const;
       
    58 	
       
    59 	TInt Size () const;
       
    60 	void PackL ( RWriteStream& aStream );
       
    61 	void UnpackL ( RReadStream& aStream );
       
    62 	
       
    63 	void Clear ();
       
    64 	TBool IsDirty () const;
       
    65 	
       
    66 	void LeaveIfReadOnlyL () const;
       
    67 private:
       
    68 	CInetUriImpl ();
       
    69 	void ConstructL ();
       
    70 	void ConstructL ( const TDesC8& aUri, InetUriList::TServiceType aServiceType, InetUriList::TListType aType );		
       
    71 	void ConstructL ( InetUriList::TServiceType aServiceType, InetUriList::TListType aType );
       
    72 	
       
    73 private:
       
    74 	TInt				iUriId;
       
    75 	CUri8* 				iUri;
       
    76 	CInetUriProperties* iProperties;
       
    77 	};
       
    78 
       
    79 #endif // __INETURIIMPL_H__
       
    80