59 |
59 |
60 return retval; |
60 return retval; |
61 } |
61 } |
62 |
62 |
63 // --------------------------------------------------------------------------- |
63 // --------------------------------------------------------------------------- |
64 // IRQNetworkControllerBody::getAccessPointList() |
|
65 // Returns the list of available access points |
|
66 // @return QStringList &aList specifying the access point names |
|
67 // --------------------------------------------------------------------------- |
|
68 // |
|
69 void IRQNetworkControllerBody::getAccessPointList(QStringList &aList) |
|
70 { |
|
71 const CDesCArray *apArray = iNetworkController->GetAccessPointList(); |
|
72 int count = apArray->MdcaCount(); |
|
73 for (int i = 0; i < count; ++i) |
|
74 { |
|
75 QString str = QString::fromUtf16(apArray->MdcaPoint(i).Ptr(), apArray->MdcaPoint(i).Length()); |
|
76 aList.append(str); |
|
77 } |
|
78 } |
|
79 |
|
80 // --------------------------------------------------------------------------- |
|
81 // IRQNetworkControllerBody::getApIdList() |
|
82 // Returns the list of iap ids for available access points |
|
83 // @return QList<unsigned long> &aList specifying the iap ids |
|
84 // --------------------------------------------------------------------------- |
|
85 // |
|
86 void IRQNetworkControllerBody::getApIdList(QList<unsigned long> &aList) |
|
87 { |
|
88 const RArray<TUint32>& accessPointIDArray = iNetworkController->GetApList(); |
|
89 for (int i = 0; i < accessPointIDArray.Count(); ++i) |
|
90 { |
|
91 aList.append(accessPointIDArray[i]); |
|
92 } |
|
93 } |
|
94 |
|
95 // --------------------------------------------------------------------------- |
|
96 // IRQNetworkControllerBody::getBearerList() |
|
97 // Returns the list of bearer ids for available access points |
|
98 // @return QList<unsigned long> &aList specifying the bearer ids |
|
99 // --------------------------------------------------------------------------- |
|
100 // |
|
101 void IRQNetworkControllerBody::getBearerList(QList<unsigned long> &aList) |
|
102 { |
|
103 const RArray<TUint32>& bearerIDArray = iNetworkController->GetBearerList(); |
|
104 for (int i = 0; i < bearerIDArray.Count(); ++i) |
|
105 { |
|
106 aList.append(bearerIDArray[i]); |
|
107 } |
|
108 } |
|
109 |
|
110 // --------------------------------------------------------------------------- |
|
111 // IRQNetworkControllerBody::getNetworkList() |
|
112 // Returns the list of network ids for available access points |
|
113 // @return QList<unsigned long> &aList specifying the network ids |
|
114 // --------------------------------------------------------------------------- |
|
115 // |
|
116 void IRQNetworkControllerBody::getNetworkList(QList<unsigned long> &aList) |
|
117 { |
|
118 const RArray<TUint32>& networkIDArray = iNetworkController->GetNetworkList(); |
|
119 for (int i = 0; i < networkIDArray.Count(); ++i) |
|
120 { |
|
121 aList.append(networkIDArray[i]); |
|
122 } |
|
123 } |
|
124 |
|
125 // --------------------------------------------------------------------------- |
|
126 // IRQNetworkControllerBody::chooseAccessPoint() |
64 // IRQNetworkControllerBody::chooseAccessPoint() |
127 // Configures the Access Point which is used by all the components for network |
65 // Configures the Access Point which is used by all the components for network |
128 // connectivity |
66 // connectivity |
129 // --------------------------------------------------------------------------- |
67 // --------------------------------------------------------------------------- |
130 // |
68 // |