|
1 /* |
|
2 * Copyright (c) 2010 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: CSecurityDialogs active object |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SECURITYDIALOGS_H |
|
19 #define SECURITYDIALOGS_H |
|
20 |
|
21 #include <e32base.h> // CActive |
|
22 #include <secdlgimpldefs.h> // TSecurityDialogOperation |
|
23 #include "securitydialognotifiersrv.h" // RSecurityDialogNotifierSrv |
|
24 |
|
25 |
|
26 /** |
|
27 * Security Dialogs |
|
28 * CSecurityDialogs class provides implementation for the security dialog |
|
29 * operations (TSecurityDialogOperation) defined in secdlgimpldefs.h. |
|
30 * When RNotifier class is used to open security dialogs, CSecurityDialogNotifier |
|
31 * class calls CSecurityDialogs to show the requested dialogs. CSecurityDialogs |
|
32 * uses RSecurityDialogNotifierSrv server to do the actual work. |
|
33 */ |
|
34 NONSHARABLE_CLASS( CSecurityDialogs ) : public CActive |
|
35 { |
|
36 public: // constructors and destructor |
|
37 static CSecurityDialogs* NewL( TBool& aIsDeleted ); |
|
38 ~CSecurityDialogs(); |
|
39 |
|
40 public: // new functions |
|
41 /** |
|
42 * Starts handling the requested operation. |
|
43 * @param aBuffer - Data passed from client RNotifier::StartNotifierAndGetResponse() call |
|
44 * @param aReplySlot - Identifies which message argument to use for the reply |
|
45 * @param aMessage - Encapsulates the client request |
|
46 */ |
|
47 void StartLD( const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage ); |
|
48 |
|
49 protected: // from CActive |
|
50 void RunL(); |
|
51 void DoCancel(); |
|
52 TInt RunError( TInt aError ); |
|
53 |
|
54 private: // new functions |
|
55 CSecurityDialogs( TBool& aIsDeleted ); |
|
56 |
|
57 private: // data |
|
58 TBool& iIsDeleted; |
|
59 |
|
60 TInt iRetry; |
|
61 TInt iReplySlot; |
|
62 RMessagePtr2 iMessagePtr; |
|
63 TSecurityDialogOperation iOperation; |
|
64 |
|
65 RSecurityDialogNotifierSrv iServer; |
|
66 HBufC8* iInputBuffer; |
|
67 TAny* iOutputBuffer; |
|
68 TPtr8 iOutputPtr; |
|
69 }; |
|
70 |
|
71 #endif // SECURITYDIALOGS_H |
|
72 |