meetingrequest/mrgui/inc/cesmruifactory.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:28:57 +0100
branchRCL_3
changeset 25 3533d4323edc
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2009 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:  ESMR ui factory class definition
*
*/

#ifndef CESMRUIFACTORY_H
#define CESMRUIFACTORY_H

#include <e32base.h>
//<cmail>
#include "mesmruifactory.h"
//</cmail>

// FORWARD DECLARATIONS:
class CEikonEnv;
class MMRInfoProvider;

/**
 * UI Factory implementation.
 *
 * @see mesmruifactory.h
 * @lib esmrgui.lib
 */
NONSHARABLE_CLASS ( CESMRUiFactory ) :
        public CBase,
        public MESMRUiFactory
    {
public: // Construction and destruction
    /**
     * Two-phased constructor. Creates and initialzes new CESMRUiFactory
     * object. Ownership is transferred to caller.
     *
     * @return Pointer to CESMRUiFactory object.
     */
     IMPORT_C static CESMRUiFactory * NewL();

    /**
     * C++ destructor
     */
    IMPORT_C ~CESMRUiFactory ();

public: // From MESMRUiFactory
    IMPORT_C MESMRUiBase* CreateUIL(
            MMRInfoProvider& aInfoProvider,
            MAgnEntryUiCallback& aCallback );

private: // Implementation
    CESMRUiFactory();
    void ConstructL();
    void LoadResourceFileL(CEikonEnv* aEikEnv,
                           const TDesC& aFilename,
                           TInt& aResourceOffset);
private:
    /// Own: Resource offset, stored for later deletion
    TInt iResourceOffset;
    };

#endif // CESMRUIFACTORY_H

// EOF