equal
deleted
inserted
replaced
32 */ |
32 */ |
33 NONSHARABLE_CLASS(CBtmcNumber) : public CBtmcActive |
33 NONSHARABLE_CLASS(CBtmcNumber) : public CBtmcActive |
34 { |
34 { |
35 public: |
35 public: |
36 |
36 |
|
37 /** CBtmcNumber states. |
|
38 */ |
|
39 enum BtmcNumberState |
|
40 { |
|
41 /** Not valid */ |
|
42 EStateNull = 0, |
|
43 /** Getting the MSISDN - getting store info*/ |
|
44 EStateGettingMsisdnStoreInfo = 1, |
|
45 /** Getting the MSISDN - getting store entry*/ |
|
46 EStateGettingMsisdnStoreEntry = 2, |
|
47 }; |
|
48 |
37 /** |
49 /** |
38 * Two-phased constructor. |
50 * Two-phased constructor. |
39 */ |
51 */ |
40 static CBtmcNumber* NewL( |
52 static CBtmcNumber* NewL( |
41 MBtmcActiveObserver& aObserver, |
53 MBtmcActiveObserver& aObserver, |
74 CBtmcProtocol& aProtocol, |
86 CBtmcProtocol& aProtocol, |
75 CActive::TPriority aPriority, |
87 CActive::TPriority aPriority, |
76 TInt aServiceId); |
88 TInt aServiceId); |
77 |
89 |
78 void ConstructL(); |
90 void ConstructL(); |
|
91 /** |
|
92 * Gets MSISDN store info to check how many numbers are stored on SIM |
|
93 */ |
|
94 void GetMsisdnStoreInfo(); |
|
95 /** |
|
96 * Gets single MSISDN store entry |
|
97 */ |
|
98 void GetMsisdnStoreEntry(); |
79 |
99 |
80 private: |
100 private: |
81 CBtmcProtocol& iProtocol; |
101 CBtmcProtocol& iProtocol; |
82 RTelServer iServer; |
102 RTelServer iServer; |
83 RMobilePhone iPhone; |
103 RMobilePhone iPhone; |
84 RMobileONStore iStore; |
104 RMobileONStore iStore; |
85 RMobileONStore::TMobileONEntryV1 iEntry; |
105 RMobileONStore::TMobileONEntryV1 iEntry; |
86 RMobileONStore::TMobileONEntryV1Pckg iPckg; |
106 RMobileONStore::TMobileONEntryV1Pckg iPckg; |
|
107 RMobileONStore::TMobileONStoreInfoV1Pckg iOnStoreInfoPckg; |
|
108 RMobileONStore::TMobileONStoreInfoV1 iOnStoreInfo; |
|
109 /** |
|
110 * Defines current CBtmcNumber state |
|
111 */ |
|
112 BtmcNumberState iState; |
|
113 /** |
|
114 * Index which is used to get MSISDN entries |
|
115 */ |
|
116 TInt iUsedEntriesCount; |
|
117 /** |
|
118 * Count of correct numbers returned by MSISDN |
|
119 */ |
|
120 TInt iCorrectNumbersCount; |
87 }; |
121 }; |
88 |
122 |
89 |
123 |
90 #endif |
124 #endif |