mediasettings/videosettingsplugin/tsrc/testaccesspointentry/stub/src/cmconnectionmethod_shim.cpp
changeset 46 adbe7d5ba2f5
child 67 72c709219fcd
equal deleted inserted replaced
28:c48470be1ba7 46:adbe7d5ba2f5
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   CmConnectionMethodShim stub
       
    15 * 
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "cmconnectionmethod_shim.h"
       
    20 #include <qlist.h>
       
    21 #include <qvariant.h>
       
    22 
       
    23 // ---------------------------------------------------------------------------
       
    24 // CmConnectionMethodShim
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 CmConnectionMethodShim::CmConnectionMethodShim(uint id, uint iapId, QString name) 
       
    28 {
       
    29     mAttributes[CMManagerShim::CmId] = id;
       
    30     mAttributes[CMManagerShim::CmIapId] = iapId;
       
    31     mAttributes[CMManagerShim::CmName] = name;
       
    32 }
       
    33 
       
    34 // ---------------------------------------------------------------------------
       
    35 // CmConnectionMethodShim
       
    36 // ---------------------------------------------------------------------------
       
    37 //
       
    38 CmConnectionMethodShim::~CmConnectionMethodShim()
       
    39 {
       
    40 }
       
    41 
       
    42 // ---------------------------------------------------------------------------
       
    43 // getIntAttribute
       
    44 // ---------------------------------------------------------------------------
       
    45 //
       
    46 uint CmConnectionMethodShim::getIntAttribute(
       
    47     CMManagerShim::ConnectionMethodAttribute attribute) const
       
    48 {
       
    49     return mAttributes[attribute].toUInt();
       
    50 }
       
    51 
       
    52 // ---------------------------------------------------------------------------
       
    53 // getStringAttribute
       
    54 // ---------------------------------------------------------------------------
       
    55 //
       
    56 QString CmConnectionMethodShim::getStringAttribute(
       
    57     CMManagerShim::ConnectionMethodAttribute attribute) const
       
    58 {
       
    59     return mAttributes[attribute].toString();
       
    60 }