codhandler/codui/inc/CodViewDialog.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2004 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 the License "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:  Declaration of class CCodViewDialog.   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef COD_VIEW_DIALOG_H
       
    20 #define COD_VIEW_DIALOG_H
       
    21 
       
    22 // INCLUDES
       
    23 
       
    24 #include <AknDialog.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 class CCodData;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 * COD details view dialog.
       
    34 * TODO implement it.
       
    35 */
       
    36 NONSHARABLE_CLASS( CCodViewDialog ): public CAknDialog
       
    37     {
       
    38 
       
    39     public:     // Constructors
       
    40 
       
    41         /**
       
    42         * Constructor.
       
    43         * @param aCod COD flag (show Price).
       
    44         * @param aData COD data to display. Ownership not taken.
       
    45         */
       
    46         CCodViewDialog( const CCodData& aData, TBool aCod );
       
    47 
       
    48     public:     // New methods
       
    49 
       
    50         /**
       
    51         * Construct and execute the dialog.
       
    52         * @return Command that dismissed the dialog.
       
    53         */
       
    54         TInt ExecuteLD();
       
    55 
       
    56 	private:    // From CAknDialog & its base classes
       
    57 
       
    58         /**
       
    59         * Create custom control.
       
    60         * @param aControlType Control type.
       
    61         * @return Control info.
       
    62         */
       
    63         SEikControlInfo CreateCustomControlL( TInt aControlType );
       
    64 
       
    65         /**
       
    66         * Process command.
       
    67         * @param aCommandId Command id.
       
    68         */
       
    69         void ProcessCommandL( TInt aCommandId );
       
    70 
       
    71         /**
       
    72         * Handle key event.
       
    73         * @param aKeyEvent The key event.
       
    74         * @param aType Key event type.
       
    75         * @return Response (was the key event consumed?).
       
    76         */
       
    77         TKeyResponse OfferKeyEventL
       
    78             ( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    79 
       
    80         /**
       
    81         * Post-layout initialization.
       
    82         */
       
    83         void PostLayoutDynInitL();
       
    84 
       
    85         /**
       
    86         * Activate.
       
    87         */
       
    88         void ActivateL();
       
    89         
       
    90     private:    // Data
       
    91 
       
    92         const CCodData& iData;  ///< Data.
       
    93         TBool iCod;             ///< COD or DD?
       
    94 
       
    95         };
       
    96 
       
    97 #endif /* def COD_VIEW_DIALOG_H */