testexecmgmt/ucc/Source/Uccs.v2/ServiceStubs/Mobster.v2/CCMobster.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 __CCMOBSTER_H__
       
    22 #define __CCMOBSTER_H__
       
    23 
       
    24 
       
    25 /****************************************************************************************
       
    26  * 
       
    27  * System Includes
       
    28  * 
       
    29  ***************************************************************************************/
       
    30 #include <rpc/rpc.h>
       
    31 #include <string>
       
    32 using namespace std;
       
    33 #include "mobster.h"
       
    34 
       
    35 
       
    36 /****************************************************************************************
       
    37  * 
       
    38  * Definition: CCMobster
       
    39  * 
       
    40  ***************************************************************************************/
       
    41 class CCMobster
       
    42 {
       
    43 public:
       
    44 	// standard methods
       
    45 	CCMobster();
       
    46 	~CCMobster();
       
    47 	int Connect( string aRemoteHost );
       
    48 	int Disconnect();
       
    49 	char *GetLastRPCError( int *aIntErr );
       
    50 
       
    51 	// service methods
       
    52 	int ss_startuprpcservice( struct TChannelAddress aArgs, int *rv );
       
    53 	int sc_shutdownrpcservice( int aArgs, int *rv );
       
    54 	int list_devices( TComponentList *rv );
       
    55 	int cstr_startdevice( TDeviceDesc aArgs, int *rv );
       
    56 	int dstr_removedevice( int aArgs, int *rv );
       
    57 	int getdeviceinfo( int aArgs, TDeviceDesc *rv );
       
    58 	int getdevicelog( int aArgs, TVarData *rv );
       
    59 	int stopdevice( int aArgs, int *rv );
       
    60 	int setremoteuuaddress( struct TUUAddress aArgs, int *rv );
       
    61 
       
    62 private:
       
    63 	struct rpc_err iLastRPCError;
       
    64 	CLIENT *cl;
       
    65 };
       
    66 
       
    67 #endif