locationrequestmgmt/networkrequesthandler/inc/EPos_PrivacyInternal.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 /*
       
     2 * Copyright (c) 2005-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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  @file
       
    23  @internalComponent
       
    24  @released
       
    25 */
       
    26 
       
    27 #ifndef PRIVACYINTERNAL_H
       
    28 #define PRIVACYINTERNAL_H
       
    29 
       
    30 #include <e32base.h>
       
    31 #include <lbs/epos_privacy.h>
       
    32 
       
    33 //CONSTANTS
       
    34 const TUint KPosPrivacyServerCancelReasonArg = 0;
       
    35 const TUint KPosPrivacyServerRequestIdArg    = 0;
       
    36 const TUint KPosPrivacyServerDataPtrArg      = 1;
       
    37 const TUint KPosPrivacyServerRequestDataArg  = 2;
       
    38 
       
    39 // DATA TYPES
       
    40 struct TPosRequestData
       
    41     {
       
    42     TPosRequestSource   iRequestSource;
       
    43     TPosRequestDecision iTimeoutStrategy;
       
    44     TPosRequestDecision iRequestDecision;
       
    45     TPosNotificationReason iNotificationReason;
       
    46     TPosVerifyCancelReason iCancelReason;
       
    47     };
       
    48 
       
    49 enum TPosPrivacyClientServer
       
    50     {
       
    51     EPosPrivacyVerifyService = 0,
       
    52     EPosPrivacyCancel,
       
    53     EPosPrivacyNotifyNonVerified,
       
    54     EPosPrivacyGetRequestId,
       
    55     EPosPrivacyServerMaxEnumValue,
       
    56     EPosPrivacyServerLast
       
    57     };
       
    58 
       
    59 const TInt KPosBufFlatExpandSize = 100;
       
    60 
       
    61 template <class T>
       
    62 class CleanupResetAndDestroy
       
    63     {
       
    64 public:
       
    65     inline static void PushL(T& aRef);
       
    66 private:
       
    67     static void ResetAndDestroy(TAny *aPtr);
       
    68     };
       
    69 template <class T>
       
    70 inline void CleanupResetAndDestroyPushL(T& aRef);
       
    71 
       
    72 #include "EPos_PrivacyInternal.inl"
       
    73 
       
    74 #endif      // PRIVACYINTERNAL_H
       
    75 
       
    76 // End of File