ipcm_pub/connection_settings_api/inc/cmmanagerdef.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 23:12:51 +0200
branchRCL_3
changeset 8 2e6c4614c58e
parent 0 5a93021fdf25
child 57 05bc53fe583b
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Definition module for Connection Method Manager
*
*/

#ifndef CMMANAGERDEF_H
#define CMMANAGERDEF_H

// System includes
#include <e32def.h>
#include <e32std.h>
           
namespace CMManager
    {
    /**
     * Metadata items
     */
    enum TSnapMetadataField
        {
        /**
        * If set this destination is for internet usage.
        * There can be only one such destination.
        * (TBool - default: EFalse)
        * @deprecated
        */
        ESnapMetadataInternet               =   0x00000001,
        
        /**
        * If set this destination is highlighted by default
        * in the Agent dialog.
        * (TBool - default: EFalse)
        */
        ESnapMetadataHighlight              =   0x00000002,
        
        /**
        * If set this destination is hidden in the 
        * Agent dialog.
        * (TBool - default: EFalse)
        */
        ESnapMetadataHiddenAgent            =   0x00000004,
        /**
        * This set of flags identifies the fixed destinations which have localised names.
        * The possible values for this flag-set are the enums of TLocalisedDestinations.
        */
        ESnapMetadataDestinationIsLocalised =   0x000000F0,

        /**
        * This set of flags identifies the fixed destinations for fixed
        * purposes.
        * The possible values for this flag-set are the enums of TSnapPurpose.
        */
        ESnapMetadataPurpose =   0x00000F00
        };

    /**
    * This is the enum set of the TSnapMetadataField's ESnapMetadataDestinationIsLocalised 
    */
    enum TLocalisedDestinations
        {
        /**
        * Used to sign that the destination is not localised at all
        */
        ENotLocalisedDest = 0x00000000,

        /**
        * Used to sign that the destination is localised as 'Internet'
        */
        ELocalisedDestInternet       =   0x00000001,

        /**
        * Used to sign that the destination is localised as 'Wap'
        */
        ELocalisedDestWap            =   0x00000002,

        /**
        * Used to sign that the destination is localised as 'MMS'
        */
        ELocalisedDestMMS       =   0x00000003,

        /**
        * Used to sign that the destination is localised as 'Intranet'
        */
        ELocalisedDestIntranet = 0x00000004
        };

    /**
    * This is the enum set of the TSnapMetadataField's ESnapMetadataPurpose
    */
    enum TSnapPurpose
        {
        ESnapPurposeUnknown = 0x00000000,

        /**
        * Used to sign that the destination is identified as 'Internet'
        */
        ESnapPurposeInternet = 0x00000001,

        /**
        * Used to sign that the destination is identified as 'Operator'
        */
        ESnapPurposeOperator = 0x00000002,

        /**
        * Used to sign that the destination is identified as 'MMS'
        */
        ESnapPurposeMMS = 0x00000003,

        /**
        * Used to sign that the destination is identified as 'Intranet'
        */
        ESnapPurposeIntranet = 0x00000004
        };

    /**
     * Protection Levels
     */      
    enum TProtectionLevel
        {
        EProtLevel0 = 0,    /**<
                            * No protection
                            */
                            
        EProtLevel1 = 1,    /**<
                            * A destination and its contents
                            */
                            
        EProtLevel2 = 2,    /**<
                            * A destination
                            */
                            
        EProtLevel3 = 3     /**<
                            * Note: Level 3 - Set the ECmProtected attr on 
                            * connection method
                            */
        };  

    const TInt KDataMobilitySelectionPolicyPriorityWildCard = 256;
    } // namespace CMManager

/**
 * TBearerPriority is a representation of a bearer priority defined in
 * commsdat
 *
 *  @lib cmmanager.lib
 *  @since S60 v3.2
 */
NONSHARABLE_CLASS( TBearerPriority )
    {
    public:
        
        HBufC*     iServiceType;    /**<
                                    * Name of the service table to identify
                                    * type of bearer 
                                    */
                                    
        TUint32    iPriority;       /**<
                                    * Priority of the bearer. 
                                    * Values must be unique within the table 
                                    */
                                    
        TUint32    iUIPriority;     /**<
                                    * Priority of this bearer type when shown
                                    * in UI for configuring a new IAP. 
                                    * Values must be unique within the table 
                                    */
    };       
    
#endif // CMMANAGERDEF_H