widgetmodel/alfwidgetmodel/inc/alflctattributesetterutils.h
changeset 17 3eca7e70b1b8
parent 3 4526337fb576
equal deleted inserted replaced
3:4526337fb576 17:3eca7e70b1b8
     1 /*
       
     2 * Copyright (c) 2007 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:  TThe attribute setter utility for lct attributesetters
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ALFCTATTRIBUTESETTERUTILS_H
       
    20 #define ALFCTATTRIBUTESETTERUTILS_H
       
    21 
       
    22 #ifdef RD_ALF_IN_PLATFORM
       
    23 #include <aknlayout2hierarchy.h>
       
    24 #endif
       
    25 
       
    26 namespace Alf
       
    27     {
       
    28 
       
    29 class AlfAttributeContainer;
       
    30 class IAlfMap;
       
    31 
       
    32 /**
       
    33  *  The implementation of the attribute setter utility for lct attributesetters.
       
    34  *
       
    35  *  @lib alfwidgetmodel.lib
       
    36  *  @since S60 ?S60_version
       
    37  */
       
    38 class AlfLctAttributeSetterUtils
       
    39     {
       
    40 
       
    41 public:
       
    42 
       
    43     /**
       
    44      * Gets common lct attributes.
       
    45      *
       
    46      * @param aContainer The container holding the new value of the attribute.
       
    47      *        Ownership of the object is not transferred.
       
    48      * @ret Component handle
       
    49      */
       
    50     static TAknLayoutHierarchyComponentHandle getCommonLctAttributes(
       
    51         AlfAttributeContainer* aContainer);
       
    52 
       
    53     /**
       
    54      * Gets lct size.
       
    55      *
       
    56     * @param aComponentHandle Component handle
       
    57     * @param aWidth returned width.
       
    58     * @param aHeight returned height.
       
    59     * @return true if size is found.
       
    60      */
       
    61     static bool itemSize(const TAknLayoutHierarchyComponentHandle& aComponentHandle,
       
    62                          int& aWidth, int& aHeight);
       
    63 
       
    64 private: // data
       
    65     };
       
    66 
       
    67     } // namespace Alf
       
    68 
       
    69 #endif // ALFCTATTRIBUTESETTERUTILS_H
       
    70