idlefw/inc/framework/aipluginlifecycleobserver.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  Plugin lifecycle observer
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef M_AIPLUGINLIFECYCLEOBSERVER_H
       
    21 #define M_AIPLUGINLIFECYCLEOBSERVER_H
       
    22 
       
    23 #include "aipropertyextension.h"
       
    24 #include <aisystemuids.hrh>
       
    25 
       
    26 class CAiContentPublisher;
       
    27 
       
    28 // Unnamed namespace for local definitions
       
    29 namespace
       
    30     {       
       
    31     const TInt KAIUidDevStaPlugin = AI_UID_ECOM_IMPLEMENTATION_CONTENTPUBLISHER_DEVSTAPLUGIN;
       
    32     
       
    33     const TInt KAIUidShortCutPlugin = AI_UID_ECOM_IMPLEMENTATION_CONTENTPUBLISHER_SHORTCUTPLUGIN;
       
    34     
       
    35     const TInt KAIUidProfilePlugin = AI_UID_ECOM_IMPLEMENTATION_CONTENTPUBLISHER_PROFILEPLUGIN;
       
    36     
       
    37     const TInt KAIUidSATPlugin = AI_UID_ECOM_IMPLEMENTATION_CONTENTPUBLISHER_SATPLUGIN;
       
    38     }
       
    39 
       
    40 /**
       
    41  *  Plugin lifecycle observer base class.
       
    42  *
       
    43  *  @lib aifw
       
    44  *  @since S60 3.2
       
    45  */
       
    46 class MAiPluginLifecycleObserver
       
    47     {
       
    48 public:
       
    49     
       
    50     /**
       
    51      * Report plugin created.
       
    52      * @param aPlugin reference to the created plugin.
       
    53      */
       
    54     virtual void PluginCreatedL( CAiContentPublisher& aPlugin ) = 0;
       
    55 
       
    56     /**
       
    57      * Report plugin destroyed.
       
    58      * @param aPlugin reference to the dtored plugin.
       
    59      */
       
    60     virtual void PluginDestroyed( CAiContentPublisher& aPlugin ) = 0;
       
    61 
       
    62     /**
       
    63      * Report all plugins created.
       
    64      */
       
    65     virtual void AllPluginsCreated() = 0;
       
    66 
       
    67     /**
       
    68      * Report all plugins destroyed.
       
    69      */
       
    70     virtual void AllPluginsDestroyed() = 0;
       
    71     	
       
    72 protected:
       
    73 
       
    74     /**
       
    75      * Protected destructor prevents deletion through this interface.
       
    76      */
       
    77     ~MAiPluginLifecycleObserver() { };               
       
    78     };
       
    79 
       
    80 #endif // M_AIPLUGINSTATEMANAGER_H
       
    81 
       
    82 // End of File.