idlehomescreen/nativeuicontroller/inc/ainotifierrenderer.h
changeset 0 f72a12da539e
child 9 f966699dea19
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     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:  Soft notifier renderer.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AISOFTNOTIFERRENDERER_H
       
    20 #define C_AISOFTNOTIFERRENDERER_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "ainativerenderer.h"
       
    25 #include <AknSoftNotifier.h>
       
    26 
       
    27 class CAknSoftNotifier;
       
    28 
       
    29 namespace AiNativeUiController
       
    30 {
       
    31 
       
    32 /**
       
    33  *  Dialog renderer.
       
    34  *
       
    35  *  Used to show CAknSoftNotifier on screen.
       
    36  *
       
    37  *  @since S60 3.2
       
    38  */
       
    39 class CAiNotifierRenderer : public CAiNativeRenderer
       
    40     {
       
    41 public:
       
    42 
       
    43     static CAiNotifierRenderer* NewLC();
       
    44 
       
    45     virtual ~CAiNotifierRenderer();
       
    46 
       
    47 // from base class CAiNativeRenderer
       
    48 
       
    49     void DoPublishL( MAiPropertyExtension& aPlugin, TInt aContent, TInt aResource, TInt aIndex );
       
    50 
       
    51     void DoCleanL( MAiPropertyExtension& aPlugin, TInt aContent );
       
    52 
       
    53 private:
       
    54 
       
    55     /**
       
    56      * Add a notification
       
    57      */
       
    58     void AddNotification( TAknSoftNotificationType aType );
       
    59 
       
    60     /**
       
    61      * Remove a notification
       
    62      */
       
    63     void RemoveNotification( TAknSoftNotificationType aType );
       
    64 
       
    65     void ConstructL();
       
    66 
       
    67     static TInt NWLostDelayCallBack(TAny* aParam);
       
    68 
       
    69     CAiNotifierRenderer();
       
    70 
       
    71 private: // data
       
    72 
       
    73     /**
       
    74      * Notifier service
       
    75      * Own
       
    76      */
       
    77     CAknSoftNotifier* iSoftNotifier;
       
    78 
       
    79     /**
       
    80      * Timer to delay the showing of the notification if needed
       
    81      * Own
       
    82      */
       
    83     CPeriodic *iTimer;
       
    84     };
       
    85 
       
    86 } // namespace AiNativeUiController
       
    87 
       
    88 #endif // C_AISOFTNOTIFERRENDERER_H