javacommons/gcfprotocols/socket/serverconnection/inc/socketserverconnectionfactory.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 21:06:50 +0300
branchRCL_3
changeset 71 d5e927d5853b
parent 19 04becd199f91
permissions -rw-r--r--
Revision: v2.2.11 Kit: 201035

/*
* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Socket Server Connection factory class for push feature
*
*/

#ifndef SOCKETSERVERCONNECTIONFACTORY_H
#define SOCKETSERVERCONNECTIONFACTORY_H

#include "serverconnectionfactorybase.h"
#include "javaosheaders.h"
#include <logger.h>

using namespace java::push;


/**
 * This class implements the virtual method of ServerConnectionFactory
 * and uses the default implementation of ServerConnectionFactory interface.
 * for rest of the methods
 */
class SocketServerConnectionFactory : public ServerConnectionFactoryBase
{
    //Not implemented
    SocketServerConnectionFactory(const SocketServerConnectionFactory&);
    SocketServerConnectionFactory &operator=(const SocketServerConnectionFactory&);

public:
    OS_IMPORT SocketServerConnectionFactory();
    OS_IMPORT virtual ~SocketServerConnectionFactory();

    // ServerConnectionFactoryBase methods
    OS_IMPORT virtual ServerConnection* createSrvConnObj(const std::wstring& aUri,const std::wstring& aFilter);
    OS_IMPORT virtual bool isMultipleSrvConnAllowed();

    OS_IMPORT static SocketServerConnectionFactory& getFactory();
    OS_IMPORT virtual ServerConnection* create(const std::wstring& aUri);
    bool isPushEnabled();


};

#endif // SOCKETSERVERCONNECTIONFACTORY_H