|
1 // Copyright (c) 2005-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 #include "csendaseikeditutils.h" |
|
17 |
|
18 #include <mturutils.h> |
|
19 #include <ecom/implementationproxy.h> |
|
20 |
|
21 const TImplementationProxy ImplementationTable[] = |
|
22 { |
|
23 IMPLEMENTATION_PROXY_ENTRY(0x1020806C, CSendAsEikEditUtils::NewL) |
|
24 }; |
|
25 |
|
26 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
27 { |
|
28 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
29 |
|
30 return ImplementationTable; |
|
31 } |
|
32 |
|
33 CSendAsEikEditUtils* CSendAsEikEditUtils::NewL() |
|
34 { |
|
35 CSendAsEikEditUtils* self = new (ELeave) CSendAsEikEditUtils(); |
|
36 return self; |
|
37 } |
|
38 |
|
39 CSendAsEikEditUtils::CSendAsEikEditUtils() |
|
40 : CSendAsEditUtils() |
|
41 { |
|
42 } |
|
43 |
|
44 CSendAsEikEditUtils::~CSendAsEikEditUtils() |
|
45 { |
|
46 iThread.Close(); |
|
47 } |
|
48 |
|
49 // methods from CSendAsEditUtils |
|
50 |
|
51 void CSendAsEikEditUtils::LaunchEditorL(TMsvId aId, TRequestStatus& aStatus) |
|
52 { |
|
53 MturUtils::LaunchEditorL(aId, iThread, aStatus); |
|
54 } |
|
55 |
|
56 void CSendAsEikEditUtils::LaunchEditorAndWaitL(TMsvId aId) |
|
57 { |
|
58 MturUtils::LaunchEditorAndWaitL(aId); |
|
59 } |
|
60 |
|
61 void CSendAsEikEditUtils::Cancel() |
|
62 { |
|
63 iThread.Kill(KErrServerTerminated); |
|
64 } |