phoneuis/Ussd/inc/UssdLayout.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2002-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:  Declares coordinates from LAF specification
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef USSDLAF_H
       
    20 #define USSDLAF_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include    <calslbs.h> 
       
    24 #include    <AknLayoutDef.h>
       
    25 
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // The maximum number of editor lines method NumberOfEditorLines can return.
       
    30 const TInt KUssdMaxNumberOfEditorLines = 16;
       
    31 
       
    32 /**
       
    33 * Layout coordinates from Application LAF
       
    34 *
       
    35 * @since 2.0
       
    36 */
       
    37 class UssdLayout
       
    38     {
       
    39     public: // New functions
       
    40 
       
    41         typedef TAknWindowLineLayout TWindowLineLayoutType;
       
    42         typedef TAknMultiLineTextLayout TTextLineLayoutType;
       
    43 
       
    44         /**
       
    45         * Returns current Layout ID
       
    46         * @since 2.0
       
    47         * @return EAknLayoutIdELAF, EAknLayoutIdABRW, EAknLayoutIdAPAC
       
    48         */
       
    49         static TAknLayoutId CurrentLayout();
       
    50 
       
    51         /**
       
    52         * Get background image colour
       
    53         * @since 2.0
       
    54         * @return White colour
       
    55         */ 
       
    56         static TInt LayoutColourWhite();
       
    57 
       
    58         /**
       
    59         * Get number of editor lines
       
    60         * @since 2.0
       
    61         * @return Number of lines
       
    62         */ 
       
    63         static TInt NumberOfEditorLines();
       
    64 
       
    65         /**
       
    66         * One line coordinate definitions from LAF
       
    67         * @since 2.0
       
    68         * @param aLine Line number from 1 to NumberOfEditorLines()
       
    69         * @return Current line coordinates
       
    70         */ 
       
    71         static TWindowLineLayoutType 
       
    72             MessageWritingLayoutElements6( TInt aLine );
       
    73 
       
    74         /**
       
    75         * Editor coordinate definitions from LAF
       
    76         * @since 2.0
       
    77         * @return Editor coordinates
       
    78         */ 
       
    79         static TTextLineLayoutType MessageWritingTexts3();
       
    80 
       
    81     };
       
    82 
       
    83 #endif
       
    84 
       
    85 // End of File
       
    86