25
|
1 |
/*
|
|
2 |
* Copyright (c) 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: handles interface to CenRep settings
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef EMAILWIDGETSETTINGSMAILBOXES_H_
|
|
20 |
#define EMAILWIDGETSETTINGSMAILBOXES_H_
|
|
21 |
|
|
22 |
#include "cfsmailcommon.h"
|
|
23 |
|
|
24 |
class CFSMailClient;
|
|
25 |
|
|
26 |
/**
|
|
27 |
*
|
|
28 |
* @lib
|
|
29 |
* @since
|
|
30 |
*/
|
|
31 |
NONSHARABLE_CLASS( CEmailWidgetSettingsMailboxes )
|
|
32 |
{
|
|
33 |
public:
|
|
34 |
/**
|
|
35 |
* Two-phased constructor.
|
|
36 |
*/
|
|
37 |
static CEmailWidgetSettingsMailboxes* NewL();
|
|
38 |
|
|
39 |
/**
|
|
40 |
* Destructor.
|
|
41 |
*/
|
|
42 |
virtual ~CEmailWidgetSettingsMailboxes();
|
|
43 |
|
|
44 |
/**
|
|
45 |
*
|
|
46 |
* @param
|
|
47 |
* @param
|
|
48 |
*/
|
|
49 |
void GetMailboxIdL(TInt aNum, TFSMailMsgId& aId );
|
|
50 |
|
|
51 |
/**
|
|
52 |
*
|
|
53 |
* @param
|
|
54 |
* @param
|
|
55 |
*/
|
|
56 |
void GetMailboxNameL( TInt aNum, TDes& aMailboxName );
|
|
57 |
|
|
58 |
/**
|
|
59 |
*
|
|
60 |
* @param
|
|
61 |
* @param
|
|
62 |
*/
|
|
63 |
void GetDomainL(TInt aNum, TDes& aDomain);
|
|
64 |
|
|
65 |
/**
|
|
66 |
*
|
|
67 |
*/
|
|
68 |
TInt MailboxCount();
|
|
69 |
|
|
70 |
private:
|
|
71 |
/**
|
|
72 |
* Constructor
|
|
73 |
* @param aMailClient reference to CFSMailClient class. Mailserver offers
|
|
74 |
* this for all handlers in order to prevent parallel instantiation
|
|
75 |
*/
|
|
76 |
CEmailWidgetSettingsMailboxes();
|
|
77 |
|
|
78 |
void ConstructL();
|
|
79 |
|
|
80 |
private: // data
|
|
81 |
/**
|
|
82 |
* Mail client reference.
|
|
83 |
*/
|
|
84 |
CFSMailClient* iMailClient;
|
|
85 |
};
|
|
86 |
|
|
87 |
#endif /*EMAILWIDGETSETTINGSMAILBOXES_H_*/
|