phoneapp/phoneuiview/inc/mphoneviewcustomization.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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:  Interface class for view control customization.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPHONEVIEWCUSTOMIZATION_H
       
    20 #define MPHONEVIEWCUSTOMIZATION_H
       
    21 
       
    22 #include "phoneviewcommanddefinitions.h"
       
    23 #include "tphonecommandparam.h"
       
    24 #include "mphoneviewblockingdialogobserver.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 /**
       
    28 *  Interface class for view control customization.
       
    29 */
       
    30 class MPhoneViewCustomization
       
    31     {
       
    32 public:
       
    33     /**
       
    34     * Handles custom view commands.
       
    35     * @param aBlockingObserver Blocking dialog observer. Sets blocking dialog 
       
    36     *                          value (by this param) for view controller when
       
    37     *                          handle command needs to show blocking
       
    38     *                          dialogs on the screen.
       
    39     * @param aCmdId Command id.
       
    40     * @param aCommandParam Command param.
       
    41     * @return ETrue if command handled.
       
    42     */
       
    43     virtual TBool HandleCommandL(
       
    44                     MPhoneViewBlockingDialogObserver& aBlockingObserver,
       
    45                     TPhoneViewCommandId aCmdId,
       
    46                     TPhoneCommandParam* aCommandParam ) = 0;
       
    47     
       
    48 
       
    49     /**
       
    50     * Removes dialogs.
       
    51     */
       
    52     virtual void RemoveDialog() = 0;
       
    53 
       
    54     };
       
    55     
       
    56 #endif // MPHONEVIEWCUSTOMIZATION_H
       
    57