|
1 /* |
|
2 * Copyright (c) 2008 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: data container class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CMAILMAILBOXDETAILS_H_ |
|
20 #define CMAILMAILBOXDETAILS_H_ |
|
21 |
|
22 class CMailMessageDetails; |
|
23 |
|
24 /** |
|
25 * Class holding data related to mailbox |
|
26 * |
|
27 * @lib fsmailserver.exe |
|
28 * @since S60 v5.1 |
|
29 */ |
|
30 NONSHARABLE_CLASS( CMailMailboxDetails ) : public CBase |
|
31 { |
|
32 public: |
|
33 /** |
|
34 * Two-phased constructor. |
|
35 * @param aMailboxId Id of the mailbox |
|
36 * @param aMailboxName name of the mailbox |
|
37 */ |
|
38 static CMailMailboxDetails* NewL( TFSMailMsgId aMailboxId, const TDesC& aMailboxName ); |
|
39 |
|
40 /** |
|
41 * Destructor. |
|
42 */ |
|
43 virtual ~CMailMailboxDetails(); |
|
44 |
|
45 private: |
|
46 |
|
47 /** |
|
48 * Constructor |
|
49 * @param aMailboxId Id of the mailbox |
|
50 * @param aMailboxName name of the mailbox |
|
51 */ |
|
52 CMailMailboxDetails( const TFSMailMsgId aMailboxId ); |
|
53 |
|
54 /** |
|
55 * ConstructL |
|
56 * @param aMailboxName name of the mailbox |
|
57 */ |
|
58 void ConstructL( const TDesC& aMailboxName ); |
|
59 |
|
60 public: // data |
|
61 // For bookkeeping |
|
62 // id of the mailbox in the message store |
|
63 TFSMailMsgId iMailboxId; |
|
64 // array of message details objects |
|
65 RPointerArray<CMailMessageDetails> iMessageDetailsArray; |
|
66 // Data |
|
67 // mailbox name |
|
68 HBufC* iMailboxName; |
|
69 }; |
|
70 |
|
71 #endif /*CMAILMAILBOXDETAILS_H_*/ |