diff -r 000000000000 -r e686773b3f54 predictivesearch/PcsServer/inc/CPcsServer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/predictivesearch/PcsServer/inc/CPcsServer.h Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,85 @@ +/* +* Copyright (c) 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: PCS Server main class. Co-ordinates server startup +* and shutdown and receives client requests. +* +*/ + +#ifndef PCS_SERVER_H +#define PCS_SERVER_H + +// INCLUDE FILES +#include +#include + +// FORWARD DECLARATIONS +class CPcsSession; +class CPcsHandler; +class CPcsPluginInterface; + +/** + * PCS Server main class. Co-ordinates server startup and shutdown + * and receives client requests. + */ +class CPcsServer : public CServer2 +{ + public: + + /** + * Two phase construction + */ + static CPcsServer* NewL(); + + /** + * Destructor + */ + ~CPcsServer(); + + /** + * Creates a server side session object + * Implements NewSessionL of CServer2 + */ + CSession2* NewSessionL(const TVersion& aVersion, + const RMessage2& aMessage) const; + + /** + * Return the plugin interface instance + */ + CPcsPluginInterface* PluginInterface(); + + private: + + /** + * Constructor + */ + CPcsServer(); + + /** + * Second phase constructor + */ + void ConstructL(); + + /** + * Returns ETrue if chinese feature is initilized + */ + TBool IsChineseFeatureInitilizedL(); + private: + + /** + * A PCS algorithm instance (owned) + */ + CPcsPluginInterface* pcs; +}; + +#endif // End of file