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 |
|
28 * defined for security dialogs in /epoc32/include/platform/secdlgimpldefs.h. |
|
29 * TSecurityDialogOperation lists the possible operations. A derived class |
|
30 * implements each operation separately. This base class works as common API |
|
31 * between different operation classes and the main CSecurityDialog class. |
|
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 |
|
49 protected: // data |
|
50 MSecurityDialogOperationObserver& iObserver; |
|
51 RMessage2 iMessage; |
|
52 const TInt iReplySlot; |
|
53 }; |
|
54 |
|
55 #endif // SECURITYDIALOGOPERATION_H |
|
56 |
|