|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef M_SEN_TRANSPORT_FACTORY_H |
|
26 #define M_SEN_TRANSPORT_FACTORY_H |
|
27 |
|
28 // FORWARD DECLARE |
|
29 class MSenConsumerPolicy; |
|
30 class CSenTransportBase; |
|
31 class CSenWSDescription; |
|
32 class CSenServiceSession; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 class MSenTransportFactory |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * CreateL() produces new CSenTransportBase instance from this factory. |
|
41 * The instance itself may or may not be an ECOM plug-in. |
|
42 * @param aInitializer is used to resolve what type of class |
|
43 * the new instance will be (the scheme of the endpoint can also |
|
44 * indicate which ECOM cue should be used when creating a new instance) |
|
45 * Additionally, one can pass some SD subclass, like CSenWSPattern |
|
46 * to this method. Consumer and Provider policies may further be included |
|
47 * within such SD, and the transport related context may be applied from |
|
48 * those policies. |
|
49 * @param apSession is a pointer (which ownership will not be changed) |
|
50 * to the session which request new transport. |
|
51 * @return pointer to new transport instance, a CSenTransportBase*, |
|
52 * or NULL if no transport could be created using input policy. |
|
53 */ |
|
54 virtual CSenTransportBase* CreateL(CSenWSDescription& aInitializer, |
|
55 CSenServiceSession* apSession) = 0; |
|
56 }; |
|
57 |
|
58 #endif // M_SEN_TRANSPORT_FACTORY_H |
|
59 |
|
60 // End of File |