|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <cpitemdatahelper.h> |
|
19 #include <hbicon.h> |
|
20 #include <hbdataformmodelitem.h> |
|
21 |
|
22 #include "nmmailboxentryitem.h" |
|
23 |
|
24 /*! |
|
25 \class NmMailboxEntryItem |
|
26 \brief Class for implementing mailbox item data. |
|
27 |
|
28 Stores mailbox specific data, i.e. name, icon and id of the mailbox. |
|
29 |
|
30 */ |
|
31 |
|
32 // ======== MEMBER FUNCTIONS ======== |
|
33 |
|
34 /*! |
|
35 Constructor of NmMailboxEntryItem. |
|
36 */ |
|
37 NmMailboxEntryItem::NmMailboxEntryItem( |
|
38 CpItemDataHelper &itemDataHelper, |
|
39 const NmId &mailboxId, |
|
40 const QString &mailboxName, |
|
41 const HbIcon &mailboxIcon, |
|
42 const HbDataFormModelItem *parent, |
|
43 const QString &mailboxDescription) |
|
44 : CpSettingFormEntryItemData(itemDataHelper, mailboxName, mailboxDescription, mailboxIcon, parent), |
|
45 mMailboxId(mailboxId.id()) |
|
46 { |
|
47 } |
|
48 |
|
49 /*! |
|
50 Destructor of NmMailboxEntryItem. |
|
51 */ |
|
52 NmMailboxEntryItem::~NmMailboxEntryItem() |
|
53 { |
|
54 } |
|
55 |
|
56 /*! |
|
57 From base class. No implementation. |
|
58 */ |
|
59 CpBaseSettingView *NmMailboxEntryItem::createSettingView() const |
|
60 { |
|
61 NMLOG("NmMailboxEntryItem::createSettingView"); |
|
62 return 0; |
|
63 } |
|
64 |
|
65 /*! |
|
66 Return id for the mailbox. |
|
67 */ |
|
68 const NmId &NmMailboxEntryItem::id() const |
|
69 { |
|
70 return mMailboxId; |
|
71 } |