|
1 /* |
|
2 * Copyright (c) 2004 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: this is a factory class |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __MPENGTRANSADAPFACTORY_H |
|
19 #define __MPENGTRANSADAPFACTORY_H |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <E32Std.h> |
|
24 |
|
25 // DATA TYPES |
|
26 |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CPEngSessionManager; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 /** |
|
34 * Access handler of one network session |
|
35 * |
|
36 * It is used to open/close network session |
|
37 * and register its observers |
|
38 * |
|
39 * @since 3.0 |
|
40 */ |
|
41 class MPEngTransAdapFactory |
|
42 { |
|
43 |
|
44 public: // |
|
45 |
|
46 /** |
|
47 * Add session reference |
|
48 * |
|
49 * @since 3.0 |
|
50 */ |
|
51 virtual void OpenSessionCount() = 0; |
|
52 |
|
53 /** |
|
54 * Close session manager |
|
55 * If Transaction adapter factory is not needed it is deleted |
|
56 * |
|
57 * @since 3.0 |
|
58 * @param aSessManager session manager |
|
59 */ |
|
60 virtual void CloseSession( CPEngSessionManager* aSessManager ) = 0; |
|
61 |
|
62 protected: //Destructor |
|
63 |
|
64 /** |
|
65 * Virtual inline destructor. |
|
66 * Protected destructor to prohibits deletion trough interface. |
|
67 */ |
|
68 virtual ~MPEngTransAdapFactory() {}; |
|
69 }; |
|
70 |
|
71 |
|
72 #endif // __MPEngTransAdapFactory_H |
|
73 |
|
74 // End of File |
|
75 |
|
76 |
|
77 |