applayerpluginsandutils/uripermissionservices/client/inc/ineturiproperties.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 //
       
    15 
       
    16 #ifndef __INETURIPROPERTIES_H__
       
    17 #define __INETURIPROPERTIES_H__
       
    18 
       
    19 #include <ineturilistdef.h>
       
    20 #include <s32mem.h>
       
    21 
       
    22 /**
       
    23 This class holds all the associated properties CInetUriListImpl. It is having methods to
       
    24 pack and unpack the properties data that will be sent/receive via IPC.
       
    25 
       
    26 @internalComponent
       
    27 */
       
    28 NONSHARABLE_CLASS ( CInetUriProperties ) : public CBase
       
    29 	{
       
    30 	public:
       
    31 	static CInetUriProperties* NewL ( InetUriList::TServiceType aServiceType, InetUriList::TListType aListType );
       
    32 	
       
    33 	CInetUriProperties ();
       
    34 	~CInetUriProperties ();
       
    35 	
       
    36 	
       
    37 	InetUriList::TServiceType ServiceType () const;
       
    38 	InetUriList::TListType ListType () const;
       
    39 	InetUriList::TPermission Permission () const;
       
    40 	const TDesC8& FavouriteName () const;
       
    41 	TInt PropId () const;
       
    42 	
       
    43 	void SetServiceType ( InetUriList::TServiceType aServiceType );
       
    44 	void SetListType ( InetUriList::TListType aListType );
       
    45 	void SetPermission ( InetUriList::TPermission aPermission );
       
    46 	void SetFavouriteNameL ( const TDesC8& aFavouriteName );
       
    47 	void SetPropId ( TInt aId );
       
    48 	
       
    49 	TInt Size ();
       
    50 	void PackL ( RWriteStream& aStream );
       
    51 	void UnpackL ( RReadStream& aStream );
       
    52 	
       
    53 	void Clear ();
       
    54 	
       
    55 	private:
       
    56 	CInetUriProperties ( InetUriList::TServiceType aServiceType, InetUriList::TListType aListType );
       
    57 
       
    58 	private:
       
    59 	TInt						iPropId;
       
    60 	InetUriList::TServiceType 	iServiceType;
       
    61 	InetUriList::TListType 		iListType;
       
    62 	InetUriList::TPermission	iPermission;
       
    63 	HBufC8* 					iFavouriteName;				
       
    64 	};
       
    65 
       
    66 #endif // __INETURIPROPERTIES_H__