diff -r 25a17d01db0c -r ebc84c812384 Symbian3/SDK/Source/GUID-DB827750-6057-537E-8FE1-8F68BF2E9F99.dita --- a/Symbian3/SDK/Source/GUID-DB827750-6057-537E-8FE1-8F68BF2E9F99.dita Fri Jan 22 18:26:19 2010 +0000 +++ b/Symbian3/SDK/Source/GUID-DB827750-6057-537E-8FE1-8F68BF2E9F99.dita Thu Mar 11 15:24:26 2010 +0000 @@ -15,9 +15,9 @@ to access services are silently accepted or denied or whether they require the user to be prompted. Each service has a policy file. The policy file lists policies for various applications.

-
Required Background

Before you start writing a +

Required Background

Before you start writing a UPS policy file, you must configure the UPS. For more information, see Configuring UPS.

-
Introduction

The resource header file, ups/policies.rh, +

Introduction

The resource header file, ups/policies.rh, defines the structures and constants required by User Prompt Service policy files.

Device creators can customise the circumstances under which prompts are generated by configuring policies. Policies are made up of details @@ -27,7 +27,7 @@ cases where the policy specifies that a user prompt is required, ECOM plug-ins called Policy Evaluators and Dialog Creators, written by device creators.

-
Writing policy files

Writing policy files include +

Writing policy files

Writing policy files include the following:

  • Naming and location of policy files

  • @@ -78,19 +78,8 @@ policyevaluator = 0x10283698; };
-
Example of a policy file

The following is an example -of a policy file:

// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of the License "Symbian Foundation License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. - - -#include <ups/policies.rh> +
Example of a policy file

The following is an example +of a policy file:

#include <ups/policies.rh> // Identifies this as a UPS policy file UID2 KUidUpsPolicyResourceFile // Uniquely defines this policy file. The UID should be reserved using the Symbian Signed protected UID allocator. @@ -146,6 +135,6 @@ }
-
See also

Policy +

See also

Policy Resource

\ No newline at end of file