|
1 // Copyright (c) 2008-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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 @released |
|
20 */ |
|
21 |
|
22 #include "cmdrendezvouswithestart.h" |
|
23 #include "ssmdebug.h" |
|
24 |
|
25 |
|
26 /** |
|
27 * Constructs and returns a new custom command, leaving on errors. |
|
28 * |
|
29 * @internalComponent |
|
30 */ |
|
31 CCustomCmdRendezvousWithEStart* CCustomCmdRendezvousWithEStart::NewL() |
|
32 { |
|
33 CCustomCmdRendezvousWithEStart* self = new (ELeave) CCustomCmdRendezvousWithEStart(); |
|
34 return self; |
|
35 } |
|
36 |
|
37 CCustomCmdRendezvousWithEStart::CCustomCmdRendezvousWithEStart() |
|
38 { |
|
39 |
|
40 } |
|
41 |
|
42 CCustomCmdRendezvousWithEStart::~CCustomCmdRendezvousWithEStart() |
|
43 { |
|
44 } |
|
45 |
|
46 /** |
|
47 * Initializes this custom command. |
|
48 * |
|
49 * @internalComponent |
|
50 */ |
|
51 TInt CCustomCmdRendezvousWithEStart::Initialize(CSsmCustomCommandEnv* /*aCmdEnv*/) |
|
52 { |
|
53 return KErrNone; |
|
54 } |
|
55 |
|
56 /** |
|
57 * Destory this object and any resources allocated to it. |
|
58 * |
|
59 * @internalComponent |
|
60 */ |
|
61 void CCustomCmdRendezvousWithEStart::Close() |
|
62 { |
|
63 } |
|
64 |
|
65 void CCustomCmdRendezvousWithEStart::Release() |
|
66 { |
|
67 delete this; |
|
68 } |
|
69 |
|
70 /** |
|
71 * Issues the required rendezvous. |
|
72 * |
|
73 * @internalComponent |
|
74 */ |
|
75 void CCustomCmdRendezvousWithEStart::Execute(const TDesC8& /*aParams*/, TRequestStatus& aStatus) |
|
76 { |
|
77 RProcess::Rendezvous(KErrNone); |
|
78 |
|
79 aStatus = KRequestPending; |
|
80 TRequestStatus* statusPtr = &aStatus; |
|
81 User::RequestComplete(statusPtr, KErrNone); |
|
82 } |
|
83 |
|
84 /** |
|
85 * Cancels the requested execute |
|
86 * |
|
87 * @internalComponent |
|
88 */ |
|
89 void CCustomCmdRendezvousWithEStart::ExecuteCancel() |
|
90 { |
|
91 // Nothing to do as request already completed in Execute() |
|
92 } |