eventsui/eventshandlerui/eventshandlerapp/src/evtrequest.cpp
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2008 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:  Container for Request and Type.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // System Includes
       
    20 
       
    21 // User Includes
       
    22 #include "evtrequest.h"
       
    23 
       
    24 // ================ Member funtions for CEvtRequest class ======================
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // CEvtRequest::CEvtRequest
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 CEvtRequest::CEvtRequest():
       
    31 	iEvent( NULL )
       
    32     {    
       
    33     }
       
    34     
       
    35 // ---------------------------------------------------------------------------
       
    36 // CEvtRequest::~CEvtRequest
       
    37 // ---------------------------------------------------------------------------
       
    38 //
       
    39 CEvtRequest::~CEvtRequest()
       
    40     {
       
    41     delete iEvent;
       
    42     } 
       
    43     
       
    44 // ---------------------------------------------------------------------------
       
    45 // CEvtRequest::NewL
       
    46 // ---------------------------------------------------------------------------
       
    47 //
       
    48 EXPORT_C CEvtRequest* CEvtRequest::NewL()
       
    49     {
       
    50 	CEvtRequest* self = NewLC( );
       
    51 	CleanupStack::Pop( self );
       
    52 	return self;
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // CEvtRequest::NewLC
       
    57 // ---------------------------------------------------------------------------
       
    58 //
       
    59 EXPORT_C CEvtRequest* CEvtRequest::NewLC()
       
    60     {
       
    61 	CEvtRequest* self = new ( ELeave )CEvtRequest( );
       
    62 	CleanupStack::PushL( self );
       
    63 	self->ConstructL( );
       
    64 	return self;
       
    65     } 
       
    66 
       
    67 // ---------------------------------------------------------------------------
       
    68 // CEvtRequest::ConstructL
       
    69 // ---------------------------------------------------------------------------
       
    70 //
       
    71 EXPORT_C void CEvtRequest::ConstructL()
       
    72     {
       
    73     }
       
    74     
       
    75 // ---------------------------------------------------------------------------
       
    76 // CEvtRequest::Action
       
    77 // ---------------------------------------------------------------------------
       
    78 //
       
    79 CEvtEvent& CEvtRequest::Event()
       
    80     {
       
    81     return *iEvent;
       
    82     } 
       
    83     
       
    84 // ---------------------------------------------------------------------------
       
    85 // CEvtRequest::SetActionL
       
    86 // ---------------------------------------------------------------------------
       
    87 //
       
    88 void CEvtRequest::SetEventL( CEvtEvent* aEvent )
       
    89     {
       
    90     iEvent = aEvent;
       
    91     } 
       
    92     
       
    93 // ---------------------------------------------------------------------------
       
    94 // CEvtRequest::EventId
       
    95 // ---------------------------------------------------------------------------
       
    96 //
       
    97 EXPORT_C TEvtRequestType CEvtRequest::RequestType() const
       
    98     {
       
    99     return iRequestType;
       
   100     } 
       
   101     
       
   102 // ---------------------------------------------------------------------------
       
   103 // CEvtRequest::SetEventId
       
   104 // ---------------------------------------------------------------------------
       
   105 //
       
   106 EXPORT_C void CEvtRequest::SetRequestType( const TEvtRequestType aRequestType )
       
   107     {
       
   108     iRequestType = aRequestType;
       
   109     } 
       
   110 
       
   111 // End of File