44
|
1 |
// Copyright (c) 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 |
// @file getfdnstatus.h
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef __GETFDNSTATUS_H__
|
|
19 |
#define __GETFDNSTATUS_H__
|
|
20 |
|
|
21 |
//user include
|
|
22 |
#include "atcommandcontrolbase.h"
|
|
23 |
|
|
24 |
// forward class
|
|
25 |
class CATGetFdnStatus;
|
|
26 |
class CATGetFdnSupport;
|
|
27 |
|
|
28 |
/**
|
|
29 |
* CGetFdnStatus inherits from the CATCommandControlBase class.
|
|
30 |
*
|
|
31 |
*/
|
|
32 |
class CGetFdnStatus : public CATCommandControlBase
|
|
33 |
{
|
|
34 |
public:
|
|
35 |
/**
|
|
36 |
* Two-phased constructor.
|
|
37 |
* @param aGloblePhone
|
|
38 |
* @param aCtsyDispatcherCallback
|
|
39 |
*/
|
|
40 |
static CGetFdnStatus* NewL(CGlobalPhonemanager& aGloblePhone,
|
|
41 |
CCtsyDispatcherCallback& aCtsyDispatcherCallback);
|
|
42 |
/**
|
|
43 |
* Destructor
|
|
44 |
*
|
|
45 |
*/
|
|
46 |
~CGetFdnStatus();
|
|
47 |
virtual void AtCommandExecuteComplete(TAtEventSource aEventSource, TInt aStatus);
|
|
48 |
void StartRequest();
|
|
49 |
|
|
50 |
protected:
|
|
51 |
/**
|
|
52 |
* Constructor
|
|
53 |
*
|
|
54 |
* @param aGloblePhone
|
|
55 |
* @param aCtsyDispatcherCallback
|
|
56 |
*/
|
|
57 |
CGetFdnStatus(CGlobalPhonemanager& aGloblePhone,
|
|
58 |
CCtsyDispatcherCallback& aCtsyDispatcherCallback);
|
|
59 |
/**
|
|
60 |
* 2nd Constructor
|
|
61 |
*/
|
|
62 |
void ConstructL();
|
|
63 |
private:
|
|
64 |
void StartATCommand(CAtCommandBase* iAtCommand);
|
|
65 |
void EndATCommand(CAtCommandBase* aAtCommand);
|
|
66 |
void FdnSupportComplete(const TInt aError);
|
|
67 |
void FdnStatusComplete(const TInt aError);
|
|
68 |
private:
|
|
69 |
CATGetFdnSupport* iATGetFdnSupport;
|
|
70 |
CATGetFdnStatus* iATGetFdnStatus;
|
|
71 |
TLtsyATCommandType iATType;
|
|
72 |
/**
|
|
73 |
*
|
|
74 |
*/
|
|
75 |
enum
|
|
76 |
{
|
|
77 |
EATNone,
|
|
78 |
EATGetFdnStatus,
|
|
79 |
EATGetFdnSupport
|
|
80 |
} iATCommandName;
|
|
81 |
|
|
82 |
};
|
|
83 |
#endif //__GETFDNSTATUS_H__
|