process.hxx (86e1cf34) process.hxx (d98e0520)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 16 unchanged lines hidden (view full) ---

25#define _VOS_PROCESS_HXX_
26
27# include <rtl/ustring.hxx>
28# include <vos/mutex.hxx>
29# include <vos/security.hxx>
30# include <vos/object.hxx>
31# include <vos/socket.hxx>
32# include <osl/process.h>
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 16 unchanged lines hidden (view full) ---

25#define _VOS_PROCESS_HXX_
26
27# include <rtl/ustring.hxx>
28# include <vos/mutex.hxx>
29# include <vos/security.hxx>
30# include <vos/object.hxx>
31# include <vos/socket.hxx>
32# include <osl/process.h>
33# include <vos/vosdllapi.h>
33
34namespace vos
35{
36
37class OProcess;
38
39/** helper class to fill a vector of command line arguments
40 */
34
35namespace vos
36{
37
38class OProcess;
39
40/** helper class to fill a vector of command line arguments
41 */
41class OArgumentList
42class VOS_DLLPUBLIC OArgumentList
42{
43 sal_uInt32 n_Args;
44 rtl_uString** m_aVec;
45
46public:
47
48 OArgumentList();
49 OArgumentList( sal_uInt32 nArgs, const ::rtl::OUString* aArgument1, ... );

--- 6 unchanged lines hidden (view full) ---

56
57 virtual ~OArgumentList();
58
59 friend class OProcess;
60};
61
62/** helper class to fill a vector of environment settings
63 */
43{
44 sal_uInt32 n_Args;
45 rtl_uString** m_aVec;
46
47public:
48
49 OArgumentList();
50 OArgumentList( sal_uInt32 nArgs, const ::rtl::OUString* aArgument1, ... );

--- 6 unchanged lines hidden (view full) ---

57
58 virtual ~OArgumentList();
59
60 friend class OProcess;
61};
62
63/** helper class to fill a vector of environment settings
64 */
64class OEnvironment
65class VOS_DLLPUBLIC OEnvironment
65{
66 sal_Int32 n_Vars;
67 rtl_uString** m_aVec;
68
69public:
70
71 OEnvironment();
72 OEnvironment( sal_Int32 nVars, const ::rtl::OUString* aVariable1, ... );

--- 13 unchanged lines hidden (view full) ---

86/** startup child processes.
87 @see OStartupInfo
88 Used for starting an monitoring child processes with special features:
89 <ul><li>setting environments,
90 <li>setting working directories,
91 <li>setting user rights and security,
92 <li>providing ioresources like file descriptors and sockets.</ul>
93*/
66{
67 sal_Int32 n_Vars;
68 rtl_uString** m_aVec;
69
70public:
71
72 OEnvironment();
73 OEnvironment( sal_Int32 nVars, const ::rtl::OUString* aVariable1, ... );

--- 13 unchanged lines hidden (view full) ---

87/** startup child processes.
88 @see OStartupInfo
89 Used for starting an monitoring child processes with special features:
90 <ul><li>setting environments,
91 <li>setting working directories,
92 <li>setting user rights and security,
93 <li>providing ioresources like file descriptors and sockets.</ul>
94*/
94class OProcess : public OObject
95class VOS_DLLPUBLIC OProcess : public OObject
95{
96 VOS_DECLARE_CLASSINFO(VOS_NAMESPACE(OProcess, vos));
97
98public:
99
100 /** Options for execution mode:
101 */
102 enum TProcessOption

--- 110 unchanged lines hidden (view full) ---

213 oslProcess m_Process;
214};
215
216/** informations for client processes provided by the parent.
217 @see OProcess
218*/
219
220
96{
97 VOS_DECLARE_CLASSINFO(VOS_NAMESPACE(OProcess, vos));
98
99public:
100
101 /** Options for execution mode:
102 */
103 enum TProcessOption

--- 110 unchanged lines hidden (view full) ---

214 oslProcess m_Process;
215};
216
217/** informations for client processes provided by the parent.
218 @see OProcess
219*/
220
221
221class OStartupInfo : public OObject
222class VOS_DLLPUBLIC OStartupInfo : public OObject
222{
223 VOS_DECLARE_CLASSINFO(VOS_NAMESPACE(OStartupInfo, vos));
224
225public:
226 /** Errorcodes:
227 */
228 enum TStartupError {
229 E_None = osl_Process_E_None, /* no error */

--- 42 unchanged lines hidden (view full) ---

272 (filename must be in our UNC notation!)
273 enumeration starts with 0 (i.e. argv[1])
274 each line in the file will be treated as one argument
275 @see also OProcess and OStartupInfo
276*/
277
278class OExtCommandLineImpl;
279
223{
224 VOS_DECLARE_CLASSINFO(VOS_NAMESPACE(OStartupInfo, vos));
225
226public:
227 /** Errorcodes:
228 */
229 enum TStartupError {
230 E_None = osl_Process_E_None, /* no error */

--- 42 unchanged lines hidden (view full) ---

273 (filename must be in our UNC notation!)
274 enumeration starts with 0 (i.e. argv[1])
275 each line in the file will be treated as one argument
276 @see also OProcess and OStartupInfo
277*/
278
279class OExtCommandLineImpl;
280
280class OExtCommandLine : public OObject
281class VOS_DLLPUBLIC OExtCommandLine : public OObject
281{
282 VOS_DECLARE_CLASSINFO(VOS_NAMESPACE(OExtCommandLine, vos));
283 static vos::OExtCommandLineImpl* pExtImpl;
284
285public:
286
287 /** Constructor.
288 */

--- 27 unchanged lines hidden ---
282{
283 VOS_DECLARE_CLASSINFO(VOS_NAMESPACE(OExtCommandLine, vos));
284 static vos::OExtCommandLineImpl* pExtImpl;
285
286public:
287
288 /** Constructor.
289 */

--- 27 unchanged lines hidden ---