diff -r 000000000000 -r e6b17d312c8b imservices/imfeatureplugin/srcimoperations/imoperationfactoryimp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/imservices/imfeatureplugin/srcimoperations/imoperationfactoryimp.h Thu Dec 17 08:54:49 2009 +0200 @@ -0,0 +1,76 @@ +/* +* 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: Im Service Connection operation factory + * +*/ + + +#ifndef IMCOPERATIONFACTORYIMP_H +#define IMCOPERATIONFACTORYIMP_H + + +#include +class CXIMPOperationBase; +#include "imapiobjbase.h" +#include + +/** + * Operation factory + * Class is owned by and handled as singleton by CXIMPGlobals. + * + * @lib imoperation.dll + * @since S60 v4.0 + */ + +NONSHARABLE_CLASS(CImOperationFactory): public MXIMPOperationFactory1 + { + + public: + /** The class ID. */ + //enum { KClassId = IMIMP_CLSID_CIMOPERATIONFACTORYIMP }; + + + + public: // Construction and desctruction + + IMPORT_C static CImOperationFactory* NewL(); + + virtual ~CImOperationFactory(); + + private: // Construction + + /** + * C++ default constructor. + */ + CImOperationFactory(); + + /** + * Symbian 2nd phase constructor + */ + void ConstructL(); + + + public: // From MXIMPOperationFactory1 + + /** + * @see MXIMPOperationFactory1 + */ + CXIMPOperationBase* CreateOperationL( TInt aOperation ); + + private: // Data + + }; + +#endif // IMCOPERATIONFACTORYIMP_H +