emailuis/widget/emailwidgetsettings/inc/emailwidgetsettingsmailboxes.h
changeset 0 8466d47a6819
child 1 12c456ceeff2
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     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      */
       
    48     void GetMailboxIdL(TInt aNum, TFSMailMsgId& aId );
       
    49     
       
    50     /**
       
    51      * 
       
    52      * @param 
       
    53      */	
       
    54     void GetMailboxNameL( TInt aNum, TDes& aMailboxName );
       
    55 
       
    56     /**
       
    57      * 
       
    58      */
       
    59     TInt MailboxCount();    
       
    60 
       
    61 private:
       
    62     /**
       
    63      * Constructor
       
    64      * @param aMailClient reference to CFSMailClient class. Mailserver offers
       
    65      *        this for all handlers in order to prevent parallel instantiation
       
    66      */
       
    67     CEmailWidgetSettingsMailboxes();
       
    68 
       
    69     void ConstructL();
       
    70 
       
    71 private: // data
       
    72     /**
       
    73      * Mail client reference.
       
    74      */
       
    75     CFSMailClient* iMailClient;
       
    76     };
       
    77 
       
    78 #endif /*EMAILWIDGETSETTINGSMAILBOXES_H_*/