ipcm_pub/connection_settings_api/inc/cmgenconnsettings.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 18 Jan 2010 20:33:49 +0200
changeset 2 086aae6fc07e
parent 0 5a93021fdf25
child 13 68f0c7cd80ec
permissions -rw-r--r--
Revision: 201001 Kit: 201003

/*
* Copyright (c) 2009 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:  General connectivity settings.
*
*/
#ifndef CMGENCONNSETTINGS_H
#define CMGENCONNSETTINGS_H


// Usage types for WLAN
enum TCmUsageOfWlan
    {
    // Known WLANs will be used, and they will be switched to
    // if they become available during existing connections.
    ECmUsageOfWlanKnown,
    // Known and new WLANs will be used. 
    ECmUsageOfWlanKnownAndNew, 
    // WLANs will be used but they will not be switched to
    // from existing connections.
    ECmUsageOfWlanManual   
    };

// Cellular data usage values
enum TCmCellularDataUsage
    {
    // Cellular data connection is not used automatically but a confirmation
    // is requested from the user.
    ECmCellularDataUsageConfirm,
    // Cellular data connection is automatically used without querying
    // permission from the user.
    ECmCellularDataUsageAutomatic,
    // Cellular data usage is disabled. Only WLAN will be used.
    ECmCellularDataUsageDisabled
    };

// DEPRECATED enumeration which will be removed within few weeks.
// DO NOT USE THESE VALUES.
// Functionality related to these values is broken although it compiles.
enum TCmSeamlessnessValue
        {
        ECmSeamlessnessNotRoamedTo,   // DO NOT USE
        ECmSeamlessnessConfirmFirst,  // DO NOT USE
        ECmSeamlessnessShowprogress,  // DO NOT USE
        ECmSeamlessnessFullySeamless, // DO NOT USE
        ECmSeamlessnessDisabled       // DO NOT USE
        };

// Table for connection settings other than default connection
struct TCmGenConnSettings
    {
    // WLAN usage.
    TCmUsageOfWlan         iUsageOfWlan;
    // Cellular data usage in home country.
    TCmCellularDataUsage   iCellularDataUsageHome;
    // Cellular data usage abroad.
    TCmCellularDataUsage   iCellularDataUsageVisitor;

    // DEPRECATED variable that will be removed within few weeks.
    // DO NOT USE THESE VARIABLES.
    // Functionality related to this variable is broken although it compiles.
    TCmSeamlessnessValue   iSeamlessnessHome;
    // DEPRECATED variable that will be removed within few weeks.
    // DO NOT USE THESE VARIABLES.
    // Functionality related to this variable is broken although it compiles.
    TCmSeamlessnessValue   iSeamlessnessVisitor;
    };

#endif