48
|
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: Base class for CSecurityDialog operations
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef SECURITYDIALOGOPERATION_H
|
|
19 |
#define SECURITYDIALOGOPERATION_H
|
|
20 |
|
|
21 |
#include <e32base.h> // CActive
|
|
22 |
|
|
23 |
class MSecurityDialogOperationObserver;
|
|
24 |
|
|
25 |
|
|
26 |
/**
|
|
27 |
* CSecurityDialogOperation is a base class for different kinds of operations
|
53
|
28 |
* defined for security dialogs in secdlgimpldefs.h. TSecurityDialogOperation
|
|
29 |
* lists the possible operations. A derived class implements each operation
|
|
30 |
* separately. This base class works as common API between different operation
|
|
31 |
* classes and the main CSecurityDialog class.
|
48
|
32 |
*/
|
|
33 |
NONSHARABLE_CLASS( CSecurityDialogOperation ) : public CActive
|
|
34 |
{
|
|
35 |
protected: // constructor
|
|
36 |
CSecurityDialogOperation( MSecurityDialogOperationObserver& aObserver,
|
|
37 |
const RMessage2& aMessage, TInt aReplySlot );
|
|
38 |
|
|
39 |
public: // destructor
|
|
40 |
~CSecurityDialogOperation();
|
|
41 |
|
|
42 |
public: // new function
|
|
43 |
virtual void StartL( const TDesC8& aBuffer ) = 0;
|
|
44 |
virtual void CancelOperation() = 0;
|
|
45 |
|
|
46 |
protected: // from CActive
|
|
47 |
TInt RunError( TInt aError );
|
|
48 |
|
53
|
49 |
protected: // new functions
|
|
50 |
void ShowWarningNoteL( const TDesC& aMessage );
|
|
51 |
|
48
|
52 |
protected: // data
|
|
53 |
MSecurityDialogOperationObserver& iObserver;
|
|
54 |
RMessage2 iMessage;
|
|
55 |
const TInt iReplySlot;
|
|
56 |
};
|
|
57 |
|
|
58 |
#endif // SECURITYDIALOGOPERATION_H
|
|
59 |
|