emailuis/widget/emailwidgetsettings/inc/emailwidgetsettingsmailboxes.h
branchRCL_3
changeset 25 3533d4323edc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/emailuis/widget/emailwidgetsettings/inc/emailwidgetsettingsmailboxes.h	Wed Sep 01 12:28:57 2010 +0100
@@ -0,0 +1,87 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  handles interface to CenRep settings
+*
+*/
+
+
+#ifndef EMAILWIDGETSETTINGSMAILBOXES_H_
+#define EMAILWIDGETSETTINGSMAILBOXES_H_
+
+#include "cfsmailcommon.h"
+
+class CFSMailClient;
+
+/**
+ * 
+ *  @lib
+ *  @since
+ */
+NONSHARABLE_CLASS( CEmailWidgetSettingsMailboxes )
+    {
+public:
+    /**
+     * Two-phased constructor.
+     */
+    static CEmailWidgetSettingsMailboxes* NewL();
+
+    /**
+    * Destructor.
+    */
+    virtual ~CEmailWidgetSettingsMailboxes();
+
+    /**
+     * 
+     * @param
+     * @param 
+     */
+    void GetMailboxIdL(TInt aNum, TFSMailMsgId& aId );
+    
+    /**
+     * 
+     * @param
+     * @param 
+     */	
+    void GetMailboxNameL( TInt aNum, TDes& aMailboxName );
+
+    /**
+     * 
+     * @param
+     * @param  
+     */
+    void GetDomainL(TInt aNum, TDes& aDomain);
+    
+    /**
+     * 
+     */
+    TInt MailboxCount();    
+
+private:
+    /**
+     * Constructor
+     * @param aMailClient reference to CFSMailClient class. Mailserver offers
+     *        this for all handlers in order to prevent parallel instantiation
+     */
+    CEmailWidgetSettingsMailboxes();
+
+    void ConstructL();
+
+private: // data
+    /**
+     * Mail client reference.
+     */
+    CFSMailClient* iMailClient;
+    };
+
+#endif /*EMAILWIDGETSETTINGSMAILBOXES_H_*/