meetingrequest/mrgui/inc/cesmruifactory.h
branchRCL_3
changeset 25 3533d4323edc
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  ESMR ui factory class definition
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CESMRUIFACTORY_H
       
    19 #define CESMRUIFACTORY_H
       
    20 
       
    21 #include <e32base.h>
       
    22 //<cmail>
       
    23 #include "mesmruifactory.h"
       
    24 //</cmail>
       
    25 
       
    26 // FORWARD DECLARATIONS:
       
    27 class CEikonEnv;
       
    28 class MMRInfoProvider;
       
    29 
       
    30 /**
       
    31  * UI Factory implementation.
       
    32  *
       
    33  * @see mesmruifactory.h
       
    34  * @lib esmrgui.lib
       
    35  */
       
    36 NONSHARABLE_CLASS ( CESMRUiFactory ) :
       
    37         public CBase,
       
    38         public MESMRUiFactory
       
    39     {
       
    40 public: // Construction and destruction
       
    41     /**
       
    42      * Two-phased constructor. Creates and initialzes new CESMRUiFactory
       
    43      * object. Ownership is transferred to caller.
       
    44      *
       
    45      * @return Pointer to CESMRUiFactory object.
       
    46      */
       
    47      IMPORT_C static CESMRUiFactory * NewL();
       
    48 
       
    49     /**
       
    50      * C++ destructor
       
    51      */
       
    52     IMPORT_C ~CESMRUiFactory ();
       
    53 
       
    54 public: // From MESMRUiFactory
       
    55     IMPORT_C MESMRUiBase* CreateUIL(
       
    56             MMRInfoProvider& aInfoProvider,
       
    57             MAgnEntryUiCallback& aCallback );
       
    58 
       
    59 private: // Implementation
       
    60     CESMRUiFactory();
       
    61     void ConstructL();
       
    62     void LoadResourceFileL(CEikonEnv* aEikEnv,
       
    63                            const TDesC& aFilename,
       
    64                            TInt& aResourceOffset);
       
    65 private:
       
    66     /// Own: Resource offset, stored for later deletion
       
    67     TInt iResourceOffset;
       
    68     };
       
    69 
       
    70 #endif // CESMRUIFACTORY_H
       
    71 
       
    72 // EOF
       
    73