posmsgpluginreferenceimpl/src/epos_comasuplposhandler.cpp
changeset 43 e71858845f73
parent 40 b7e5ed8c1342
child 46 e1758cbb96ac
equal deleted inserted replaced
40:b7e5ed8c1342 43:e71858845f73
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  Provides the reference implementation for the POS message 
       
    15 *                plugin
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #include <ecom/ecom.h>
       
    22 #include "epos_comasuplposhandler.h"
       
    23 #include "epos_comasuplpossession.h"
       
    24 
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // COMASuplPosHandler::NewL
       
    28 // Factory function to instantiate an object of COMASuplPosHandler
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 COMASuplPosHandlerBase* COMASuplPosHandler::NewL()
       
    32     {
       
    33     return new ( ELeave ) COMASuplPosHandler;
       
    34     }
       
    35     
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // COMASuplPosHandler::~COMASuplPosHandler
       
    39 // Destructor
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 COMASuplPosHandler::~COMASuplPosHandler()
       
    43     {
       
    44     }
       
    45     
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // COMASuplPosHandler::InitializeL
       
    49 // Initializes the instance of COMASuplPosHandler
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 void COMASuplPosHandler::InitializeL( TRequestStatus& aStatus )
       
    53     {
       
    54     // Initialization operations to be done
       
    55     TRequestStatus* status = &aStatus;
       
    56     User::RequestComplete( status, KErrNone );
       
    57     }
       
    58     
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // COMASuplPosHandler::CancelInitialize
       
    62 // Cancels an outstanding request to initialize
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 void COMASuplPosHandler::CancelInitialize()
       
    66     {
       
    67     
       
    68     }
       
    69     
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // COMASuplPosHandler::CreateNewSessionL
       
    73 // Factory function to create a new instance of COMASuplPosSession
       
    74 // -----------------------------------------------------------------------------
       
    75 //
       
    76 COMASuplPosSessionBase* COMASuplPosHandler::CreateNewSessionL( 
       
    77                                 MOMASuplObserver* aSuplObserver )
       
    78     {
       
    79     return COMASuplPosSession::NewL( aSuplObserver );
       
    80     }
       
    81     
       
    82 
       
    83 // -----------------------------------------------------------------------------
       
    84 // COMASuplPosHandler::COMASuplPosHandler
       
    85 // Constructor
       
    86 // -----------------------------------------------------------------------------
       
    87 //
       
    88 COMASuplPosHandler::COMASuplPosHandler():COMASuplPosHandlerBase()
       
    89     {
       
    90 
       
    91     }