|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // tprocessstartparams.h |
|
15 // |
|
16 // |
|
17 |
|
18 #include "tprocessstartparams.h" |
|
19 #include <e32math.h> |
|
20 |
|
21 /** Initialise start process parameters |
|
22 @internalTechnology |
|
23 @released |
|
24 */ |
|
25 TProcessStartParams::TProcessStartParams() : iRendezvousRequired(EFalse) |
|
26 { |
|
27 SetType(); |
|
28 } |
|
29 |
|
30 /** set the rendezous requirement |
|
31 |
|
32 @internalTechnology |
|
33 @released |
|
34 */ |
|
35 void TProcessStartParams::SetRendezvousRequired(TBool aRendezvousRequired) |
|
36 { |
|
37 iRendezvousRequired = aRendezvousRequired; |
|
38 } |
|
39 |
|
40 /** Get the rendezous requirement |
|
41 |
|
42 @return TBool, Rendezvous property |
|
43 @internalTechnology |
|
44 @released |
|
45 */ |
|
46 TBool TProcessStartParams::GetRendezvousRequired() const |
|
47 { |
|
48 return iRendezvousRequired; |
|
49 } |
|
50 |
|
51 /** set the process file name |
|
52 |
|
53 @param aExeName The process file name |
|
54 @internalTechnology |
|
55 @released |
|
56 */ |
|
57 void TProcessStartParams::SetProcessFileName(const TDesC& aExeName) |
|
58 { |
|
59 iProcessFileName = aExeName; |
|
60 } |
|
61 |
|
62 /** Set the process name |
|
63 |
|
64 @param aProcessName The process name |
|
65 @internalTechnology |
|
66 @released |
|
67 */ |
|
68 void TProcessStartParams::SetProcessName(const TDesC& aProcessName) |
|
69 { |
|
70 iProcessName = aProcessName; |
|
71 } |
|
72 |
|
73 /** Get the process file name |
|
74 |
|
75 @return The process file name |
|
76 @internalTechnology |
|
77 @released |
|
78 */ |
|
79 const TDesC& TProcessStartParams::GetProcessFileName() const |
|
80 { |
|
81 return iProcessFileName; |
|
82 } |
|
83 |
|
84 /** Get the process name |
|
85 |
|
86 @return The process name |
|
87 @internalTechnology |
|
88 @released |
|
89 */ |
|
90 const TDesC& TProcessStartParams::GetProcessName() const |
|
91 { |
|
92 return iProcessName; |
|
93 } |
|
94 |
|
95 /** Get the command line buffer |
|
96 |
|
97 @return The descriptor to the commandline buffer |
|
98 @internalTechnology |
|
99 @released |
|
100 */ |
|
101 TPtrC TProcessStartParams::GetAsCommandLine() const |
|
102 { |
|
103 TPtrC p(reinterpret_cast<const TText*>(this), sizeof(TProcessStartParams)/sizeof(TText)); |
|
104 return p; |
|
105 } |
|
106 |
|
107 /** |
|
108 Fix the type of these params to KProcessStartParamsTypeUid |
|
109 |
|
110 @internalTechnology |
|
111 @released |
|
112 */ |
|
113 void TProcessStartParams::SetType() |
|
114 { |
|
115 TStartParamsBase::SetType(KProcessStartParamsTypeUid); |
|
116 } |