wvuing/wvuiave/AppSrc/CCARefreshView.h
branchRCL_3
changeset 13 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
12:6ca72c0fe49a 13:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2003-2005 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:  View class for main-view
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CCAREFRESHVIEW_H
       
    21 #define CCAREFRESHVIEW_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "CCAView.h"
       
    25 #include <e32base.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CCAEmptyControl;
       
    29 class CIdle;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Main view for chat application
       
    35 *
       
    36 *  @lib chat.app
       
    37 *  @since 1.2
       
    38 */
       
    39 class CCARefreshView : public CCAView
       
    40     {
       
    41     public: // Constructors and destructor
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~CCARefreshView();
       
    47 
       
    48         /**
       
    49          * Constructor
       
    50          */
       
    51         CCARefreshView( TInt& aRefreshFlag );
       
    52 
       
    53     private: // from base classes
       
    54 
       
    55         /**
       
    56         * From CAknView, Gets called from framework when activating this view
       
    57         * @param aPrevViewId Previous view id
       
    58         * @param aCustomMessageId Custom message's id
       
    59         * @param aCustomMessage Custom message
       
    60         * @see CAknView::DoActivateL
       
    61         */
       
    62         void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId,
       
    63                           const TDesC8& aCustomMessage );
       
    64 
       
    65         /**
       
    66         * From CAknView, Gets called from framework when deactivating this view
       
    67         * @see CAknView::DoDeactivate
       
    68         */
       
    69         void DoDeactivate();
       
    70 
       
    71 
       
    72     private: // new methods
       
    73 
       
    74         /**
       
    75          * callback for CIdle
       
    76          */
       
    77         static TInt Callback( TAny* aInstance );
       
    78 
       
    79     private: // Data
       
    80 
       
    81         // owns
       
    82         CCAEmptyControl* iContainer;
       
    83 
       
    84         /// Flag which is changed for telling if refresh is activated or not.
       
    85         TInt& iRefreshFlag;
       
    86 
       
    87     };
       
    88 
       
    89 #endif // CCAREFRESHVIEW_H 
       
    90 
       
    91 // End of File