emailuis/gsemailsettings/inc/GSEmailSettingsView.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Email plugin for s60 general settings
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __GSEMAILSETTINGS_VIEW_H__
       
    20 #define __GSEMAILSETTINGS_VIEW_H__
       
    21 
       
    22 #include <gsbaseview.h>
       
    23 #include <ConeResLoader.h>
       
    24 
       
    25 //Forward Declarations
       
    26 class CGSEmailSettingsContainer;
       
    27 class CAsyncCallBack;
       
    28 
       
    29 // Constants
       
    30 // <cmail> S60 UID update
       
    31 const TUid KGSEmailSettingsPluginUid = { 0x2001F40C };
       
    32 // </cmail> S60 UID update
       
    33 
       
    34 class CGSEmailSettingsView: public CGSPluginInterface
       
    35 	{
       
    36 	public: // Constructors and destructor
       
    37 
       
    38 	    /**
       
    39 	     * Symbian OS two-phased constructor
       
    40 	     * @return 
       
    41 	     */
       
    42 	    static CGSEmailSettingsView* NewL();
       
    43 
       
    44 	    /**
       
    45 	     * Symbian OS two-phased constructor
       
    46 	     * @return 
       
    47 	     */
       
    48 	    static CGSEmailSettingsView* NewLC();
       
    49 
       
    50 	    /**
       
    51 	     * Destructor.
       
    52 	     */
       
    53 	    ~CGSEmailSettingsView();       
       
    54 
       
    55 
       
    56 	public: // from CGSPluginInterface
       
    57 	    /**
       
    58 	     * Method for checking, if plugin should be visible and used in GS FW.
       
    59 	     *
       
    60 	     * On default plugin is visible. Overwrite this function to enable or
       
    61 	     * disable your plugin dynamically.
       
    62 	     *
       
    63 	     * @return ETrue if plugin should be visible in GS.
       
    64 	     * @return EFalse if plugin should not be visible in GS.
       
    65 	     */
       
    66 	    TBool Visible() const;
       
    67 
       
    68 	    /**
       
    69 	     * Method for getting caption of this plugin. This should be the
       
    70 	     * localized name of the settings view to be shown in parent view.
       
    71 	     * @param aCaption pointer to Caption variable
       
    72 	     */
       
    73 	    void GetCaptionL( TDes& aCaption ) const;
       
    74 
       
    75 	    /**
       
    76 	     * Method for getting the type of this GS plugin. We return EGSItemTypeSingleLargeDialog
       
    77 	     * to tell General settings that this is non-view-type plugin, and HandleSelection() should
       
    78 	     * be called when our item is selected from the listbox.
       
    79 	     */
       
    80 	    TGSListboxItemTypes ItemType();
       
    81 
       
    82 	    /**
       
    83 	     * General Settings calls this method when Email settings item is selected by the user.
       
    84 	     */
       
    85 	    void HandleSelection( const TGSSelectionTypes aSelectionType );
       
    86 
       
    87 	    /**
       
    88 	     * Gets the icon to be shown in the General Settings list on the Email settings item.
       
    89 	     */
       
    90 	    CGulIcon* CreateIconL( const TUid aIconType );
       
    91 
       
    92 	    
       
    93 	public: // from CAknView  
       
    94 
       
    95 	    /**
       
    96 	     * @return Returns id of the view.
       
    97 	     */       
       
    98 	    TUid Id() const;
       
    99 
       
   100 	    /** An empty implementation must be provided here even though this is not a view type GS plugin */
       
   101 	    void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage );
       
   102 
       
   103 	    /** An empty implementation must be provided here even though this is not a view type GS plugin */
       
   104         void DoDeactivate();
       
   105 		
       
   106         
       
   107 	protected: // constructors
       
   108 
       
   109 	    /**
       
   110 	     * C++ default constructor.
       
   111 	     */
       
   112 	    IMPORT_C CGSEmailSettingsView();
       
   113 
       
   114 	    /**
       
   115 	     * Symbian OS default constructor.
       
   116 	     */
       
   117 	    void ConstructL();
       
   118 
       
   119 	   
       
   120     private: // data
       
   121        	RConeResourceLoader iResourceLoader;
       
   122 	};
       
   123 	
       
   124 
       
   125 
       
   126 #endif // __MYSETTINGSFRMWRK_VIEW_H__