homesync/contentmanager/homesyncgsplugin/inc/mssettingsview.h
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /*
       
     2 * Copyright (c) 2008 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:  MediaServant settings view.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MSSETTINGSVIEW_H
       
    20 #define MSSETTINGSVIEW_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <GSPluginInterface.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CMSSettingItemList;
       
    27 class CAknNavigationDecorator;
       
    28 class CAknNavigationControlContainer;
       
    29 
       
    30 /**
       
    31  *  MediaServant settings view.
       
    32  *
       
    33  *  @lib msgsplugin.lib
       
    34  */
       
    35 NONSHARABLE_CLASS( CMSSettingsView ) : public CGSPluginInterface
       
    36     {
       
    37 
       
    38     public:
       
    39         /**
       
    40          * NewL
       
    41          * Two phased constructor.
       
    42          * @return CMSSettingsView*, the new CMSSettingsView object
       
    43         */
       
    44         static CMSSettingsView* NewL();
       
    45 
       
    46         /**
       
    47          * NewLC
       
    48          * Two phased constructor.
       
    49          * @return CMSSettingsView*, the new CMSSettingsView object
       
    50          */
       
    51         static CMSSettingsView* NewLC();
       
    52 		
       
    53         /**
       
    54          * Destructor.
       
    55          */
       
    56         virtual ~CMSSettingsView();
       
    57 
       
    58         /**
       
    59          * SetNavigationPaneTextL
       
    60          * Sets Navigation pane text.
       
    61          * @since S60 5.1
       
    62          * @param aText, text to be shown
       
    63          */
       
    64         void SetNavigationPaneTextL( const TDesC& aText );
       
    65 
       
    66         /**
       
    67          * ClearCurrentNaviPaneText
       
    68          * Clears current navi pane text
       
    69          * @since S60 5.1
       
    70          */
       
    71         void ClearCurrentNaviPaneText();
       
    72         
       
    73     protected:
       
    74     
       
    75     // From base class CAknView
       
    76 
       
    77         /**
       
    78          * From CAknView
       
    79          * See base class definition.
       
    80          */
       
    81         TUid Id() const;
       
    82 
       
    83         /**
       
    84          * From CAknView
       
    85          * See base class definition
       
    86          */
       
    87         void HandleCommandL( TInt aCommand );
       
    88     
       
    89         /**
       
    90          * From CAknView
       
    91          * See base class definition
       
    92          */
       
    93         void DoActivateL( const TVwsViewId& aPrevViewId,
       
    94                           TUid aCustomMessageId,
       
    95                           const TDesC8& aCustomMessage);
       
    96 
       
    97         /**
       
    98          * From CAknView
       
    99          * See base class definition
       
   100          */        
       
   101         void DoDeactivate();
       
   102                     
       
   103     // From base class CGSPluginInterface
       
   104     
       
   105         /**
       
   106          * From CGSPluginInterface
       
   107          * See base class definition
       
   108          */
       
   109         void GetCaptionL( TDes& aCaption ) const;
       
   110 
       
   111         /**
       
   112          * From CGSPluginInterface
       
   113          * See base class definition
       
   114          */
       
   115         CGulIcon* CreateIconL( const TUid aIconType );        
       
   116 
       
   117     private:
       
   118 
       
   119         /**
       
   120          * Default constructor.
       
   121          */
       
   122         CMSSettingsView();
       
   123 
       
   124         /**
       
   125          * Second phase constructor.
       
   126          */
       
   127         void ConstructL();
       
   128     
       
   129         /**
       
   130          * Sets text by resource ID in title pane.
       
   131          *
       
   132          * @since S60 5.1
       
   133          * @param aResourceId, The ID of outline number to displayed next.
       
   134          */
       
   135         void SetTitlePaneTextL( const TInt aResourceId );    
       
   136 
       
   137     private: // data
       
   138 
       
   139         /**
       
   140          * Setting list
       
   141          */
       
   142         CMSSettingItemList*                 iSettingItemList;   // owned
       
   143 
       
   144         /**
       
   145          * Resource file offset
       
   146          */
       
   147         TInt                                iResFileOffset;
       
   148 
       
   149         /**
       
   150          * Navi decorator
       
   151          */
       
   152         CAknNavigationDecorator*            iNaviDecorator;     // owned 
       
   153 
       
   154         /**
       
   155          * Navigation pane
       
   156          */
       
   157         CAknNavigationControlContainer*     iNaviPane;          // not owned
       
   158         
       
   159         /**
       
   160          * Control environment for file session
       
   161          */
       
   162         CEikonEnv*                          iCoeEnv;            // not owned
       
   163         
       
   164     };
       
   165 
       
   166 #endif // MSSETTINGSVIEW_H