javacommons/comms/ipclib/clientserver/src.s60/rcomms.h
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     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: Wrapper for low level Symbian IPC methods
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef RCOMMS_H
       
    19 #define RCOMMS_H
       
    20 
       
    21 namespace java
       
    22 {
       
    23 namespace comms
       
    24 {
       
    25 
       
    26 NONSHARABLE_CLASS(RComms): public RSessionBase
       
    27 {
       
    28 public:
       
    29     TInt Connect(const TDesC& aName);
       
    30     void Disconnect();
       
    31     TInt Send(const TDesC8& aData);
       
    32     void Receive(RBuf8& aBuffer, TPckgBuf<TInt>& aRequiredSize, TRequestStatus& aStatus);
       
    33     void CancelReceive();
       
    34 };
       
    35 
       
    36 } // namespace comms
       
    37 } // namespace java
       
    38 
       
    39 #endif // RCOMMS_H