24
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// implementation of base spud etel driver notifier
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalComponent
|
|
21 |
*/
|
|
22 |
|
|
23 |
#include <e32def.h>
|
|
24 |
|
|
25 |
#include "ceteldrivernotifier.h"
|
|
26 |
#include "PDPFSM.h"
|
|
27 |
#include "spudteldebuglogger.h"
|
|
28 |
|
|
29 |
|
|
30 |
/**
|
|
31 |
@param aPdpFsmInterface - reference to pdp fsm interface
|
|
32 |
*/
|
|
33 |
CEtelDriverNotifier::CEtelDriverNotifier(CPdpFsmInterface& aPdpFsmInterface)
|
|
34 |
: CActive(EPriorityStandard),
|
|
35 |
iPdpFsmInterface(aPdpFsmInterface)
|
|
36 |
{
|
|
37 |
CActiveScheduler::Add(this);
|
|
38 |
}
|
|
39 |
|
|
40 |
|
|
41 |
void CEtelDriverNotifier::RunL()
|
|
42 |
{
|
|
43 |
// notify fsm in any case
|
|
44 |
Notify(iStatus);
|
|
45 |
|
|
46 |
if(iStatus == KErrNone)
|
|
47 |
{
|
|
48 |
// repost
|
|
49 |
Start();
|
|
50 |
}
|
|
51 |
else // error
|
|
52 |
{
|
|
53 |
if(KErrCancel != iStatus.Int())
|
|
54 |
{
|
|
55 |
SPUDTEL_ERROR_LOG(_L("CEtelDriverNotifier::RunL() reported an error: %d"),
|
|
56 |
iStatus.Int());
|
|
57 |
}
|
|
58 |
}
|
|
59 |
}
|
|
60 |
|