testexecmgmt/ucc/Source/Uccs.v2/ServiceStubs/UuInterface/CCUuinterface.h
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CCUUINTERFACE_H__
       
    22 #define __CCUUINTERFACE_H__
       
    23 
       
    24 
       
    25 /****************************************************************************************
       
    26  * 
       
    27  * System Includes
       
    28  * 
       
    29  ***************************************************************************************/
       
    30 #include <rpc/rpc.h>
       
    31 #include <string>
       
    32 using namespace std;
       
    33 #include "uuinterface.h"
       
    34 
       
    35 
       
    36 /****************************************************************************************
       
    37  * 
       
    38  * Definition: CCUuinterface
       
    39  * 
       
    40  ***************************************************************************************/
       
    41 class CCUuinterface
       
    42 {
       
    43 public:
       
    44 	// standard methods
       
    45 	CCUuinterface();
       
    46 	~CCUuinterface();
       
    47 	int Connect( string aRemoteHost );
       
    48 	int Disconnect();
       
    49 	char *GetLastRPCError( int *aIntErr );
       
    50 
       
    51 	// service methods
       
    52 	int ss_startuprpcservice( TStartupInfo aArgs, int *rv );
       
    53 	int sc_shutdownrpcservice( int aArgs, int *rv );
       
    54 	int list_devices( TComponentList *rv );
       
    55 	int st_setdelay( TConfigValue aArgs, TResult *rv );
       
    56 	int st_setdroppercentage( TConfigValue aArgs, TResult *rv );
       
    57 	int st_setduplicatepercentage( TConfigValue aArgs, TResult *rv );
       
    58 	int st_setbandwidth( TConfigValue aArgs, TResult *rv );
       
    59 	int st_setdrd( TConfigValue aArgs, TResult *rv );
       
    60 	int st_clearsettings( TConfigValue aArgs, TResult *rv );
       
    61 	int st_stopservice( TResult *rv );
       
    62 	int st_reset( TResult *rv );
       
    63 
       
    64 private:
       
    65 	struct rpc_err iLastRPCError;
       
    66 	CLIENT *cl;
       
    67 };
       
    68 
       
    69 #endif