|
1 /* |
|
2 * Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This file implements class CMailMailboxDetails. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "emailtrace.h" |
|
19 #include "cmailexternalaccount.h" |
|
20 |
|
21 // --------------------------------------------------------- |
|
22 // CMailExternalAccount::NewL |
|
23 // --------------------------------------------------------- |
|
24 // |
|
25 CMailExternalAccount* CMailExternalAccount::NewL( |
|
26 const TInt aMailboxId, |
|
27 const TInt aPluginId, |
|
28 HBufC* aContentId ) |
|
29 { |
|
30 FUNC_LOG; |
|
31 CMailExternalAccount* self = new(ELeave) CMailExternalAccount( aMailboxId, aPluginId, aContentId ); |
|
32 CleanupStack::PushL( self ); |
|
33 self->ConstructL(); |
|
34 CleanupStack::Pop( self ); |
|
35 return self; |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------- |
|
39 // CMailExternalAccount::CMailExternalAccount |
|
40 // --------------------------------------------------------- |
|
41 // |
|
42 CMailExternalAccount::CMailExternalAccount( |
|
43 const TInt aMailboxId, |
|
44 const TInt aPluginId, |
|
45 HBufC* aContentId ) : |
|
46 iMailboxId( aMailboxId ), |
|
47 iPluginId( aPluginId ), |
|
48 iContentId( aContentId ) |
|
49 { |
|
50 FUNC_LOG; |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------- |
|
54 // CMailExternalAccount::~CMailExternalAccount |
|
55 // --------------------------------------------------------- |
|
56 // |
|
57 CMailExternalAccount::~CMailExternalAccount() |
|
58 { |
|
59 FUNC_LOG; |
|
60 delete iContentId; |
|
61 } |
|
62 |
|
63 // --------------------------------------------------------- |
|
64 // CMailExternalAccount::ConstructL |
|
65 // --------------------------------------------------------- |
|
66 // |
|
67 void CMailExternalAccount::ConstructL() |
|
68 { |
|
69 FUNC_LOG; |
|
70 } |
|
71 |
|
72 // --------------------------------------------------------- |
|
73 // CMailExternalAccount::MailboxId |
|
74 // --------------------------------------------------------- |
|
75 // |
|
76 TInt CMailExternalAccount::MailboxId() |
|
77 { |
|
78 return iMailboxId; |
|
79 } |
|
80 |
|
81 // --------------------------------------------------------- |
|
82 // CMailExternalAccount::PluginId |
|
83 // --------------------------------------------------------- |
|
84 // |
|
85 TInt CMailExternalAccount::PluginId() |
|
86 { |
|
87 return iPluginId; |
|
88 } |
|
89 |
|
90 // --------------------------------------------------------- |
|
91 // CMailExternalAccount::ContentId |
|
92 // --------------------------------------------------------- |
|
93 // |
|
94 TDesC& CMailExternalAccount::ContentId() |
|
95 { |
|
96 return *iContentId; |
|
97 } |