|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MMSSERVERCONNECTIONFACTORY_H |
|
19 #define MMSSERVERCONNECTIONFACTORY_H |
|
20 |
|
21 #include "serverconnectionfactorybase.h" |
|
22 |
|
23 using namespace java::push; |
|
24 /** |
|
25 * MmsServerConnectionFactory used to create the ServerConnection. |
|
26 * It implement ServerConnectionFactoryBase. |
|
27 * |
|
28 * @lib MmsServerConnection.dll |
|
29 * @ |
|
30 */ |
|
31 class MmsServerConnectionFactory: public ServerConnectionFactoryBase |
|
32 { |
|
33 //Not implemented |
|
34 MmsServerConnectionFactory(const MmsServerConnectionFactory&); |
|
35 MmsServerConnectionFactory &operator=(const MmsServerConnectionFactory&); |
|
36 |
|
37 public: |
|
38 OS_IMPORT MmsServerConnectionFactory(); |
|
39 OS_IMPORT virtual ~MmsServerConnectionFactory(); |
|
40 /** |
|
41 * create serverconnection for the given Connection URI |
|
42 * @ |
|
43 * |
|
44 * @return ServerConnection |
|
45 */ |
|
46 OS_IMPORT virtual ServerConnection* createSrvConnObj( |
|
47 const std::wstring& aUri, |
|
48 const std::wstring& aFilter); |
|
49 /** |
|
50 * Checks for multiple server connection is allowed for the given |
|
51 * Connection URI |
|
52 * |
|
53 * |
|
54 * @return true if allowed otherwise false. |
|
55 */ |
|
56 OS_IMPORT virtual bool isMultipleSrvConnAllowed(); |
|
57 /** |
|
58 * factory method to create the server connection factory |
|
59 * @ |
|
60 * |
|
61 * @return MmsServerConnectionFactory |
|
62 */ |
|
63 OS_IMPORT static MmsServerConnectionFactory& getFactory(); |
|
64 |
|
65 }; |
|
66 |
|
67 #endif // MMSSERVERCONNECTIONFACTORY_H |