locationrequestmgmt/networkrequesthandler/inc/lbsprivacynotifier.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 // Copyright (c) 2005-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 __LBSPRIVACYNOTIFIER_H__
       
    23 #define __LBSPRIVACYNOTIFIER_H__
       
    24 
       
    25 #include <e32std.h>
       
    26 #include <e32def.h>
       
    27 #include <e32base.h>
       
    28 #include <lbs/lbsprivacyextnotifiers.h>
       
    29 
       
    30 //forward declaration
       
    31 class CLbsPrivacyNotifierImpl;
       
    32 
       
    33 
       
    34 /**
       
    35 Privacy Notification dialog type
       
    36 
       
    37 @internalTechnology
       
    38 @released
       
    39 */
       
    40 enum TPrivacyDialogType
       
    41 	{
       
    42 	EPrivacyDialogNotification,
       
    43 	EPrivacyDialogVerification
       
    44 	};	
       
    45 
       
    46 /**
       
    47 Observer class for Privacy Notification Server
       
    48 
       
    49 @internalTechnology
       
    50 @released
       
    51 */
       
    52 class MLbsPrivacyNotifierObserver
       
    53 {
       
    54 public:
       
    55 	//Pure virtual implemented by classes which inherit from MLbsPrivacyNotifierObserver
       
    56 	virtual void OnNotificationDialogResponse(TInt aErr, const TLbsPrivacyNotifierResponse& aResponse) = 0;
       
    57 };
       
    58 
       
    59 
       
    60 /**
       
    61 Privacy Notification Dialog API
       
    62 
       
    63 @internalTechnology
       
    64 @released
       
    65 */
       
    66 class CLbsPrivacyNotifier : public CBase
       
    67 	{
       
    68 public:
       
    69 	IMPORT_C static CLbsPrivacyNotifier* NewL(TPrivacyDialogType aDlg);
       
    70 	IMPORT_C static CLbsPrivacyNotifier* NewL(TPrivacyDialogType aDlg, TTimeIntervalMicroSeconds32 aTimeout);
       
    71 	IMPORT_C ~CLbsPrivacyNotifier();
       
    72 	IMPORT_C void SetObserver(MLbsPrivacyNotifierObserver* aObserver);
       
    73 	IMPORT_C void DisplayL(TInt& aErr, const TLbsExternalRequestInfo& aRequestInfo);
       
    74 	IMPORT_C void Cancel();
       
    75 
       
    76 protected:
       
    77 	CLbsPrivacyNotifier();
       
    78 	void ConstructL(TPrivacyDialogType aDlg);
       
    79 	void ConstructL(TPrivacyDialogType aDlg, TTimeIntervalMicroSeconds32 aTimeout);
       
    80 private:
       
    81 	//handle to dialog implementation
       
    82 	CLbsPrivacyNotifierImpl* iBody;
       
    83 	};
       
    84 
       
    85 
       
    86 #endif // __LBSPRIVACYNOTIFIER_H__