networkprotocolmodules/privacyprotocolmodule/ClientAPI/Common/inc/lbsprivacyclient.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     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 /**
       
    17  @file
       
    18  @internalTechnology
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef LBS_PRIVACYCLIENT_H
       
    23 #define LBS_PRIVACYCLIENT_H
       
    24 
       
    25 //  INCLUDES
       
    26 #include <e32base.h>
       
    27 #include <lbs/lbsloccommon.h>
       
    28 #include <lbs/lbsnetcommon.h>
       
    29 #include "lbsprivacyservermsgenums.h"
       
    30 
       
    31 const TUint KLbsNetworkPrivacyApiUidValue			= 0x101f7a8a;
       
    32 const TUid  KLbsNetworkPrivacyApiUid				= {KLbsNetworkPrivacyApiUidValue};
       
    33 
       
    34 // CLASS DECLARATION
       
    35 NONSHARABLE_CLASS(RPrivacyServer): public RSessionBase
       
    36     {
       
    37     
       
    38     public: 
       
    39         
       
    40     	RPrivacyServer();
       
    41          
       
    42     	~RPrivacyServer();        
       
    43         
       
    44     	TInt Connect(TLbsProxyApiType aApiType);
       
    45        
       
    46     	void VerifyLocationRequest(TInt& aRequestId,TLbsExternalRequestInfo2& aRequestInfo,
       
    47         	                                TLbsNetPosRequestPrivacy& aNetPosRequestPrivacy,
       
    48         	                                TRequestStatus& aStatus);
       
    49                           
       
    50     	TInt CancelVerifyLocationRequest(TInt aRequestId ,TInt aCancelReason);
       
    51              
       
    52     	TInt NotifyLocationRequest(TLbsExternalRequestInfo2& aRequestInfo, TInt& aRequestId,
       
    53                                             TLbsNetPosRequestPrivacy& aNetPosRequestPrivacy);
       
    54            
       
    55         
       
    56     	TInt NotifyVerificationTimeout(TLbsExternalRequestInfo2& aRequestInfo,TInt aRequestId,
       
    57                                                TLbsNetPosRequestPrivacy& aNetPosRequestPrivacy);
       
    58 
       
    59     	void NewPrivacyRequest(TUint32& aRequestId, const TLbsExternalRequestInfo& aRequestInfo, 
       
    60     			const TLbsNetPosRequestPrivacy& aPrivacyRequest, TRequestStatus& aStatus);
       
    61     	
       
    62     	void RepeatPrivacyRequest(TUint32 aRequestId, const TLbsExternalRequestInfo& aRequestInfo, 
       
    63     			const TLbsNetPosRequestPrivacy& aPrivacyRequest, TRequestStatus& aStatus);
       
    64     	
       
    65     	TInt CompleteRequest(TUint32 aRequestId, TInt aReason);
       
    66     	
       
    67         /**
       
    68         * From RSessionBase
       
    69         */
       
    70     	void Close();
       
    71 
       
    72     private:     
       
    73         TInt StartLbsSystem();
       
    74  
       
    75     private:
       
    76     	TLbsExternalRequestInfo2 iRequestInfo;
       
    77         TPckg<TLbsExternalRequestInfo2>	iRequestInfoPkg;
       
    78         TLbsNetPosRequestPrivacy iNetPosRequestPrivacy;
       
    79 		TPckg<TLbsNetPosRequestPrivacy>	iNetPosRequestPrivacyPkg;
       
    80 		TInt iRequestId;
       
    81 		TPckg<TInt> iRequestIdPkg;
       
    82 		TUint32 iRequestIdUint32;
       
    83 		TPckg<TUint32> iRequestIdUint32Pkg;
       
    84         };
       
    85 #endif      // RPrivacyServer_H