|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Gets the MSISDN |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef BTMCNUMBER_H |
|
20 #define BTMCNUMBER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <etelmm.h> |
|
25 #include "btmcactive.h" |
|
26 #include "btmcobserver.h" |
|
27 |
|
28 class CBtmcProtocol; |
|
29 |
|
30 /** |
|
31 * CBtmcNumber for getting MSISDN number. |
|
32 */ |
|
33 NONSHARABLE_CLASS(CBtmcNumber) : public CBtmcActive |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 */ |
|
40 static CBtmcNumber* NewL( |
|
41 MBtmcActiveObserver& aObserver, |
|
42 CBtmcProtocol& aProtocol, |
|
43 CActive::TPriority aPriority, |
|
44 TInt aServiceId); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 ~CBtmcNumber(); |
|
50 |
|
51 void GoActive(); |
|
52 |
|
53 protected: |
|
54 |
|
55 /** |
|
56 * From CActive. Called when asynchronous request completes. |
|
57 * @since 3.0 |
|
58 * @param None |
|
59 * @return None |
|
60 */ |
|
61 void RunL(); |
|
62 |
|
63 void DoCancel(); |
|
64 |
|
65 TInt RunError(TInt aErr); |
|
66 |
|
67 private: |
|
68 |
|
69 /** |
|
70 * C++ default constructor. |
|
71 */ |
|
72 CBtmcNumber( |
|
73 MBtmcActiveObserver& aObserver, |
|
74 CBtmcProtocol& aProtocol, |
|
75 CActive::TPriority aPriority, |
|
76 TInt aServiceId); |
|
77 |
|
78 void ConstructL(); |
|
79 |
|
80 private: |
|
81 CBtmcProtocol& iProtocol; |
|
82 RTelServer iServer; |
|
83 RMobilePhone iPhone; |
|
84 RMobileONStore iStore; |
|
85 RMobileONStore::TMobileONEntryV1 iEntry; |
|
86 RMobileONStore::TMobileONEntryV1Pckg iPckg; |
|
87 }; |
|
88 |
|
89 |
|
90 #endif |