dosservices/dosserver/src/dosservice.cpp
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 *    Implementation for the CDosService class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include <e32svr.h>
       
    21 #include "dosservice.h"
       
    22 #include "dosserver.h"
       
    23 
       
    24 //
       
    25 // ---------------------------------------------------------
       
    26 // CDosService::Write
       
    27 // ---------------------------------------------------------
       
    28 //  
       
    29 void CDosService::Write(const RMessage2& aMessage, const TInt& aIndex, const TDesC8& aDes) const
       
    30 //
       
    31 // Write and kill the client if it leaves.
       
    32 //
       
    33 {
       
    34 	TInt ret(0);
       
    35 
       
    36 	TRAP(ret, aMessage.WriteL(aIndex, aDes));
       
    37 	if (ret!=KErrNone)
       
    38 	{
       
    39 		PanicClient(aMessage,EPanicBadDescriptor);
       
    40 	}
       
    41 }
       
    42 
       
    43