1.1 --- a/epoc32/include/mw/cmmanagerdef.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/mw/cmmanagerdef.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,180 @@
1.4 -cmmanagerdef.h
1.5 +/*
1.6 +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
1.7 +* All rights reserved.
1.8 +* This component and the accompanying materials are made available
1.9 +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.10 +* which accompanies this distribution, and is available
1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.12 +*
1.13 +* Initial Contributors:
1.14 +* Nokia Corporation - initial contribution.
1.15 +*
1.16 +* Contributors:
1.17 +*
1.18 +* Description: Definition module for Connection Method Manager
1.19 +*
1.20 +*/
1.21 +
1.22 +#ifndef CMMANAGERDEF_H
1.23 +#define CMMANAGERDEF_H
1.24 +
1.25 +// System includes
1.26 +#include <E32def.h>
1.27 +#include <e32std.h>
1.28 +
1.29 +namespace CMManager
1.30 + {
1.31 + /**
1.32 + * Metadata items
1.33 + */
1.34 + enum TSnapMetadataField
1.35 + {
1.36 + /**
1.37 + * If set this destination is for internet usage.
1.38 + * There can be only one such destination.
1.39 + * (TBool - default: EFalse)
1.40 + * @deprecated
1.41 + */
1.42 + ESnapMetadataInternet = 0x00000001,
1.43 +
1.44 + /**
1.45 + * If set this destination is highlighted by default
1.46 + * in the Agent dialog.
1.47 + * (TBool - default: EFalse)
1.48 + */
1.49 + ESnapMetadataHighlight = 0x00000002,
1.50 +
1.51 + /**
1.52 + * If set this destination is hidden in the
1.53 + * Agent dialog.
1.54 + * (TBool - default: EFalse)
1.55 + */
1.56 + ESnapMetadataHiddenAgent = 0x00000004,
1.57 + /**
1.58 + * This set of flags identifies the fixed destinations which have localised names.
1.59 + * The possible values for this flag-set are the enums of TLocalisedDestinations.
1.60 + */
1.61 + ESnapMetadataDestinationIsLocalised = 0x000000F0,
1.62 +
1.63 + /**
1.64 + * This set of flags identifies the fixed destinations for fixed
1.65 + * purposes.
1.66 + * The possible values for this flag-set are the enums of TSnapPurpose.
1.67 + */
1.68 + ESnapMetadataPurpose = 0x00000F00
1.69 + };
1.70 +
1.71 + /**
1.72 + * This is the enum set of the TSnapMetadataField's ESnapMetadataDestinationIsLocalised
1.73 + */
1.74 + enum TLocalisedDestinations
1.75 + {
1.76 + /**
1.77 + * Used to sign that the destination is not localised at all
1.78 + */
1.79 + ENotLocalisedDest = 0x00000000,
1.80 +
1.81 + /**
1.82 + * Used to sign that the destination is localised as 'Internet'
1.83 + */
1.84 + ELocalisedDestInternet = 0x00000001,
1.85 +
1.86 + /**
1.87 + * Used to sign that the destination is localised as 'Wap'
1.88 + */
1.89 + ELocalisedDestWap = 0x00000002,
1.90 +
1.91 + /**
1.92 + * Used to sign that the destination is localised as 'MMS'
1.93 + */
1.94 + ELocalisedDestMMS = 0x00000003,
1.95 +
1.96 + /**
1.97 + * Used to sign that the destination is localised as 'Intranet'
1.98 + */
1.99 + ELocalisedDestIntranet = 0x00000004
1.100 + };
1.101 +
1.102 + /**
1.103 + * This is the enum set of the TSnapMetadataField's ESnapMetadataPurpose
1.104 + */
1.105 + enum TSnapPurpose
1.106 + {
1.107 + ESnapPurposeUnknown = 0x00000000,
1.108 +
1.109 + /**
1.110 + * Used to sign that the destination is identified as 'Internet'
1.111 + */
1.112 + ESnapPurposeInternet = 0x00000001,
1.113 +
1.114 + /**
1.115 + * Used to sign that the destination is identified as 'Operator'
1.116 + */
1.117 + ESnapPurposeOperator = 0x00000002,
1.118 +
1.119 + /**
1.120 + * Used to sign that the destination is identified as 'MMS'
1.121 + */
1.122 + ESnapPurposeMMS = 0x00000003,
1.123 +
1.124 + /**
1.125 + * Used to sign that the destination is identified as 'Intranet'
1.126 + */
1.127 + ESnapPurposeIntranet = 0x00000004
1.128 + };
1.129 +
1.130 + /**
1.131 + * Protection Levels
1.132 + */
1.133 + enum TProtectionLevel
1.134 + {
1.135 + EProtLevel0 = 0, /**<
1.136 + * No protection
1.137 + */
1.138 +
1.139 + EProtLevel1 = 1, /**<
1.140 + * A destination and its contents
1.141 + */
1.142 +
1.143 + EProtLevel2 = 2, /**<
1.144 + * A destination
1.145 + */
1.146 +
1.147 + EProtLevel3 = 3 /**<
1.148 + * Note: Level 3 - Set the ECmProtected attr on
1.149 + * connection method
1.150 + */
1.151 + };
1.152 +
1.153 + const TInt KDataMobilitySelectionPolicyPriorityWildCard = 256;
1.154 + } // namespace CMManager
1.155 +
1.156 +/**
1.157 + * TBearerPriority is a representation of a bearer priority defined in
1.158 + * commsdat
1.159 + *
1.160 + * @lib cmmanager.lib
1.161 + * @since S60 v3.2
1.162 + */
1.163 +NONSHARABLE_CLASS( TBearerPriority )
1.164 + {
1.165 + public:
1.166 +
1.167 + HBufC* iServiceType; /**<
1.168 + * Name of the service table to identify
1.169 + * type of bearer
1.170 + */
1.171 +
1.172 + TUint32 iPriority; /**<
1.173 + * Priority of the bearer.
1.174 + * Values must be unique within the table
1.175 + */
1.176 +
1.177 + TUint32 iUIPriority; /**<
1.178 + * Priority of this bearer type when shown
1.179 + * in UI for configuring a new IAP.
1.180 + * Values must be unique within the table
1.181 + */
1.182 + };
1.183 +
1.184 +#endif // CMMANAGERDEF_H