calendarui/editors/inc/CalenEditorsPlugin.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CALENEDITORSPLUGIN_H__
       
    20 #define __CALENEDITORSPLUGIN_H__
       
    21 
       
    22 // system includes
       
    23 #include <e32base.h>
       
    24 #include <ecom/ecom.h>
       
    25 #include <MAgnEntryUi.h>
       
    26 
       
    27 /**
       
    28  * Implementation base class for Calendar Editors ECom Plugins.
       
    29  * Plugin implementations should derive from this class, but reimplement
       
    30  * only MCalenEditorsPlugin interface methods and implement own factory 
       
    31  * method and destructor 
       
    32  */ 
       
    33 NONSHARABLE_CLASS( CCalenEditorsPlugin ) : public CBase,
       
    34                                            public MAgnEntryUi
       
    35     {
       
    36 public: // factory methods and destructor
       
    37     /**
       
    38      * @brief Loads and creates default Calendar editors implementation 
       
    39      */
       
    40     static CCalenEditorsPlugin* NewL();
       
    41     
       
    42     /**
       
    43      * @brief Desctructor
       
    44      */
       
    45     virtual ~CCalenEditorsPlugin();
       
    46 
       
    47 private: // data
       
    48     /** iDtor_ID_Key Instance identifier key. When instance of an
       
    49      *               implementation is created by ECOM framework, the
       
    50      *               framework will assign UID for it. The UID is used in
       
    51      *               destructor to notify framework that this instance is
       
    52      *               being destroyed and resources can be released.
       
    53      * Plugin implementations should leave this untouched, as 
       
    54      * inline destructor and constructor method take care of 
       
    55      * ECom releasing.
       
    56      */
       
    57     TUid iDtor_ID_Key;
       
    58 
       
    59     };
       
    60 
       
    61 #include <CalenEditorsPlugin.inl>
       
    62 
       
    63 #endif // __CALENEDITORSPLUGIN_H__
       
    64 
       
    65 
       
    66 // End of File