equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-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 "SENDAS2MTM.H" |
|
17 |
|
18 |
|
19 TInt CSendMtm::QueryCapability(TUid aCapability, TInt& /*aResponse*/) |
|
20 { |
|
21 TInt ret; |
|
22 switch (aCapability.iUid) |
|
23 { |
|
24 // supported |
|
25 case KUidMtmQueryCanReceiveMsgValue: |
|
26 case KUidMtmQuerySupportAttachmentsValue: |
|
27 ret=KErrNone; |
|
28 break; |
|
29 // not supported |
|
30 case KUidMtmQuerySendAsMessageSendSupportValue: // can't send with sendas2 |
|
31 case KUidMtmQuerySupportsRecipientTypeValue: |
|
32 case KUidMtmQueryCanSendMsgValue: |
|
33 case KUidMtmQueryOffLineAllowedValue: |
|
34 default: |
|
35 ret=KErrNotSupported; |
|
36 break; |
|
37 } |
|
38 return ret; |
|
39 } |
|
40 |
|
41 |
|
42 void CSendMtm::SetSubjectL(const TDesC& /*aSubject*/) |
|
43 { |
|
44 } |
|
45 |
|
46 TUint CSendMtm::ValidateMessage(TMsvPartList /*aPartList*/) |
|
47 { |
|
48 return 0; |
|
49 } |
|
50 |
|
51 void CSendMtm::AddAddresseeL(TMsvRecipientType /*aType*/, const TDesC& /*aRealAddress*/) |
|
52 { |
|
53 User::Leave(KErrNotSupported); |
|
54 } |
|
55 |
|
56 void CSendMtm::AddAddresseeL(TMsvRecipientType /*aType*/, const TDesC& /*aRealAddress*/, const TDesC& /*aAlias*/) |
|
57 { |
|
58 User::Leave(KErrNotSupported); |
|
59 } |