testexecmgmt/ucc/Source/hacontroller/CSHacontroller.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 * This file was autogenerated by rpcgen, but should be modified by the developer.
       
    16 * Make sure you don't use the -component_mod flag in future or this file will be overwritten.
       
    17 * Fri Oct 10 17:55:34 2003
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef __CSHACONTROLLER_H__
       
    25 #define __CSHACONTROLLER_H__
       
    26 
       
    27 
       
    28 /****************************************************************************************
       
    29  * 
       
    30  * Local Includes
       
    31  * 
       
    32  ***************************************************************************************/
       
    33 #include "../include/standard_unix.h"
       
    34 #include "../DynamicsConfigurationLibrary/CDynamicsConfigFile.h"
       
    35 #include "../ProcessLibrary/proclib.h"
       
    36 #include "../AliasLibrary/CInterfaceAlias.h"
       
    37 #include "../IntegerAllocatorLibrary/CIntegerAllocator.h"
       
    38 #include "../DynamicsCommandWrapper/CDynamicsCommand.h"
       
    39 #include "hacontroller.h"
       
    40 
       
    41 
       
    42 /****************************************************************************************
       
    43  * 
       
    44  * Definition: CSHacontroller
       
    45  * 
       
    46  ***************************************************************************************/
       
    47 class CSHacontroller
       
    48 {
       
    49 public:
       
    50 	// Standard Methods
       
    51 	CSHacontroller();
       
    52 	~CSHacontroller();
       
    53 	int GetKey();
       
    54 	void SetKey( int aKey );
       
    55 
       
    56 	// RPC Service Methods
       
    57 	TResult cstr_createagent( void );
       
    58 	TResult dstr_removeagent( int aArgs, int *aDeleteInstance );
       
    59 	TResult startmobileagent( int aArgs );
       
    60 	TResult stopmobileagent( int aArgs );
       
    61 	TResult getmobileagentstatus( int aArgs );
       
    62 	TResult setsingleoption( TOptionDesc aArgs );
       
    63 	TResult removesingleoption( TOptionDesc aArgs );
       
    64 	TResult addlistoption( TOptionDesc aArgs );
       
    65 	TResult removelistoption( TOptionDesc aArgs );
       
    66 	THaStatus getstatus( int aArgs );
       
    67 	TResult destroytunnelid( THaTunnelID aArgs );
       
    68 	THaTunnelList listtunnels( int aArgs );
       
    69 	THaTunnelInfo gettunnelinfo( TGetTunnelRequest aArgs );
       
    70 	void settimeout( TTimeoutRequest aArgs );
       
    71 
       
    72 private:
       
    73 	TResult CreateDynamicsConfigFile();
       
    74 	TResult RemoveDynamicsConfigFile();
       
    75 	TResult CreateAliasInterface();
       
    76 	TResult RemoveAliasInterface();
       
    77 	TResult CreateVirtualNetwork();
       
    78 	TResult RemoveVirtualNetwork();
       
    79 
       
    80 	TResult is_agent_running();
       
    81 	void set_dynamics_error( TResult *result, TDynamicsCallInfo *cres );
       
    82 
       
    83 private:
       
    84 	int iKey;
       
    85 	int iDynamicsCallTimeout;
       
    86 	int iAliasHostAddress, iAliasInterfaceIndex;
       
    87 	string iAliasInterfaceAddress;
       
    88 	int iVirtualNetworkSegmentAddress;
       
    89 	int iVirtualNetworkSegmentSize;
       
    90 	int iVirtualNetworkSegmentNetmaskBitcount;
       
    91 
       
    92 	CDynamicsConfigFile iDynamicsConfigFile;
       
    93 	CAProcess *iAgentProcess;
       
    94 	CInterfaceAlias iAgentInterface;
       
    95 	CDynamicsCommand iDynamicsCommand;
       
    96 };
       
    97 
       
    98 #endif