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 |
// Escape to command (online) mode
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalAll
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef __ATESCAPE_H__
|
|
24 |
#define __ATESCAPE_H__
|
|
25 |
|
|
26 |
#include "ATBASE.H"
|
|
27 |
|
|
28 |
class CATSetToOnlineCommandMode : public CATBase
|
|
29 |
/**
|
|
30 |
@internalTechnology
|
|
31 |
*/
|
|
32 |
{
|
|
33 |
public:
|
|
34 |
static CATSetToOnlineCommandMode* NewL(CATIO* aIo,CTelObject* aTelObject,CPhoneGlobals* aPhoneGlobals);
|
|
35 |
~CATSetToOnlineCommandMode();
|
|
36 |
void StartEscapeSequence(CATCommands* aPendingCommand, TTsyReqHandle aTsyReqHandle, TAny* aParams);
|
|
37 |
void StopEscapeSequence(TTsyReqHandle aTsyReqHandle);
|
|
38 |
protected:
|
|
39 |
CATSetToOnlineCommandMode(CATIO* aIo,CTelObject* aTelObject,CPhoneGlobals* aPhoneGlobals);
|
|
40 |
virtual void EventSignal(TEventSource aSource);
|
|
41 |
virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus);
|
|
42 |
private:
|
|
43 |
CATCommands* iPendingCommand; // Which command to set going after escaping to command mode
|
|
44 |
TAny* iParams;
|
|
45 |
enum
|
|
46 |
{
|
|
47 |
EWaitForATSilence,
|
|
48 |
EWaitForWriteCompletion,
|
|
49 |
EWaitForATEscapeOK
|
|
50 |
} iState;
|
|
51 |
};
|
|
52 |
|
|
53 |
#endif
|