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: Base class for CSecuiDialog operations
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include "secuidialogoperation.h" // CSecuiDialogOperation
|
|
19 |
#include "secuidialogoperationobserver.h" // MSecuiDialogOperationObserver
|
|
20 |
#include <hb/hbwidgets/hbdevicemessageboxsymbian.h> // CHbDeviceMessageBoxSymbian
|
|
21 |
#include "secuidialogstrace.h" // TRACE macro
|
|
22 |
|
|
23 |
|
|
24 |
// ======== MEMBER FUNCTIONS ========
|
|
25 |
|
|
26 |
// ---------------------------------------------------------------------------
|
|
27 |
// CSecuiDialogOperation::CSecuiDialogOperation()
|
|
28 |
// ---------------------------------------------------------------------------
|
|
29 |
//
|
|
30 |
CSecuiDialogOperation::CSecuiDialogOperation(
|
|
31 |
MSecuiDialogOperationObserver& aObserver, const RMessage2& aMessage,
|
|
32 |
TInt aReplySlot ) : CActive( CActive::EPriorityStandard ), iObserver( aObserver ),
|
|
33 |
iMessage( aMessage ), iReplySlot( aReplySlot )
|
|
34 |
{
|
63
|
35 |
RDEBUG("aMessage.Handle()", aMessage.Handle());
|
59
|
36 |
CActiveScheduler::Add( this );
|
|
37 |
}
|
|
38 |
|
|
39 |
// ---------------------------------------------------------------------------
|
|
40 |
// CSecuiDialogOperation::~CSecuiDialogOperation()
|
|
41 |
// ---------------------------------------------------------------------------
|
|
42 |
//
|
|
43 |
CSecuiDialogOperation::~CSecuiDialogOperation()
|
|
44 |
{
|
63
|
45 |
RDEBUG("0", 0);
|
59
|
46 |
Cancel();
|
63
|
47 |
RDEBUG("0x99", 0x99);
|
59
|
48 |
}
|
|
49 |
|
|
50 |
// ---------------------------------------------------------------------------
|
|
51 |
// CSecuiDialogOperation::RunError()
|
|
52 |
// ---------------------------------------------------------------------------
|
|
53 |
//
|
|
54 |
TInt CSecuiDialogOperation::RunError( TInt aError )
|
|
55 |
{
|
63
|
56 |
RDEBUG("aError", aError);
|
59
|
57 |
if( !iMessage.IsNull() )
|
|
58 |
{
|
63
|
59 |
RDEBUG("completing message iMessage.Handle()", iMessage.Handle());
|
59
|
60 |
iMessage.Complete( aError );
|
|
61 |
}
|
63
|
62 |
RDEBUG("0x99", 0x99);
|
59
|
63 |
return KErrNone;
|
|
64 |
}
|
|
65 |
|
|
66 |
// ---------------------------------------------------------------------------
|
|
67 |
// CSecuiDialogOperation::ShowWarningNoteL()
|
|
68 |
// ---------------------------------------------------------------------------
|
|
69 |
//
|
63
|
70 |
void CSecuiDialogOperation::ShowWarningNoteL( const TDesC& /* aMessage */ )
|
59
|
71 |
{
|
63
|
72 |
RDEBUG("not used 0", 0);
|
59
|
73 |
}
|
|
74 |
|