|
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 CSecuiDialog operations |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SECUIDIALOGOPERATION_H |
|
19 #define SECUIDIALOGOPERATION_H |
|
20 |
|
21 #include <e32base.h> // CActive |
|
22 |
|
23 class MSecuiDialogOperationObserver; |
|
24 |
|
25 |
|
26 /** |
|
27 * CSecuiDialogOperation is a base class for different kinds of operations |
|
28 * defined for secui 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 CSecuiDialog class. |
|
32 */ |
|
33 NONSHARABLE_CLASS( CSecuiDialogOperation ) : public CActive |
|
34 { |
|
35 protected: // constructor |
|
36 CSecuiDialogOperation( MSecuiDialogOperationObserver& aObserver, |
|
37 const RMessage2& aMessage, TInt aReplySlot ); |
|
38 |
|
39 public: // destructor |
|
40 ~CSecuiDialogOperation(); |
|
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: // new functions |
|
50 void ShowWarningNoteL( const TDesC& aMessage ); |
|
51 |
|
52 protected: // data |
|
53 MSecuiDialogOperationObserver& iObserver; |
|
54 RMessage2 iMessage; |
|
55 const TInt iReplySlot; |
|
56 }; |
|
57 |
|
58 #endif // SECUIDIALOGOPERATION_H |
|
59 |