homesync/contentmanager/mediaservant/inc/msfillview.h
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     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:  Definition for MediaServant Fill List view class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef C_MSFILLVIEW_H
       
    23 #define C_MSFILLVIEW_H
       
    24 
       
    25 // INCLUDES
       
    26 #include "msengineobserver.h"
       
    27 #include "msbaseview.h"
       
    28 
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CMSAppUi;
       
    32 class CMSFillContainer;
       
    33 class CMSEngine;
       
    34 
       
    35 /**
       
    36  * CMSFillView class.
       
    37  *
       
    38  * @since S60 5.1
       
    39  */
       
    40 NONSHARABLE_CLASS( CMSFillView ): public CMSBaseView,
       
    41                     public MMSEngineObserver
       
    42     {
       
    43 
       
    44     public:
       
    45 
       
    46         /**
       
    47          * Constructor.
       
    48          */
       
    49         CMSFillView( CMSAppUi& aAppUi );
       
    50 
       
    51         /**
       
    52          * default constructor.
       
    53          */
       
    54         void ConstructL();
       
    55 
       
    56         /**
       
    57          * Destructor.
       
    58          */
       
    59         virtual ~CMSFillView();
       
    60 
       
    61         /**
       
    62          * ListBox focus index
       
    63          * @since S60 5.1
       
    64          * @return TInt, focus index
       
    65          */
       
    66         TInt FocusIndex() const;
       
    67 
       
    68         /**
       
    69          * Changes cba according to selection status
       
    70          * @since S60 3.2
       
    71          * @param aSelected, ETrue if selected
       
    72          */
       
    73         void SetCbaL( TBool aSelected );
       
    74 
       
    75         /**
       
    76          * Shows 'updating lists' text on navi pane
       
    77          * @Since S60 5.1
       
    78          */
       
    79         void ShowNaviTextL();
       
    80 
       
    81         /**
       
    82          * Sets iListUnSelected if selections changed
       
    83          * @Since S60 5.1
       
    84          */
       
    85         void SetListUnselected();
       
    86 
       
    87 // From base class MEikMenuObserver
       
    88         
       
    89         /**
       
    90          * From MEikMenuObserver
       
    91          * See base class definition
       
    92          */
       
    93         void HandleCommandL( TInt aCommand );
       
    94                 
       
    95     protected:
       
    96 
       
    97 // From base class CAknView
       
    98 
       
    99         /**
       
   100          * From CAknView
       
   101          * See base class definition
       
   102          */
       
   103         TUid Id() const;
       
   104 
       
   105         /**
       
   106          * From CAknView
       
   107          * See base class definition
       
   108          */
       
   109         void DoActivateL(
       
   110             const TVwsViewId& aPrevViewId,
       
   111             TUid aCustomMessageId,
       
   112             const TDesC8& aCustomMessage );
       
   113         
       
   114         /**
       
   115          * From CAknView
       
   116          * See base class definition
       
   117          */
       
   118         void DoDeactivate();
       
   119 
       
   120 // From base class MMSEngineObserver
       
   121 
       
   122         /**
       
   123          * From MMSEngineObserver
       
   124          * See base class definition
       
   125          */
       
   126         void ReadyL( TCmService aService, TInt aError );
       
   127 
       
   128 // From base class MEikMenuObserver
       
   129         
       
   130         /**
       
   131          * From MEikMenuObserver
       
   132          * See base class definition
       
   133          */
       
   134         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
   135 
       
   136     private:
       
   137 
       
   138         /**
       
   139          * Opens template query
       
   140          * @Since S60 5.1
       
   141          * @param aCommand, template type
       
   142          */
       
   143         void ShowTemplateQueryL( TInt aCommand );
       
   144 
       
   145         /**
       
   146          * Shows delete filled files query
       
   147          * @Since S60 5.1
       
   148          */
       
   149         void DoDeleteQueryL();
       
   150 
       
   151         /**
       
   152          * Checks if priority or activity has been changed
       
   153          * @Since S60 5.1
       
   154          */
       
   155         void CheckAndHandleChangesL();
       
   156 
       
   157     private:
       
   158 
       
   159         /**
       
   160          * pointer to AppUi object
       
   161          */
       
   162         CMSAppUi*                           iAppUi;         // not owned
       
   163         /**
       
   164          * Views container
       
   165          */
       
   166         CMSFillContainer*                   iContainer;     // owned
       
   167         /**
       
   168          * Focus index
       
   169          */
       
   170         TInt                                iFocusIndex;
       
   171         /**
       
   172          * Next view id
       
   173          */
       
   174         TUid                                iNextView;
       
   175         /**
       
   176          * flag for list selection changes
       
   177          */
       
   178         TBool                               iNewListSelected;
       
   179         /**
       
   180          * flag for list selection changes
       
   181          */
       
   182         TBool                               iListUnSelected;
       
   183     };
       
   184 
       
   185 #endif // C_MSFILLVIEW_H
       
   186 
       
   187 
       
   188 // End of File