|
1 /* |
|
2 * Copyright (c) 2008 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: S60 IP tier manager selector |
|
15 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @file s60tiermanagerselector.h |
|
20 S60 IP TM selector. |
|
21 */ |
|
22 |
|
23 #ifndef S60EXTENDEDTMSELECTOR_H |
|
24 #define S60EXTENDEDTMRSELECTOR_H |
|
25 |
|
26 #include <comms-infras/simpleselectorbase.h> |
|
27 |
|
28 // Forward declaration |
|
29 class ESock::CMetaConnectionProviderBase; |
|
30 |
|
31 /** |
|
32 * TS60ProviderSelectorFactory |
|
33 */ |
|
34 class TS60ProviderSelectorFactory |
|
35 { |
|
36 public: |
|
37 static ESock::MProviderSelector* NewSelectorL(const Meta::SMetaData& aSelectionPreferences); |
|
38 }; |
|
39 |
|
40 /** |
|
41 * CExtendedS60SelectorBase |
|
42 * Base for simple selectors. |
|
43 */ |
|
44 class CExtendedS60SelectorBase : public CBase, public ASimpleSelectorBase |
|
45 { |
|
46 public: |
|
47 explicit CExtendedS60SelectorBase( TUid aTierId, const ESock::RConnPrefList& aConnPrefList ); |
|
48 virtual ~CExtendedS60SelectorBase(); |
|
49 |
|
50 protected: |
|
51 ESock::ISelectionNotify iSelectionNotify; //Needed as a member because of the asynch selection |
|
52 private: |
|
53 /** |
|
54 * Implements the selection logic |
|
55 */ |
|
56 virtual void SelectL( ESock::ISelectionNotify& aSelectionNotify ); |
|
57 /** |
|
58 * Instantiates the MCPR or finds an old one that can be reused. |
|
59 */ |
|
60 ESock::CMetaConnectionProviderBase* FindOrCreateProviderL( TUint aAccessPoint ); |
|
61 private: |
|
62 TUint32 iDefaultAp; |
|
63 ESock::RConnPrefList iConnPrefList; |
|
64 TUid iTierId; |
|
65 TSubSessionUniqueId iSubSessionUniqueId; |
|
66 }; |
|
67 |
|
68 #endif // S60IPTIERMANAGERSELECTOR_H |