64
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 - 2009 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 |
/**
|
|
46 |
* Destructor.
|
|
47 |
*/
|
|
48 |
void SetWidgetInstance( const TDesC& aWidgetInstance );
|
|
49 |
|
|
50 |
/**
|
|
51 |
* Changes the mailbox name.
|
|
52 |
*/
|
|
53 |
void SetMailboxName( const TDesC& aMailboxName );
|
|
54 |
|
|
55 |
private:
|
|
56 |
|
|
57 |
/**
|
|
58 |
* Constructor
|
|
59 |
* @param aMailboxId Id of the mailbox
|
|
60 |
* @param aMailboxName name of the mailbox
|
|
61 |
*/
|
|
62 |
CMailMailboxDetails( const TFSMailMsgId aMailboxId );
|
|
63 |
|
|
64 |
/**
|
|
65 |
* ConstructL
|
|
66 |
* @param aMailboxName name of the mailbox
|
|
67 |
*/
|
|
68 |
void ConstructL( const TDesC& aMailboxName );
|
|
69 |
|
|
70 |
public: // data
|
|
71 |
// For bookkeeping
|
|
72 |
// id of the mailbox in the message store
|
|
73 |
TFSMailMsgId iMailboxId;
|
|
74 |
// Data
|
|
75 |
// mailbox name
|
|
76 |
HBufC* iMailboxName;
|
|
77 |
|
|
78 |
HBufC* iWidgetInstance;
|
|
79 |
};
|
|
80 |
|
|
81 |
#endif /*CMAILMAILBOXDETAILS_H_*/
|