|
1 // Copyright (c) 2000-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 // Deal with GetOwnNumber |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalAll |
|
21 */ |
|
22 |
|
23 #ifndef __MOWNNUM_H__ |
|
24 #define __MOWNNUM_H__ |
|
25 |
|
26 #include "ATBASE.H" |
|
27 |
|
28 class CATOwnNumbers : public CATCommands |
|
29 { |
|
30 public: |
|
31 static CATOwnNumbers* NewL(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals); |
|
32 ~CATOwnNumbers(); |
|
33 // |
|
34 void GetInfo(TTsyReqHandle aTsyReqHandle,TDes8* aInfo); |
|
35 void GetEntry(TTsyReqHandle aTsyReqHandle,TDes8* aEntry); |
|
36 RMobilePhone::TMobileTON NumberTypefromGSMToMM(TUint aTypeOfNumberGSM); |
|
37 private: |
|
38 CATOwnNumbers(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals); |
|
39 // |
|
40 virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams); |
|
41 virtual void Stop(TTsyReqHandle aTsyReqHandle); |
|
42 virtual void EventSignal(TEventSource aSource); |
|
43 virtual void CompleteWithIOError(TEventSource aSource, TInt aStatus); |
|
44 // |
|
45 virtual void Complete(TInt aError, TEventSource aSource); |
|
46 void ParseResponseL(); |
|
47 void Info() const; |
|
48 TInt Entry(TInt aIndex) const; |
|
49 private: |
|
50 RMobileONStore::TMobileONEntryV1 iONEntry; |
|
51 enum { |
|
52 KAsynchModem=0, |
|
53 KSynchModem=1, |
|
54 KPADAccess=2, |
|
55 KPacketAccess=3, |
|
56 KServiceVoice=4, |
|
57 KServiceFax=5 |
|
58 }; |
|
59 enum {KItc3_1kHz=0,KItcUdi=1}; |
|
60 private: |
|
61 enum {EInfo,EEntry} iCommand; |
|
62 enum { |
|
63 EATNotInProgress, |
|
64 EATImsiWaitForWriteComplete, |
|
65 EATImsiReadComplete, |
|
66 EATWaitForStopState, |
|
67 EATCompleted, |
|
68 EATNotSupported |
|
69 } iState; |
|
70 |
|
71 TAny* iResultPtr; |
|
72 RMobilePhoneStore::TMobilePhoneStoreInfoV1Pckg* iInfoPckg; |
|
73 RMobileONStore::TMobileONEntryV1Pckg* iEntryPckg; |
|
74 TInt iResultIndex; |
|
75 CMobilePhoneONList* iOwnNumbers; |
|
76 }; |
|
77 |
|
78 #endif |