applayerpluginsandutils/uripermissionservices/client/inc/ineturilistsession.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 __INETURILISTSESSION_H__
       
    17 #define __INETURILISTSESSION_H__
       
    18 
       
    19 
       
    20 #include <ineturilistdef.h>
       
    21 #include <tldlistdef.h>
       
    22 #include <ineturi.h>
       
    23 #include "urilistreadstream.h"
       
    24 
       
    25 /**
       
    26 The ineturilist client session class which gets instantiated once the application 
       
    27 loads the ineturilist dll. This connects to ineturilist server and perform all IPC 
       
    28 operations.
       
    29 
       
    30 @internalComponent
       
    31 */
       
    32 class RInetUriListSession : public RSessionBase
       
    33 {
       
    34 
       
    35 public:
       
    36 	RInetUriListSession ();
       
    37 	~RInetUriListSession ();
       
    38 
       
    39 	TInt Connect ();
       
    40 	void Close ();	
       
    41 	
       
    42 	void InitializeL ();
       
    43 	void AddL ( CInetUriImpl& aInetUri );
       
    44 	void RemoveL ( const CInetUriImpl& aInetUri );
       
    45 	void UpdateL ( const CInetUriImpl& aInetUri );
       
    46 	
       
    47 	TInt Count ( InetUriList::TServiceType aServiceType, InetUriList::TListType aListType );
       
    48 	TInt GetListTypeL ( const TDesC8& aUri, InetUriList::TServiceType aServiceType, InetUriList::TListType& aListType );
       
    49 
       
    50 	CUriListReadStream* QueryUriL ( const TQueryArgs& aArgs );
       
    51 	CUriListReadStream* QueryUriL ( const TDesC8& aUri, const TQueryArgs& aArgs );
       
    52 	
       
    53 	TInt QueryTldInfo ( const TPolicyQueryArgs& aArgs, TPtr8& aCharSet );
       
    54 	TInt GetHostType ( const TPolicyQueryArgs& aArgs );
       
    55 
       
    56 	TInt ReadQueryResults ( TInt aHandle, TPtr8& aPtr );
       
    57 	TInt PolicyDataLength ( const TPolicyQueryArgs& aArgs );
       
    58 	void CloseSrvStream ( TInt aHandle );
       
    59 private:
       
    60 	TInt StartServer ();
       
    61 	CBufFlat* GetBufferLC ( TInt aSize );	
       
    62 };
       
    63 
       
    64 #endif // __INETURILISTSESSION_H__