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 |
// PDP status change notifier
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalComponent
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef CPDPSTATUSCHAGENOTIFIER_H
|
|
24 |
#define CPDPSTATUSCHAGENOTIFIER_H
|
|
25 |
|
|
26 |
#include <e32base.h>
|
|
27 |
#include <etelpckt.h>
|
|
28 |
|
|
29 |
#include <networking/umtsnifcontrolif.h>
|
|
30 |
#include "ceteldrivernotifier.h"
|
|
31 |
|
|
32 |
/** notifier for status of packet context */
|
|
33 |
class CPdpStatusChangeNotifier : public CEtelDriverNotifier
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
CPdpStatusChangeNotifier(TContextId aId, RPacketContext& aPacketContext,
|
|
37 |
CPdpFsmInterface& aPdpFsmInterface);
|
|
38 |
virtual ~CPdpStatusChangeNotifier();
|
|
39 |
|
|
40 |
virtual void Start();
|
|
41 |
|
|
42 |
protected:
|
|
43 |
virtual void Notify(const TRequestStatus& aStatus);
|
|
44 |
virtual void DoCancel();
|
|
45 |
|
|
46 |
private:
|
|
47 |
/** context id */
|
|
48 |
TContextId iId;
|
|
49 |
/** underlying packet context */
|
|
50 |
RPacketContext& iPacketContext;
|
|
51 |
|
|
52 |
/** status of a packet context */
|
|
53 |
RPacketContext::TContextStatus iContextStatus;
|
|
54 |
};
|
|
55 |
|
|
56 |
/** notifier for status of packet context */
|
|
57 |
class CMbmsPdpStatusChangeNotifier : public CEtelDriverNotifier
|
|
58 |
{
|
|
59 |
public:
|
|
60 |
CMbmsPdpStatusChangeNotifier(TContextId aId, RPacketMbmsContext& aMbmsPacketContext,
|
|
61 |
CPdpFsmInterface& aPdpFsmInterface);
|
|
62 |
virtual ~CMbmsPdpStatusChangeNotifier();
|
|
63 |
|
|
64 |
|
|
65 |
virtual void Start();
|
|
66 |
|
|
67 |
protected:
|
|
68 |
virtual void Notify(const TRequestStatus& aStatus);
|
|
69 |
virtual void DoCancel();
|
|
70 |
|
|
71 |
private:
|
|
72 |
/** context id */
|
|
73 |
TContextId iId;
|
|
74 |
/** underlying mbms packet context */
|
|
75 |
RPacketMbmsContext& iMbmsPacketContext;
|
|
76 |
/** status of a packet context */
|
|
77 |
RPacketContext::TContextStatus iContextStatus;
|
|
78 |
};
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
#endif // CPDPSTATUSCHAGENOTIFIER_H
|