53
|
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: Basic PIN query operation in security dialog
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef SECURITYDIALOGOPERBASICPINQUERY_H
|
|
19 |
#define SECURITYDIALOGOPERBASICPINQUERY_H
|
|
20 |
|
|
21 |
#include "securitydialogoperation.h" // CSecurityDialogOperation
|
|
22 |
#include <secdlgimpldefs.h> // TPINValue
|
|
23 |
|
|
24 |
class MSecurityDialogOperationObserver;
|
|
25 |
class CSecQueryUi;
|
|
26 |
|
|
27 |
|
|
28 |
/**
|
|
29 |
* CBasicPinQueryOperation is a CSecurityDialogOperation that handles
|
|
30 |
* EEnterPIN, EEnablePIN, EChangePIN, and EDisablePIN operations.
|
|
31 |
*/
|
|
32 |
NONSHARABLE_CLASS( CBasicPinQueryOperation ) : public CSecurityDialogOperation
|
|
33 |
{
|
|
34 |
public: // constructors and destructor
|
|
35 |
static CBasicPinQueryOperation* NewL( MSecurityDialogOperationObserver& aObserver,
|
|
36 |
const RMessage2& aMessage, TInt aReplySlot );
|
|
37 |
~CBasicPinQueryOperation();
|
|
38 |
|
|
39 |
public: // from CSecurityDialogOperation
|
|
40 |
void StartL( const TDesC8& aBuffer );
|
|
41 |
void CancelOperation();
|
|
42 |
|
|
43 |
protected: // from CActive (via CSecurityDialogOperation)
|
|
44 |
void RunL();
|
|
45 |
void DoCancel();
|
|
46 |
|
|
47 |
private: // new functions
|
|
48 |
CBasicPinQueryOperation( MSecurityDialogOperationObserver& aObserver,
|
|
49 |
const RMessage2& aMessage, TInt aReplySlot );
|
|
50 |
void ReturnResultL( TInt aErrorCode );
|
|
51 |
|
|
52 |
private: // data
|
|
53 |
CSecQueryUi* iQueryUi;
|
|
54 |
const TPINInput* iPinInput;
|
|
55 |
TPINValue iPinValue;
|
|
56 |
};
|
|
57 |
|
|
58 |
#endif // SECURITYDIALOGOPERBASICPINQUERY_H
|
|
59 |
|