|
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 // @file |
|
15 // @internalTechnology |
|
16 // @released |
|
17 // Class implementation of CLbsPrivacyNotifierImpl |
|
18 // |
|
19 // |
|
20 |
|
21 #ifndef __LBSPRIVACYNOTIFIERIMPL_H__ |
|
22 #define __LBSPRIVACYNOTIFIERIMPL_H__ |
|
23 |
|
24 #include <e32std.h> |
|
25 #include <e32def.h> |
|
26 #include <e32base.h> |
|
27 |
|
28 #include "LbsPrivacyNotifier.h" |
|
29 |
|
30 |
|
31 /* |
|
32 Wrapper to hide internal implementation |
|
33 |
|
34 @internalTechnology |
|
35 @released |
|
36 */ |
|
37 NONSHARABLE_CLASS(CLbsPrivacyNotifierImpl) : public CActive |
|
38 { |
|
39 |
|
40 public: |
|
41 static CLbsPrivacyNotifierImpl* NewL(TPrivacyDialogType aDlg); |
|
42 static CLbsPrivacyNotifierImpl* NewL(TPrivacyDialogType aDlg, TTimeIntervalMicroSeconds32 aTimeout); |
|
43 ~CLbsPrivacyNotifierImpl(); |
|
44 void SetObserver(MLbsPrivacyNotifierObserver* aObserver); |
|
45 void DisplayL(TInt& aErr, const TLbsExternalRequestInfo& aRequestInfo); |
|
46 |
|
47 protected: |
|
48 CLbsPrivacyNotifierImpl(); |
|
49 void ConstructL(TPrivacyDialogType aDlg); |
|
50 void ConstructL(TPrivacyDialogType aDlg, TTimeIntervalMicroSeconds32 aTimeout); |
|
51 TInt Connect(); |
|
52 void DoCancel(); |
|
53 void RunL(); |
|
54 |
|
55 private: |
|
56 RNotifier iNotifier;// this hidden implementation uses notifier server to present user with dialogs |
|
57 RTimer iTimer; // to implement dialog timeout |
|
58 TPrivacyDialogType iDialog; |
|
59 TTimeIntervalMicroSeconds32 iTimeout; |
|
60 TBool iConnected; |
|
61 TRequestStatus iStatus; |
|
62 MLbsPrivacyNotifierObserver* iObserver; |
|
63 TInt iButtonVal; |
|
64 }; |
|
65 |
|
66 #endif // __LBSPRIVACYNOTIFIERIMPL_H__ |