24
|
1 |
// Copyright (c) 1997-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 |
// HangUp command
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalAll
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef __ATHANGUP_H__
|
|
24 |
#define __ATHANGUP_H__
|
|
25 |
|
|
26 |
#include "ATCALL.H"
|
|
27 |
|
|
28 |
class CCallMobileVoice;
|
|
29 |
class CATHangUpVoice : public CATCallAlterCommands
|
|
30 |
/**
|
|
31 |
@internalComponent
|
|
32 |
*/
|
|
33 |
{
|
|
34 |
public:
|
|
35 |
static CATHangUpVoice* NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals);
|
|
36 |
CATHangUpVoice(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals);
|
|
37 |
~CATHangUpVoice();
|
|
38 |
void ExecuteCommand(TTsyReqHandle aTsyReqHandle, TAny* aParams,TCallInfoTSY* aCallInfo);
|
|
39 |
virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams);
|
|
40 |
virtual void Stop(TTsyReqHandle aTsyReqHandle);
|
|
41 |
protected:
|
|
42 |
CCommChatString* iNoCarrierExpectString;
|
|
43 |
TInt ValidateHangUpExpectString();
|
|
44 |
virtual void EventSignal(TEventSource aSource);
|
|
45 |
virtual void Complete(TInt aError,TEventSource aSource);
|
|
46 |
enum {
|
|
47 |
EATNotInProgress,
|
|
48 |
EATHangupWaitForWriteComplete,
|
|
49 |
EATHangupReadCompleted,
|
|
50 |
EHangUpCancelling
|
|
51 |
} iState;
|
|
52 |
};
|
|
53 |
|
|
54 |
|
|
55 |
class CATHangUpData : public CATCallAlterCommands
|
|
56 |
/**
|
|
57 |
@internalTechnology
|
|
58 |
*/
|
|
59 |
{
|
|
60 |
public:
|
|
61 |
static CATHangUpData* NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals);
|
|
62 |
CATHangUpData(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals);
|
|
63 |
~CATHangUpData();
|
|
64 |
void ExecuteCommand(TTsyReqHandle aTsyReqHandle, TAny* aParams,TCallInfoTSY* aCallInfo);
|
|
65 |
virtual void Start(TTsyReqHandle aTsyReqHandle,TAny*);
|
|
66 |
virtual void Stop(TTsyReqHandle aTsyReqHandle);
|
|
67 |
protected:
|
|
68 |
virtual void EventSignal(TEventSource aSource);
|
|
69 |
virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus);
|
|
70 |
virtual void Complete(TInt aError,TEventSource aSource);
|
|
71 |
private:
|
|
72 |
void ValidateHangUpExpectStringL();
|
|
73 |
private:
|
|
74 |
CCommChatString* iNoCarrierExpectString;
|
|
75 |
TInt iErrorCode;
|
|
76 |
enum {
|
|
77 |
EATNotInProgress,
|
|
78 |
EDTRDropped,
|
|
79 |
EWaitForDTRRaiseSettle,
|
|
80 |
EATEscapeSeqWaitForWriteComplete,
|
|
81 |
EATEscapeSeqCompleted,
|
|
82 |
EATHangupWaitForWriteComplete,
|
|
83 |
EATHangupReadCompleted,
|
|
84 |
EHangUpCancelling
|
|
85 |
} iState;
|
|
86 |
};
|
|
87 |
#endif
|