javacommons/connectionmanager/legacysupport/apnsettings/src.s60/main.cpp
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2008-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:  APNSettings main class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "mapnsettings.h"
       
    21 #include "apncenreptable.h"
       
    22 
       
    23 namespace CENREP
       
    24 {
       
    25 
       
    26 /**
       
    27  * Returns an instance implementing the MAPNSettings interface.
       
    28  *
       
    29  * @param aFlags the version of the interface required. Currently 0x0000
       
    30  *        (KAPNSettingsVersion) for CAPNCenRepTable.
       
    31  * @return an instance implementing the MAPNSettings interface. Ownership
       
    32  *         is transferred to the caller.
       
    33  */
       
    34 EXPORT_C MAPNSettings* GetAPNSettingsLC(TUint32 aFlags)
       
    35 {
       
    36     if (aFlags != KAPNSettingsVersion)
       
    37     {
       
    38         User::Leave(KErrArgument);
       
    39     }
       
    40     return CAPNCenRepTable::NewLC();
       
    41 }
       
    42 
       
    43 } // end of namespace CENREP