locationsystemui/locationsysui/locverifier/inc/lpdperiodicreqinfo.h
changeset 0 667063e416a2
child 8 6fcbaa43369c
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Periodic info structure
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CLPDPERIODICREQINFO_H
       
    20 #define CLPDPERIODICREQINFO_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <lbs/epos_cposprivacynotifier.h>
       
    24 
       
    25 /**
       
    26 *  Periodic info structure to Que.
       
    27 *
       
    28 *  @since S60 9.2tb
       
    29 */
       
    30 class TLpdPeriodicReqInfo
       
    31     { 
       
    32     public :        
       
    33 		/**
       
    34         * Copy constructor
       
    35         */
       
    36         TLpdPeriodicReqInfo(TPosQNRequestId aPrivacyId, TInt64 aSUPLSessionId)
       
    37 	        {
       
    38 	        iPrivacyId = aPrivacyId;
       
    39 	        iSUPLSessionId = aSUPLSessionId;
       
    40 	        };
       
    41 			
       
    42 		/**
       
    43         * inline function used for comparision
       
    44         */
       
    45         static inline TInt MatchSession(const TLpdPeriodicReqInfo& aFirst, const TLpdPeriodicReqInfo& aSecond)
       
    46             {
       
    47             if ( aFirst.iSUPLSessionId == aSecond.iSUPLSessionId )
       
    48                 return 1;
       
    49             return 0;
       
    50             };
       
    51             
       
    52         /**
       
    53         * inline function used for comparision
       
    54         */
       
    55         static inline TInt MatchPrivacy(const TLpdPeriodicReqInfo& aFirst, const TLpdPeriodicReqInfo& aSecond)
       
    56             {
       
    57             if ( aFirst.iPrivacyId == aSecond.iPrivacyId )
       
    58                 return 1;
       
    59             return 0;
       
    60             };
       
    61 			
       
    62     public :
       
    63 		// Periodic Notification Request Information like TPosQNRequestId and SUPLSessionId
       
    64     	TPosQNRequestId iPrivacyId;
       
    65     	TInt64 iSUPLSessionId;
       
    66  };
       
    67 
       
    68 #endif //CLPDPERIODICREQINFO_H
       
    69 
       
    70 // End of File