iaupdate/IAD/ui/inc/iaupdatehistoryview.h
changeset 29 26b6f0522fd8
parent 0 ba25891c3a9e
equal deleted inserted replaced
25:98b66e4fb0be 29:26b6f0522fd8
     1 /*
     1 /*
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:   This file contains the header file of the CIAUpdateHistoryView
    14 * Description:   This file contains the header file of the IAUpdateHistoryView
    15 *                class 
    15 *                class 
    16 *
    16 *
    17 */
    17 */
    18 
    18 
       
    19 #ifndef IAUPDATEHISTORYVIEW_H_
       
    20 #define IAUPDATEHISTORYVIEW_H_
    19 
    21 
       
    22 #include <HbView.h>
    20 
    23 
    21 #ifndef IA_UPDATE_HISTORY_VIEW_H
    24 class IAUpdateHistoryView : public HbView
    22 #define IA_UPDATE_HISTORY_VIEW_H
       
    23 
       
    24 #include <aknview.h> 
       
    25 
       
    26 class CIAUpdateHistoryContainer;
       
    27 class MIAUpdateHistory;
       
    28 
       
    29 
       
    30 /*! 
       
    31   @class CIAUpdateHistoryView
       
    32   
       
    33   @discussion An instance of the Application View object for the IAUpdate 
       
    34   example application
       
    35   */
       
    36 class CIAUpdateHistoryView : public CAknView
       
    37     {
    25     {
    38 
       
    39 public:
    26 public:
    40     
    27     IAUpdateHistoryView();
    41     /*!
    28     virtual ~IAUpdateHistoryView();
    42       @function NewL
       
    43   
       
    44       @discussion Create a CIAUpdateHistoryView object, which will draw itself to aRect
       
    45       @result a pointer to the created instance of CIAUpdateHistoryView
       
    46     */
       
    47     static CIAUpdateHistoryView* NewL( MIAUpdateHistory& aHistory );
       
    48 
       
    49     /*!
       
    50       @function NewLC
       
    51    
       
    52       @discussion Create a CIAUpdateHistoryView object, which will draw itself to aRect
       
    53       @result a pointer to the created instance of CIAUpdateHistoryView
       
    54     */
       
    55     static CIAUpdateHistoryView* NewLC( MIAUpdateHistory& aHistory );
       
    56 
       
    57 
       
    58     /*!
       
    59       @function ~CIAUpdateHistoryView
       
    60       
       
    61       @discussion Destroy the object and release all memory objects
       
    62     */
       
    63     virtual ~CIAUpdateHistoryView();
       
    64 
       
    65 
       
    66     void RefreshL();       
       
    67 
       
    68 
       
    69 private:  // from CAknView
       
    70 
       
    71     /*!
       
    72       @see CAknView::Id
       
    73     */
       
    74     virtual TUid Id() const;
       
    75 
       
    76 
       
    77     /*!
       
    78       @see CAknView::HandleCommandL
       
    79     */
       
    80     virtual void HandleCommandL( TInt aCommand );
       
    81     
       
    82     
       
    83     /*!
       
    84       @see CAknView::DoActivateL
       
    85     */
       
    86     virtual void DoActivateL( const TVwsViewId &aPrevViewId, 
       
    87                               TUid aCustomMessageId, 
       
    88                               const TDesC8 &aCustomMessage);
       
    89     
       
    90     /*!
       
    91       @see CAknView::DoDeactivate
       
    92     */
       
    93     virtual void DoDeactivate();
       
    94 
       
    95                         
       
    96 private: // Methods
       
    97 
       
    98     /*!
       
    99       @function CIAUpdateHistoryView
       
   100       
       
   101       @discussion Perform the first phase of two phase construction 
       
   102     */
       
   103     CIAUpdateHistoryView( MIAUpdateHistory& aHistory );
       
   104 
       
   105     
       
   106     /*!
       
   107       @function ConstructL
       
   108       
       
   109       @discussion  Perform the second phase construction of a CIAUpdateHistoryView object
       
   110     */
       
   111     virtual void ConstructL();
       
   112     
       
   113     // Gives the history object that is used to show the history in the view.
       
   114     MIAUpdateHistory& History() const; 
       
   115 
       
   116     // Updates the status pane texts.
       
   117     void UpdateStatusPaneL();
       
   118 
       
   119     
       
   120 private: // Data
       
   121 
       
   122     // Contains the item history info
       
   123     MIAUpdateHistory& iHistory;      
       
   124     
       
   125     // Handles the content of the view.
       
   126     CIAUpdateHistoryContainer* iContainer;
       
   127 
       
   128     };
    29     };
   129 
    30 
   130 #endif // IA_UPDATE_HISTORY_VIEW_H
    31 #endif /* IAUPDATEHISTORYVIEW_H_ */