|
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 |
|
15 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @file s60tiermanager.h |
|
20 S60 IP TM. |
|
21 */ |
|
22 |
|
23 #ifndef S60TIERMANAGER_H |
|
24 #define S60TIERMANAGER_H |
|
25 |
|
26 #include <comms-infras/coretiermanager.h> |
|
27 |
|
28 /** |
|
29 * CS60 Tier Manager selects the MCPR for the connection. |
|
30 * In practise it creates a new S60 MCPR and provisions selection preferences. |
|
31 */ |
|
32 class CS60TierManager : public CCoreTierManager |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Symbian two-phase constructor. |
|
37 * @return pointer to new CS60TierManager |
|
38 */ |
|
39 static CS60TierManager* NewL( ESock::CTierManagerFactoryBase& aFactory ); |
|
40 /** |
|
41 * C++ destructor |
|
42 */ |
|
43 ~CS60TierManager(); |
|
44 protected: |
|
45 /** |
|
46 * C++ constructor |
|
47 */ |
|
48 CS60TierManager( ESock::CTierManagerFactoryBase& aFactory, |
|
49 const MeshMachine::TNodeActivityMap& aActivityMap ); |
|
50 /** |
|
51 * Decide which selector to create and creates it based on the information available. |
|
52 * @param aSelectionPreferences selection preferences that tell which kind of selection should be done. |
|
53 * @return CSimpleS60SelectorBase |
|
54 */ |
|
55 virtual ESock::MProviderSelector* DoCreateProviderSelectorL( const Meta::SMetaData& aSelectionPreferences ); |
|
56 /** |
|
57 * Receives message. |
|
58 */ |
|
59 virtual void ReceivedL( const Messages::TRuntimeCtxId& aSender, |
|
60 const Messages::TNodeId& aRecipient, |
|
61 Messages::TSignatureBase& aMessage ); |
|
62 }; |
|
63 |
|
64 #endif // S60TIERMANAGER_H |
|
65 |