bearermanagement/S60MCPR/inc/s60extendedtmselector.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 14:42:41 +0300
changeset 47 cb7afde124a3
parent 0 5a93021fdf25
child 58 83ca720e2b9a
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* Copyright (c) 2008 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: S60 IP tier manager selector
*
*/

/**
@file s60tiermanagerselector.h
S60 IP TM selector.
*/

#ifndef S60EXTENDEDTMSELECTOR_H
#define S60EXTENDEDTMRSELECTOR_H

#include <comms-infras/simpleselectorbase.h>

/**
 * TS60ProviderSelectorFactory
 */
class TS60ProviderSelectorFactory
    {
public:
    static ESock::MProviderSelector* NewSelectorL(const Meta::SMetaData& aSelectionPreferences);
    };

/**
 * CExtendedS60SelectorBase
 * Base for simple selectors.
 */
class CExtendedS60SelectorBase : public CBase, public ASimpleSelectorBase
    {
public:
    explicit CExtendedS60SelectorBase( TUid aTierId, const ESock::RConnPrefList& aConnPrefList );
    virtual ~CExtendedS60SelectorBase();

protected:
    ESock::ISelectionNotify iSelectionNotify; //Needed as a member because of the asynch selection
private:
    /**
     * Implements the selection logic
     */
    virtual void SelectL( ESock::ISelectionNotify& aSelectionNotify );
    /**
     * Instantiates the MCPR or finds an old one that can be reused.
     */
    ESock::CMetaConnectionProviderBase* FindOrCreateProviderL( TUint aAccessPoint );
private:
    TUint32 iDefaultAp;    
    ESock::RConnPrefList iConnPrefList;
    TUid iTierId;
    TSubSessionUniqueId iSubSessionUniqueId;
    };

#endif // S60IPTIERMANAGERSELECTOR_H