|
1 /* |
|
2 * Copyright (c) 2002 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: Abstract interface of IMPS factory. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MCAIMPSFACTORY_H |
|
21 #define MCAIMPSFACTORY_H |
|
22 |
|
23 // FORWARD DECLARATIONS |
|
24 class MCAImpsImClient; |
|
25 class MCAImpsGroupClient; |
|
26 class MCAImpsFundClient; |
|
27 class MCAImpsAccessClient; |
|
28 class TImpsCspIdentifier; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Abstract factory interface. |
|
34 * Use this to create client interfaces. |
|
35 * Factory implementation owns interface classes. Factory is deleted when DLL |
|
36 * is unloaded. Factory implementation deletes interface classes in destructor. |
|
37 * |
|
38 * @lib CAAdapter.lib |
|
39 * @since 1.2 |
|
40 */ |
|
41 class MCAImpsFactory |
|
42 { |
|
43 public: // New functions |
|
44 |
|
45 /** |
|
46 * Creates access client when requested. |
|
47 * @return MCAImpsAccessClient abstract access client class. Ownership NOT transferred. |
|
48 */ |
|
49 virtual MCAImpsAccessClient* CreateAccessClientL() = 0; |
|
50 |
|
51 /** |
|
52 * Creates IM client when requested. |
|
53 * @return MCAImpsImClient abstract IM client class. Ownership NOT transferred. |
|
54 */ |
|
55 virtual MCAImpsImClient* CreateImClientL() = 0; |
|
56 |
|
57 /** |
|
58 * Creates group client when requested. |
|
59 * @return MCAImpsGroupClient abstract group client class. Ownership NOT transferred. |
|
60 */ |
|
61 virtual MCAImpsGroupClient* CreateGroupClientL() = 0; |
|
62 |
|
63 /** |
|
64 * Creates fundamental client when requested. |
|
65 * @return MCAImpsFundClient abstract fundamental client class. Ownership NOT transferred. |
|
66 */ |
|
67 virtual MCAImpsFundClient* CreateFundClientL() = 0; |
|
68 |
|
69 /** |
|
70 * Registers all interfaces from WV Engine when requested. |
|
71 */ |
|
72 virtual void RegisterL() = 0; |
|
73 |
|
74 /** |
|
75 * Unregisters all interfaces from WV Engine when requested. |
|
76 */ |
|
77 virtual void Unregister() = 0; |
|
78 |
|
79 /** |
|
80 * Connects to IMPS engine (server) |
|
81 * @since 2.1 |
|
82 */ |
|
83 virtual void ConnectL() = 0; |
|
84 |
|
85 protected: // New functions |
|
86 |
|
87 /** |
|
88 * Destructor. |
|
89 */ |
|
90 virtual ~MCAImpsFactory() { }; |
|
91 |
|
92 }; |
|
93 |
|
94 #endif // MCAIMPSFACTORY_H |
|
95 |
|
96 // End of File |