languageinterworkingfw/servicehandler/inc/liwmenubinding.h
changeset 57 61b27eec6533
parent 45 7aa6007702af
equal deleted inserted replaced
45:7aa6007702af 57:61b27eec6533
     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 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:       Declares LIW Menu utilities for providers to access consumer menu.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef _LIW_MENUBINDING_H
       
    24 #define _LIW_MENUBINDING_H
       
    25 
       
    26 #include "liwserviceifmenu.h"
       
    27 #include "liwbinding.h"
       
    28 
       
    29 /**
       
    30 * This utility class is used for binding a set of providers to a menu placeholder.
       
    31 */
       
    32 NONSHARABLE_CLASS(CLiwMenuBinding) : public CLiwBinding
       
    33     {
       
    34     public:
       
    35         static CLiwMenuBinding* NewL();
       
    36         static CLiwMenuBinding* NewL(TInt aMenuItemIndex, TInt aMenuId);
       
    37         static CLiwMenuBinding* NewLC();
       
    38         static CLiwMenuBinding* NewLC(TInt aMenuItemIndex, TInt aMenuId);
       
    39 
       
    40         virtual ~CLiwMenuBinding();
       
    41 
       
    42         inline void SetMenuItemIndex(TInt aMenuItemIndex);
       
    43         inline TInt MenuItemIndex() const;
       
    44         inline CLiwServiceIfMenu* MenuProvider(TInt aIndex);
       
    45         inline TInt MenuCmd() const;
       
    46         inline void SetMenuCmd(TInt aMenuCmd);
       
    47         inline TInt MenuId();
       
    48         inline void SetMenuId(TInt aId);
       
    49         inline void SetMenuPane(CLiwMenuPane* aPane);
       
    50         inline CLiwMenuPane* MenuPane();
       
    51         
       
    52     private:
       
    53         CLiwMenuBinding();
       
    54         CLiwMenuBinding(TInt aMenItemIndex, TInt aParentId);
       
    55         void ConstructL();
       
    56 
       
    57     private:
       
    58         TInt iMenuItemIndex;
       
    59         TInt iMenuCmd;      
       
    60         TInt iMenuId;
       
    61         CLiwMenuPane* iMenuPane;
       
    62     };
       
    63 
       
    64 #include "liwmenubinding.inl"
       
    65 
       
    66 #endif // _LIW_MENUBINDING_H
       
    67 
       
    68 // End of file