javacommons/utils/functionserver/inc.s60/os_functionclient.h
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef OS_FUNCTIONCLIENT_H
       
    20 #define OS_FUNCTIONCLIENT_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <string>
       
    24 
       
    25 #include "functionserver.h"
       
    26 class Functor;
       
    27 
       
    28 namespace java
       
    29 {
       
    30 namespace util
       
    31 {
       
    32 
       
    33 class FunctionServer;
       
    34 class OsFunctionServer;
       
    35 
       
    36 NONSHARABLE_CLASS(OsFunctionClient) : public RSessionBase
       
    37 {
       
    38 public:
       
    39     int connect(const OsFunctionServer& server);
       
    40     TInt execute(const Functor& functor) const;
       
    41     TInt sendCloseMessage(FunctionServer* server) const;
       
    42 
       
    43     OsFunctionClient();
       
    44     virtual ~OsFunctionClient();
       
    45 
       
    46 private:
       
    47     HBufC* mServerName;
       
    48     mutable RFastLock mLock;
       
    49 };
       
    50 
       
    51 } //end namespace util
       
    52 } //end namespace java
       
    53 #endif // OS_FUNCTIONCLIENT_H
       
    54