|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-E0EEF4FF-63E3-506C-8A77-4B3CDB902158" xml:lang="en"><title>Getting |
|
13 the Identifier of the Current Bearer</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>This tutorial explains how to get the service ID of the current bearer |
|
15 that the server MTM is currently using. </p> |
|
16 <section><title>Procedure</title> <ol id="GUID-D7A26948-BABA-5511-B99E-DA96B98B89D0"> |
|
17 <li id="GUID-43846AE8-518D-5579-9F2E-F730D41EB687"><p>Create an instance of |
|
18 the <xref href="GUID-2DA04D96-F0AD-3FDC-9E36-1C27D889AF4B.dita"><apiname>CMsvSession</apiname></xref> class. </p> </li> |
|
19 <li id="GUID-E9E64BA1-A56F-557A-96B3-B7B3BA23E1B5"><p>Get the service ID (<xref href="GUID-A4B1F874-27C0-3BB6-9D29-C35C75A5DB98.dita"><apiname>TMsvId</apiname></xref>) |
|
20 of the connected server MTM. </p> </li> |
|
21 <li id="GUID-A9F7F41E-32F4-57D3-8F3B-E90609112383"><p>Call the <xref href="GUID-2DA04D96-F0AD-3FDC-9E36-1C27D889AF4B.dita#GUID-2DA04D96-F0AD-3FDC-9E36-1C27D889AF4B/GUID-1FA1BD8C-ACC9-347C-9536-361A180E79CA"><apiname>CMsvSession::ServiceAccessPointId()</apiname></xref> function, |
|
22 passing the following parameters: </p> <p><codeblock id="GUID-65A773DC-B213-5246-AA6B-D946C359D697" xml:space="preserve">IMPORT_C Tint ServiceAccessPointId(TMsvId aServiceId, TUint32& aAccessPointId)</codeblock> </p> </li> |
|
23 </ol> </section> |
|
24 <section><title>Result</title> <p>On return, the <xref href="GUID-F58A1C0D-1B36-37EA-8012-1C74B2D12CAD.dita"><apiname>TUint32</apiname></xref> parameter |
|
25 stores the currently connected bearer identifier. </p> </section> |
|
26 </conbody><related-links> |
|
27 <link href="GUID-24860917-0FE2-5C8F-B436-96928350996E.dita"><linktext>Bearer Mobility |
|
28 Overview</linktext></link> |
|
29 <link href="GUID-93221B70-EB36-5E8E-AE23-700988D5DACB.dita"><linktext>Bearer Mobility |
|
30 Policy Plug-in Overview</linktext></link> |
|
31 </related-links></concept> |