equal
deleted
inserted
replaced
|
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 __CCHOSTEXECUTE_H__ |
|
22 #define __CCHOSTEXECUTE_H__ |
|
23 |
|
24 |
|
25 /**************************************************************************************** |
|
26 * |
|
27 * System Includes |
|
28 * |
|
29 ***************************************************************************************/ |
|
30 #include <rpc/rpc.h> |
|
31 #include <string> |
|
32 using namespace std; |
|
33 #include "hostexecute.h" |
|
34 |
|
35 |
|
36 /**************************************************************************************** |
|
37 * |
|
38 * Definition: CCHostexecute |
|
39 * |
|
40 ***************************************************************************************/ |
|
41 class CCHostexecute |
|
42 { |
|
43 public: |
|
44 // standard methods |
|
45 CCHostexecute(); |
|
46 ~CCHostexecute(); |
|
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_executecommand( TExecuteRequest aArgs, TExecuteResult *rv ); |
|
56 |
|
57 private: |
|
58 struct rpc_err iLastRPCError; |
|
59 CLIENT *cl; |
|
60 }; |
|
61 |
|
62 #endif |