Symbian3/PDK/Source/GUID-81238E98-755C-5E86-ADEA-6A675E058289.dita
changeset 5 f345bda72bc4
parent 3 46218c8b8afa
child 14 578be2adaf3e
equal deleted inserted replaced
4:4816d766a08a 5:f345bda72bc4
     7     Nokia Corporation - initial contribution.
     7     Nokia Corporation - initial contribution.
     8 Contributors: 
     8 Contributors: 
     9 -->
     9 -->
    10 <!DOCTYPE concept
    10 <!DOCTYPE concept
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
    12 <concept xml:lang="en" id="GUID-81238E98-755C-5E86-ADEA-6A675E058289"><title>User Prompt Service Configuration</title><shortdesc>This topic shows how to enable and disable the user prompt service to authorise the client application requests. </shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody><section id="GUID-3F202B8F-AA4E-5096-8482-5BA11DE8F351"><title>Introduction</title> <ul><li id="GUID-F9958A4D-CF19-5EEE-9F11-6DFE81EE37D2"><p>The user prompt service can be disabled by a patchable constant. </p> </li> <li id="GUID-A49A6D54-96EC-5474-980A-E61D4878A58A"><p>The user prompt service can be configured to grant access to all network connection requests from applications running in a particular process, provided that the user has authorised the connection in a previous request from the same process. </p> </li> <li id="GUID-2BCDF4E6-8123-51B2-B544-67785BE71B14"><p>The user prompt service can be configured for the duration of a network connection. All applications running within any given process are granted access, provided the user has authorised the connection in a previous request for the network duration. </p> </li> <li id="GUID-1A4C75E8-4A7E-58C7-92D1-195E784F8A2A"><p>The user prompt service can be configured to use either the <codeph>techview</codeph> notifier or the <codeph>networking text</codeph> notifier. </p> </li> </ul> </section> <example id="GUID-30D41411-1500-5BF4-BEEC-882AC90020D6"><title>Emulator configuration example</title> <p>When using an emulator the user prompt service can be configured in the <codeph>epoc.ini</codeph> file in the following way: </p> <codeblock id="GUID-CA580B20-75DC-53E1-BF48-83E5B35A7E54" xml:space="preserve">
    12 <concept id="GUID-81238E98-755C-5E86-ADEA-6A675E058289" xml:lang="en"><title>User
       
    13 Prompt Service Configuration</title><shortdesc>This topic shows how to enable and disable the user prompt service
       
    14 to authorise the client application requests. </shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    15 
       
    16 <section id="GUID-3F202B8F-AA4E-5096-8482-5BA11DE8F351"><title>Introduction</title> <ul>
       
    17 <li id="GUID-F9958A4D-CF19-5EEE-9F11-6DFE81EE37D2"><p>The user prompt service
       
    18 can be disabled by a patchable constant. </p> </li>
       
    19 <li id="GUID-A49A6D54-96EC-5474-980A-E61D4878A58A"><p>The user prompt service
       
    20 can be configured to grant access to all network connection requests from
       
    21 applications running in a particular process, provided that the user has authorised
       
    22 the connection in a previous request from the same process. </p> </li>
       
    23 <li id="GUID-2BCDF4E6-8123-51B2-B544-67785BE71B14"><p>The user prompt service
       
    24 can be configured for the duration of a network connection. All applications
       
    25 running within any given process are granted access, provided the user has
       
    26 authorised the connection in a previous request for the network duration. </p> </li>
       
    27 <li id="GUID-1A4C75E8-4A7E-58C7-92D1-195E784F8A2A"><p>The user prompt service
       
    28 can be configured to use either the <codeph>techview</codeph> notifier or
       
    29 the <codeph>networking text</codeph> notifier. </p> </li>
       
    30 </ul> </section>
       
    31 <example id="GUID-30D41411-1500-5BF4-BEEC-882AC90020D6"><title>Emulator configuration
       
    32 example</title> <p>When using an emulator the user prompt service can be configured
       
    33 in the <codeph>epoc.ini</codeph> file in the following way: </p> <codeblock id="GUID-CA580B20-75DC-53E1-BF48-83E5B35A7E54" xml:space="preserve">
    13 NETWORKING_UPS_DISABLE=0  #UPS functionality is enabled
    34 NETWORKING_UPS_DISABLE=0  #UPS functionality is enabled
    14 NETWORKING_UPS_DISABLE=1  #UPS functionality is disabled
    35 NETWORKING_UPS_DISABLE=1  #UPS functionality is disabled
    15 NETWORKING_UPS_DISABLE=2  #epoc32\winscw\c\private\101f7989\esock\netups.ini is parsed to determine 
    36 NETWORKING_UPS_DISABLE=2  #epoc32\winscw\c\private\101f7989\esock\netups.ini is parsed to determine 
    16                           # whether UPS functionality is enabled or not.
    37                           # whether UPS functionality is enabled or not.
    17 
    38 
    23 
    44 
    24 
    45 
    25 NETWORKING_UPS_NOTIFIERUID = 0x10285887  #network text notifier will be used provided that "startupmode=1"
    46 NETWORKING_UPS_NOTIFIERUID = 0x10285887  #network text notifier will be used provided that "startupmode=1"
    26                                          #is also specified in epoc.ini.
    47                                          #is also specified in epoc.ini.
    27 
    48 
    28 NETWORKING_UPS_NOTIFIERUID = 0x1028369b  #default techview  notifier will be used.</codeblock> <p> <i>Note: If NETWORKING_UPS_NOTIFIERUID is not defined and startup mode is '1', then the networking text notifier is used. For all other startup modes the default techview notifier is used. </i>  </p> <p>To specify whether an application is authorised for process duration or network duration, the <codeph>netups.ini</codeph> file is configured as follows: </p> <codeblock id="GUID-3CB25BBC-21F5-5044-8415-6A1F0F0ACBBC" xml:space="preserve">[upsIpMode]
    49 NETWORKING_UPS_NOTIFIERUID = 0x1028369b  #default techview  notifier will be used.</codeblock> <p> <i>Note:
       
    50 If NETWORKING_UPS_NOTIFIERUID is not defined and startup mode is '1', then
       
    51 the networking text notifier is used. For all other startup modes the default
       
    52 techview notifier is used. </i>  </p> <p>To specify whether an application
       
    53 is authorised for process duration or network duration, the <codeph>netups.ini</codeph> file
       
    54 is configured as follows: </p> <codeblock id="GUID-3CB25BBC-21F5-5044-8415-6A1F0F0ACBBC" xml:space="preserve">[upsIpMode]
    29 
    55 
    30 NETWORKING_UPS_DISABLE= 0     # UPS functionality is enabled
    56 NETWORKING_UPS_DISABLE= 0     # UPS functionality is enabled
    31 NETWORKING_UPS_DISABLE= 1     # UPS functionality is disabled
    57 NETWORKING_UPS_DISABLE= 1     # UPS functionality is disabled
    32 
    58 
    33 NETWORKING_UPS_SESSION= 0     # process life time  mode
    59 NETWORKING_UPS_SESSION= 0     # process life time  mode
    34 NETWORKING_UPS_SESSION= 1     # network  life time mode</codeblock> <p>If <codeph>NETWORKING_UPS_DISABLED</codeph> is not specified in either <codeph>epoc.ini</codeph> or <codeph>netups.ini</codeph>, then by default UPS prompting is enabled. If <codeph>NETWORKING_UPS_SESSION</codeph> is not configured in either file then the netups component works in process life time mode. </p> </example> <section id="GUID-707D78AA-57DD-5E30-B9D6-691D9E763BEF"><title>Hardware configuration example</title> <p>When building Symbian OS for targert hardware, the user prompt service can be configured through patchable constants. </p> <p>Patchable constants are used to define the whether the UPS component is enabled or disabled, and whether the netups component is working in process or network lifetime mode. These constants are defined when the ROM is built using the following command line arguments: </p> <codeblock id="GUID-62A72221-6690-50D6-A271-04BB8CA61E2F" xml:space="preserve">buildrom.cmd -DNETWORKING_UPS_SESSION=1  (followed by other command line arguments)</codeblock> <p>where 0 = process life time, 1 = network life time, 2 = read from netups.ini, as described above </p> <codeblock id="GUID-5BCC8797-2D03-57FC-9822-90198155AA3B" xml:space="preserve">buildrom.cmd -DNETWORKING_UPS_DISABLED=1 (followed by other command line arguments)</codeblock> <p>where 0 = disabled, 1= disabled, 2 = read from netups.ini, as described above) </p> <codeblock id="GUID-3FC25EEE-1932-5EFF-BE2D-505DCDBB3AB3" xml:space="preserve">buildrom.cmd -DNETWORKING_UPS_NOTIFIERUID= 0x10285887 (followed by other command line arguments)</codeblock> <p>where <codeph>-DNETWORKING_UPS_NOTIFIERUID=0x10285887</codeph> means the networking text notifier is used, otherwise the default techview notifier is used. </p> </section> </conbody></concept>
    60 NETWORKING_UPS_SESSION= 1     # network  life time mode</codeblock> <p>If <codeph>NETWORKING_UPS_DISABLED</codeph> is
       
    61 not specified in either <codeph>epoc.ini</codeph> or <codeph>netups.ini</codeph>,
       
    62 then by default UPS prompting is enabled. If <codeph>NETWORKING_UPS_SESSION</codeph> is
       
    63 not configured in either file then the netups component works in process life
       
    64 time mode. </p> </example>
       
    65 <section id="GUID-707D78AA-57DD-5E30-B9D6-691D9E763BEF"><title>Hardware configuration
       
    66 example</title> <p>When building the Symbian platform for targert
       
    67 hardware, the user prompt service can be configured through patchable constants. </p> <p>Patchable
       
    68 constants are used to define the whether the UPS component is enabled or disabled,
       
    69 and whether the netups component is working in process or network lifetime
       
    70 mode. These constants are defined when the ROM is built using the following
       
    71 command line arguments: </p> <codeblock id="GUID-62A72221-6690-50D6-A271-04BB8CA61E2F" xml:space="preserve">buildrom.cmd -DNETWORKING_UPS_SESSION=1  (followed by other command line arguments)</codeblock> <p>where 0 = process life time, 1 = network life time, 2 = read from netups.ini,
       
    72 as described above </p> <codeblock id="GUID-5BCC8797-2D03-57FC-9822-90198155AA3B" xml:space="preserve">buildrom.cmd -DNETWORKING_UPS_DISABLED=1 (followed by other command line arguments)</codeblock> <p>where 0 = disabled, 1= disabled, 2 = read from netups.ini, as described
       
    73 above) </p> <codeblock id="GUID-3FC25EEE-1932-5EFF-BE2D-505DCDBB3AB3" xml:space="preserve">buildrom.cmd -DNETWORKING_UPS_NOTIFIERUID= 0x10285887 (followed by other command line arguments)</codeblock> <p>where <codeph>-DNETWORKING_UPS_NOTIFIERUID=0x10285887</codeph> means
       
    74 the networking text notifier is used, otherwise the default techview notifier
       
    75 is used. </p> </section>
       
    76 </conbody></concept>