networkprotocolmodules/privacyprotocolmodule/ClientAPI/PrivacyRequestAPI/inc/lbsprivacyrequestresponsehandler.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  @prototype
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef LBS_PRIVACYREQUESTRESPONSEHANDLER_H
       
    24 #define LBS_PRIVACYREQUESTRESPONSEHANDLER_H
       
    25 
       
    26 // System  
       
    27 #include <e32base.h>
       
    28 
       
    29 //Component
       
    30 #include "lbsprivacyrequest.h" 
       
    31 #include "lbsprivacyrequestimpl.h"
       
    32 
       
    33 /**
       
    34 * This Class Handles verification requests.
       
    35 */
       
    36 NONSHARABLE_CLASS(CPrivacyRequestResponseHandler) : public CActive
       
    37     {
       
    38     public:  
       
    39 
       
    40         static CPrivacyRequestResponseHandler* NewLC(CLbsPrivacyRequestImpl& aParent, RPrivacyServer& aPrivacyServer,
       
    41         					     MLbsPrivacyRequestObserver& aObserver);
       
    42         virtual ~CPrivacyRequestResponseHandler();
       
    43     
       
    44     	void NewPrivacyRequest(TUint32& aRequestId, const TLbsExternalRequestInfo& aRequestInfo, 
       
    45     			const TLbsNetPosRequestPrivacy& aPrivacyRequest);
       
    46     	
       
    47     	void RepeatPrivacyRequest(TUint32 aRequestId, const TLbsExternalRequestInfo& aRequestInfo, 
       
    48     			const TLbsNetPosRequestPrivacy& aPrivacyRequest);
       
    49 
       
    50     private: // From CActive
       
    51 
       
    52        void RunL();
       
    53        void DoCancel();
       
    54        TInt RunError(TInt aError);
       
    55               
       
    56     private:
       
    57           
       
    58         CPrivacyRequestResponseHandler(CLbsPrivacyRequestImpl& aParent, RPrivacyServer& aPrivacyServer,
       
    59         						  MLbsPrivacyRequestObserver& aObserver);
       
    60         
       
    61                                     
       
    62     private:  // Data
       
    63     	CLbsPrivacyRequestImpl& iParent;
       
    64         RPrivacyServer& iPrivacyServer;
       
    65         MLbsPrivacyRequestObserver& iObserver;
       
    66         TUint32 iRequestId;
       
    67     };
       
    68 
       
    69 #endif      // LBS_PRIVACYREQUESTRESPONSEHANDLER_H