59
|
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: CSecuiDialogs active object
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef SECUIDIALOGS_H
|
|
19 |
#define SECUIDIALOGS_H
|
|
20 |
|
|
21 |
#include <e32base.h> // CActive
|
|
22 |
#include <secdlgimpldefs.h> // TSecurityDialogOperation
|
|
23 |
#include "secuidialognotifiersrv.h" // RSecuiDialogNotifierSrv
|
|
24 |
|
|
25 |
|
|
26 |
/**
|
|
27 |
* Secui Dialogs
|
|
28 |
* CSecuiDialogs class provides implementation for the secui dialog
|
|
29 |
* operations (TSecurityDialogOperation) defined in secdlgimpldefs.h.
|
|
30 |
* When RNotifier class is used to open secui dialogs, CSecuiDialogNotifier
|
|
31 |
* class calls CSecuiDialogs to show the requested dialogs. CSecuiDialogs
|
|
32 |
* uses RSecuiDialogNotifierSrv server to do the actual work.
|
|
33 |
*/
|
|
34 |
NONSHARABLE_CLASS( CSecuiDialogs ) : public CActive
|
|
35 |
{
|
|
36 |
public: // constructors and destructor
|
|
37 |
static CSecuiDialogs* NewL( TBool& aIsDeleted );
|
|
38 |
~CSecuiDialogs();
|
|
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 |
CSecuiDialogs( TBool& aIsDeleted );
|
|
56 |
|
|
57 |
private: // data
|
|
58 |
TBool& iIsDeleted;
|
|
59 |
|
|
60 |
TInt iRetry;
|
|
61 |
TInt iReplySlot;
|
|
62 |
RMessagePtr2 iMessagePtr;
|
|
63 |
TSecurityDialogOperation iOperation;
|
|
64 |
|
|
65 |
RSecuiDialogNotifierSrv iServer;
|
|
66 |
HBufC8* iInputBuffer;
|
|
67 |
TAny* iOutputBuffer;
|
|
68 |
TPtr8 iOutputPtr;
|
|
69 |
};
|
|
70 |
|
|
71 |
#endif // SECUIDIALOGS_H
|
|
72 |
|