|
1 /* |
|
2 * Copyright (c) 2007-2007 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: Socket Server Connection factory class for push feature |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SOCKETSERVERCONNECTIONFACTORY_H |
|
19 #define SOCKETSERVERCONNECTIONFACTORY_H |
|
20 |
|
21 #include "serverconnectionfactorybase.h" |
|
22 #include "javaosheaders.h" |
|
23 #include <logger.h> |
|
24 |
|
25 using namespace java::push; |
|
26 |
|
27 |
|
28 /** |
|
29 * This class implements the virtual method of ServerConnectionFactory |
|
30 * and uses the default implementation of ServerConnectionFactory interface. |
|
31 * for rest of the methods |
|
32 */ |
|
33 class SocketServerConnectionFactory : public ServerConnectionFactoryBase |
|
34 { |
|
35 //Not implemented |
|
36 SocketServerConnectionFactory(const SocketServerConnectionFactory&); |
|
37 SocketServerConnectionFactory &operator=(const SocketServerConnectionFactory&); |
|
38 |
|
39 public: |
|
40 OS_IMPORT SocketServerConnectionFactory(); |
|
41 OS_IMPORT virtual ~SocketServerConnectionFactory(); |
|
42 |
|
43 // ServerConnectionFactoryBase methods |
|
44 OS_IMPORT virtual ServerConnection* createSrvConnObj(const std::wstring& aUri,const std::wstring& aFilter); |
|
45 OS_IMPORT virtual bool isMultipleSrvConnAllowed(); |
|
46 |
|
47 OS_IMPORT static SocketServerConnectionFactory& getFactory(); |
|
48 OS_IMPORT virtual ServerConnection* create(const std::wstring& aUri); |
|
49 bool isPushEnabled(); |
|
50 |
|
51 |
|
52 }; |
|
53 |
|
54 #endif // SOCKETSERVERCONNECTIONFACTORY_H |