logsui/AppSrc/CLogsExtensionLoader.h
author Arnaud Lenoir
Mon, 11 Oct 2010 13:34:41 +0100
branchRCL_3
changeset 76 a7e7933e67a8
parent 0 e686773b3f54
permissions -rw-r--r--
Added sf_test directory to start the work related to the guidlines for package test organisation (http://developer.symbian.org/wiki/index.php/Guidelines_for_Package_Test_Organisation).

/*
* Copyright (c) 2002 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: 
*       Loads a polymorphic extension dll and provides access to 
*       extension factory.
*
*/


#ifndef CLogsExtensionLoader_H
#define CLogsExtensionLoader_H


//  INCLUDES
#include <e32base.h>

// FORWARD DECLRATIONS
class MLogsExtensionFactory;

// CLASS DECLARATION

/**
 * Loads a polymorphic extension dll and provides access to 
 * extension factory.
 */
class CLogsExtensionLoader : public CBase
    {
    public: // Constructor and destructor
        /**
         * Creates a new CLogsExtensionLoader.
         */
        static CLogsExtensionLoader* NewL();

        /**
         * Destructor.
         */
        ~CLogsExtensionLoader();

    public: // Interface
        /**
         * Returns extension factory. Ownership is changed for the
         * caller. Second call will return NULL.
         *
         * @return extension factory
         */
        MLogsExtensionFactory& ExtensionFactory();

    private:
        CLogsExtensionLoader();
        void ConstructL();
        TUidType UidType();
        void LoadExtensionDllL();

    private: // Data
        /// Own: the test dll.
        RLibrary iDll;
        /// Ref/Own: loaded extension factory
        MLogsExtensionFactory* iFactory;

    };

#endif
            

// End of File