williamr@2: /* williamr@2: * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Definition module for Connection Method Manager williamr@2: * williamr@2: */ williamr@2: williamr@2: #ifndef CMMANAGERDEF_H williamr@2: #define CMMANAGERDEF_H williamr@2: williamr@2: // System includes williamr@4: #include williamr@2: #include williamr@2: williamr@2: namespace CMManager williamr@2: { williamr@2: /** williamr@2: * Metadata items williamr@2: */ williamr@2: enum TSnapMetadataField williamr@2: { williamr@2: /** williamr@2: * If set this destination is for internet usage. williamr@2: * There can be only one such destination. williamr@2: * (TBool - default: EFalse) williamr@2: * @deprecated williamr@2: */ williamr@2: ESnapMetadataInternet = 0x00000001, williamr@2: williamr@2: /** williamr@2: * If set this destination is highlighted by default williamr@2: * in the Agent dialog. williamr@2: * (TBool - default: EFalse) williamr@2: */ williamr@2: ESnapMetadataHighlight = 0x00000002, williamr@2: williamr@2: /** williamr@2: * If set this destination is hidden in the williamr@2: * Agent dialog. williamr@2: * (TBool - default: EFalse) williamr@2: */ williamr@2: ESnapMetadataHiddenAgent = 0x00000004, williamr@2: /** williamr@2: * This set of flags identifies the fixed destinations which have localised names. williamr@2: * The possible values for this flag-set are the enums of TLocalisedDestinations. williamr@2: */ williamr@2: ESnapMetadataDestinationIsLocalised = 0x000000F0, williamr@2: williamr@2: /** williamr@2: * This set of flags identifies the fixed destinations for fixed williamr@2: * purposes. williamr@2: * The possible values for this flag-set are the enums of TSnapPurpose. williamr@2: */ williamr@2: ESnapMetadataPurpose = 0x00000F00 williamr@2: }; williamr@2: williamr@2: /** williamr@2: * This is the enum set of the TSnapMetadataField's ESnapMetadataDestinationIsLocalised williamr@2: */ williamr@2: enum TLocalisedDestinations williamr@2: { williamr@2: /** williamr@2: * Used to sign that the destination is not localised at all williamr@2: */ williamr@2: ENotLocalisedDest = 0x00000000, williamr@2: williamr@2: /** williamr@2: * Used to sign that the destination is localised as 'Internet' williamr@2: */ williamr@2: ELocalisedDestInternet = 0x00000001, williamr@2: williamr@2: /** williamr@2: * Used to sign that the destination is localised as 'Wap' williamr@2: */ williamr@2: ELocalisedDestWap = 0x00000002, williamr@2: williamr@2: /** williamr@2: * Used to sign that the destination is localised as 'MMS' williamr@2: */ williamr@2: ELocalisedDestMMS = 0x00000003, williamr@2: williamr@2: /** williamr@2: * Used to sign that the destination is localised as 'Intranet' williamr@2: */ williamr@2: ELocalisedDestIntranet = 0x00000004 williamr@2: }; williamr@2: williamr@2: /** williamr@2: * This is the enum set of the TSnapMetadataField's ESnapMetadataPurpose williamr@2: */ williamr@2: enum TSnapPurpose williamr@2: { williamr@2: ESnapPurposeUnknown = 0x00000000, williamr@2: williamr@2: /** williamr@2: * Used to sign that the destination is identified as 'Internet' williamr@2: */ williamr@2: ESnapPurposeInternet = 0x00000001, williamr@2: williamr@2: /** williamr@2: * Used to sign that the destination is identified as 'Operator' williamr@2: */ williamr@2: ESnapPurposeOperator = 0x00000002, williamr@2: williamr@2: /** williamr@2: * Used to sign that the destination is identified as 'MMS' williamr@2: */ williamr@2: ESnapPurposeMMS = 0x00000003, williamr@2: williamr@2: /** williamr@2: * Used to sign that the destination is identified as 'Intranet' williamr@2: */ williamr@2: ESnapPurposeIntranet = 0x00000004 williamr@2: }; williamr@2: williamr@2: /** williamr@2: * Protection Levels williamr@2: */ williamr@2: enum TProtectionLevel williamr@2: { williamr@2: EProtLevel0 = 0, /**< williamr@2: * No protection williamr@2: */ williamr@2: williamr@2: EProtLevel1 = 1, /**< williamr@2: * A destination and its contents williamr@2: */ williamr@2: williamr@2: EProtLevel2 = 2, /**< williamr@2: * A destination williamr@2: */ williamr@2: williamr@2: EProtLevel3 = 3 /**< williamr@2: * Note: Level 3 - Set the ECmProtected attr on williamr@2: * connection method williamr@2: */ williamr@2: }; williamr@2: williamr@2: const TInt KDataMobilitySelectionPolicyPriorityWildCard = 256; williamr@2: } // namespace CMManager williamr@2: williamr@2: /** williamr@2: * TBearerPriority is a representation of a bearer priority defined in williamr@2: * commsdat williamr@2: * williamr@2: * @lib cmmanager.lib williamr@2: * @since S60 v3.2 williamr@2: */ williamr@2: NONSHARABLE_CLASS( TBearerPriority ) williamr@2: { williamr@2: public: williamr@2: williamr@2: HBufC* iServiceType; /**< williamr@2: * Name of the service table to identify williamr@2: * type of bearer williamr@2: */ williamr@2: williamr@2: TUint32 iPriority; /**< williamr@2: * Priority of the bearer. williamr@2: * Values must be unique within the table williamr@2: */ williamr@2: williamr@2: TUint32 iUIPriority; /**< williamr@2: * Priority of this bearer type when shown williamr@2: * in UI for configuring a new IAP. williamr@2: * Values must be unique within the table williamr@2: */ williamr@2: }; williamr@2: williamr@2: #endif // CMMANAGERDEF_H