dosservices/dosserver/inc/dossession.inl
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2002 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 *    This file contains the inline functions defined in DosSession.h
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 //
       
    21 // ---------------------------------------------------------
       
    22 // CDosSession::Server
       
    23 // ---------------------------------------------------------
       
    24 //  
       
    25 inline CDosServer& CDosSession::Server() const
       
    26 {
       
    27 	return *static_cast<CDosServer*>(const_cast<CServer2*>(CSession2::Server()));
       
    28 }
       
    29 
       
    30 //
       
    31 // ---------------------------------------------------------
       
    32 // CDosSession::ServiceFromHandle
       
    33 // ---------------------------------------------------------
       
    34 //  
       
    35 inline CDosService* CDosSession::ServiceFromHandle(const TInt aHandle) const
       
    36 {
       
    37 	return (CDosService*)iServices->At(aHandle); 
       
    38 }
       
    39