email_pub/email_widget_api/tsrc/3rdpartyapitestplugin2/src/applaunchdataimpl.cpp
branchRCL_3
changeset 8 e1b6206813b4
equal deleted inserted replaced
4:e7aa27f58ae1 8:e1b6206813b4
       
     1 /*
       
     2 * Copyright (c) 2009 - 2010 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:  3rd party api testplugin app launcher data
       
    15 *
       
    16 */
       
    17 
       
    18 #include "applaunchdataimpl.h"
       
    19 
       
    20 // ---------------------------------------------------------
       
    21 // ---------------------------------------------------------
       
    22 CAppLaunchDataImpl* CAppLaunchDataImpl::NewL( TUid aAppUid, TUid aViewUid )
       
    23     {
       
    24     CAppLaunchDataImpl* self = new(ELeave) CAppLaunchDataImpl( aAppUid, aViewUid );
       
    25     CleanupStack::PushL( self );
       
    26     self->ConstructL();
       
    27     CleanupStack::Pop( self );
       
    28     return self;
       
    29     }
       
    30 
       
    31 // ---------------------------------------------------------
       
    32 // ---------------------------------------------------------
       
    33 CAppLaunchDataImpl::~CAppLaunchDataImpl()
       
    34     {
       
    35     delete iCustomMessage;
       
    36     }
       
    37 
       
    38 // ---------------------------------------------------------
       
    39 // ---------------------------------------------------------
       
    40 CAppLaunchDataImpl::CAppLaunchDataImpl( TUid aAppUid, TUid aViewUid ) : 
       
    41     iAppUid( aAppUid ), iViewUid( aViewUid ), iCustMsgUid( TUid() ), iCustomMessage( NULL )
       
    42     {
       
    43     }
       
    44 
       
    45 // ---------------------------------------------------------
       
    46 // ---------------------------------------------------------
       
    47 void CAppLaunchDataImpl::ConstructL()
       
    48     {
       
    49     iCustomMessage = HBufC8::NewL(1);
       
    50     }
       
    51 
       
    52 // ---------------------------------------------------------
       
    53 // ---------------------------------------------------------
       
    54 TUid CAppLaunchDataImpl::ApplicationUid() const
       
    55     {
       
    56     return iAppUid;
       
    57     }
       
    58 
       
    59 // ---------------------------------------------------------
       
    60 // ---------------------------------------------------------
       
    61 TUid CAppLaunchDataImpl::ViewId() const
       
    62     {
       
    63     return iViewUid;
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------
       
    67 // ---------------------------------------------------------
       
    68 TUid CAppLaunchDataImpl::CustomMessageId() const
       
    69     {
       
    70     return iCustMsgUid;
       
    71     }
       
    72 
       
    73 // ---------------------------------------------------------
       
    74 // ---------------------------------------------------------
       
    75 const TDesC8& CAppLaunchDataImpl::CustomMessage() const
       
    76     {
       
    77     return *iCustomMessage;
       
    78     }