srsf/nssvasapi/nssvasrecognition/src/nssvascselectnotificationbuilder.cpp
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2003 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:  The CNssSelectNotificationBuilder class performs initialization 
       
    15 *                for the CNssTagSelectNotification class. 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 #include "nssvascselectnotificationbuilder.h"
       
    23 #include "nssvasctagselectnotification.h"
       
    24 
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CNssSelectNotificationBuilder::NewL
       
    30 // Two-phased constructor.
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 EXPORT_C CNssSelectNotificationBuilder* CNssSelectNotificationBuilder::NewL()
       
    34 {
       
    35 	// version of NewLC which leaves nothing on the cleanup stack
       
    36 	CNssSelectNotificationBuilder* self=NewLC();
       
    37 	CleanupStack::Pop(self);
       
    38     return self;
       
    39 }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 // CNssRecognitionHandlerBuilder::NewLC
       
    43 // Two-phased constructor.
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 EXPORT_C CNssSelectNotificationBuilder* CNssSelectNotificationBuilder::NewLC()
       
    47 {
       
    48     CNssSelectNotificationBuilder* self=new (ELeave) CNssSelectNotificationBuilder();
       
    49     CleanupStack::PushL(self);
       
    50     return self;
       
    51 }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CNssSelectNotificationBuilder::~CNssSelectNotificationBuilder
       
    55 // Destructor
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 CNssSelectNotificationBuilder::~CNssSelectNotificationBuilder()
       
    59 {
       
    60 	delete iTagSelectNotification;
       
    61 }
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // CNssSelectNotificationBuilder::InitializeL
       
    65 // Initialize Tag Select Notification
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 EXPORT_C void CNssSelectNotificationBuilder::InitializeL()
       
    69 {
       
    70 	iTagSelectNotification = CNssTagSelectNotification::NewL();
       
    71 }
       
    72 
       
    73 // -----------------------------------------------------------------------------
       
    74 // CNssSelectNotificationBuilder::GetTagSelectNotification
       
    75 // Get a Pointer to CNssTagSelectNotification
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 EXPORT_C MNssTagSelectNotification* 
       
    79 			              CNssSelectNotificationBuilder::GetTagSelectNotification()
       
    80 {
       
    81 	return iTagSelectNotification;
       
    82 }
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // CNssSelectNotificationBuilder::CNssSelectNotificationBuilder
       
    86 // C++ default constructor can NOT contain any code, that
       
    87 // might leave.
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 CNssSelectNotificationBuilder::CNssSelectNotificationBuilder()
       
    91 {
       
    92 }