uifw/AvKon/notifsrc/AknPopupNotify.cpp
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2002-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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #include "AknPopupNotify.h"
       
    19 #include <AknNotifyStd.h>
       
    20 
       
    21 EXPORT_C CAknPopupNotify* CAknPopupNotify::NewL()
       
    22     {
       
    23     CAknPopupNotify* self = NewLC();
       
    24     CleanupStack::Pop();    // self
       
    25     return self;
       
    26     }
       
    27 
       
    28 EXPORT_C CAknPopupNotify* CAknPopupNotify::NewLC()
       
    29     {
       
    30     CAknPopupNotify* self = new(ELeave) CAknPopupNotify;
       
    31     CleanupStack::PushL(self);
       
    32     self->ConstructL();
       
    33     return self;
       
    34     }
       
    35 
       
    36 EXPORT_C CAknPopupNotify::~CAknPopupNotify()
       
    37     {
       
    38     }
       
    39 
       
    40 CAknPopupNotify::CAknPopupNotify() : CAknNotifyBase(KAknPopupNotifierUid)
       
    41     {
       
    42     }
       
    43 
       
    44 void CAknPopupNotify::ConstructL()
       
    45     {
       
    46     CAknNotifyBase::ConstructL();
       
    47     }
       
    48 
       
    49 EXPORT_C void CAknPopupNotify::PopupMessageL(const TDesC& aMessage)
       
    50     {
       
    51     TBuf8<1> resp;
       
    52     StartOrUpdateL(TPtrC8(reinterpret_cast<const TText8*>(aMessage.Ptr()), aMessage.Size()), resp);
       
    53     }
       
    54 
       
    55 EXPORT_C void CAknPopupNotify::CAknNotifyBase_Reserved()
       
    56     {
       
    57     }
       
    58 
       
    59 // End of File