logsui/LogsExt/MLogsExtensionFactory.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *    Abstract interface for creating logs extensions.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef MLogsExtensionFactory_H
       
    21 #define MLogsExtensionFactory_H
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32std.h>  // for TUid
       
    26 
       
    27 // CONSTANTS
       
    28 _LIT( KLogsUiExtensionDllDrive, "Z:" );
       
    29 
       
    30 _LIT( KLogsUiExtensionDllFile, "logsserviceextension.dll" );       
       
    31 
       
    32 //  FORWARD DECLARATIONS
       
    33 class MLogsViewExtension;
       
    34 class MLogsUiControlExtension;
       
    35 class MLogsExtObserver;
       
    36 class CPbkContactEngine;
       
    37 
       
    38 
       
    39 // CLASS DECLARATION
       
    40 
       
    41 /**
       
    42  * @internal This interface is internal to Logs.
       
    43  *
       
    44  * Abstract interface for creating logs extensions. Instance of 
       
    45  * this factory should be kept as long as extensions are used, if resources
       
    46  * are needed.
       
    47  */
       
    48 class MLogsExtensionFactory
       
    49     {
       
    50     public:  // Destructor
       
    51 
       
    52     /**
       
    53      * Cleans up the object owned through this interface.
       
    54      * 
       
    55      * @since S60 v3.2     
       
    56      */
       
    57     virtual void Release() = 0; 
       
    58 
       
    59     public: // Interface
       
    60 
       
    61         /**
       
    62          * Creates a logs view extension.
       
    63          *
       
    64          * @param aId   id of the logs view to create the extension
       
    65          *              for.
       
    66          * @param aEngine pbk engine to be provided to extensions.
       
    67          * @param aObserver observer
       
    68          * @return Logs view extension object.
       
    69          */
       
    70         virtual MLogsViewExtension* CreateLogsViewExtensionL
       
    71                 ( CPbkContactEngine& aEngine, 
       
    72                 MLogsExtObserver* aObserver ) = 0;
       
    73         
       
    74 
       
    75         /**
       
    76          * Creates a Logs UI control extension.
       
    77          * @return Logs control extension object.
       
    78          */
       
    79         virtual MLogsUiControlExtension* CreateLogsUiControlExtensionL() = 0;
       
    80     };
       
    81 
       
    82 
       
    83 #endif
       
    84             
       
    85 
       
    86 // End of File