uifw/AvKon/src/AknIndicatorPlugin.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2005-2007 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:  Indicator ECOM Plugin interface implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDES
       
    20 #include <gulicon.h>
       
    21 
       
    22 #include "AknIndicatorPlugin.h"
       
    23 #include "aknindicatorpopupcontent.h"
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CAknIndicatorPlugin::NewL
       
    29 // Two-phased constructor.
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 EXPORT_C CAknIndicatorPlugin* CAknIndicatorPlugin::NewL(
       
    33     const TUid& aImplementationUid )
       
    34     {
       
    35     // Get the instantiation
       
    36     return reinterpret_cast<CAknIndicatorPlugin*>(
       
    37         REComSession::CreateImplementationL(
       
    38             aImplementationUid,
       
    39             _FOFF( CAknIndicatorPlugin, iDtor_ID_Key ) ) );
       
    40     }
       
    41 
       
    42 
       
    43 // ----------------------------------------------------
       
    44 // Destructor
       
    45 // ----------------------------------------------------
       
    46 //
       
    47 EXPORT_C CAknIndicatorPlugin::~CAknIndicatorPlugin()
       
    48     {
       
    49     REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    50     }
       
    51 
       
    52 
       
    53 // ----------------------------------------------------
       
    54 // CAknIndicatorPlugin::TextL
       
    55 // ----------------------------------------------------
       
    56 //
       
    57 EXPORT_C HBufC* CAknIndicatorPlugin::TextL( const TInt /*aUid*/,
       
    58                                             TInt& aTextType )
       
    59     {
       
    60     aTextType = 0;
       
    61     return NULL;
       
    62     }
       
    63 
       
    64 
       
    65 // ----------------------------------------------------
       
    66 // CAknIndicatorPlugin::IconL
       
    67 // ----------------------------------------------------
       
    68 //
       
    69 EXPORT_C const CGulIcon* CAknIndicatorPlugin::IconL( const TInt /*aUid*/ )
       
    70     {
       
    71     return NULL;
       
    72     }
       
    73     
       
    74     
       
    75 // ----------------------------------------------------
       
    76 // CAknIndicatorPlugin::UpdateL
       
    77 // ----------------------------------------------------
       
    78 //
       
    79 EXPORT_C void CAknIndicatorPlugin::UpdateL( TInt aUid )
       
    80     {
       
    81     if ( iPluginObserver )
       
    82         {
       
    83         iPluginObserver->HandlePluginUpdateL( aUid );
       
    84         }
       
    85     }
       
    86 
       
    87 
       
    88 // ----------------------------------------------------
       
    89 // CAknIndicatorPlugin::SetPluginObserver
       
    90 // ----------------------------------------------------
       
    91 //    
       
    92 void CAknIndicatorPlugin::SetPluginObserver(
       
    93     CAknIndicatorPopupContent* aPluginObserver )
       
    94     {
       
    95     iPluginObserver = aPluginObserver;
       
    96     }
       
    97 
       
    98 //  End of File