usbuis/imageprintui/inc/settingstables.h
changeset 93 2dc695882abd
parent 89 3592750162a5
equal deleted inserted replaced
89:3592750162a5 93:2dc695882abd
     1 /*
       
     2 * Copyright (c) 2006 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:  Contain info about capabilities phone are supporting
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef SETTINGSTABLES_H
       
    22 #define SETTINGSTABLES_H
       
    23 
       
    24 #include <dpsdefs.h>
       
    25 #include <imageprintui.rsg>
       
    26 
       
    27 /**
       
    28 * Definitions for phone supported capabilities
       
    29 */
       
    30 
       
    31 const TInt KLayoutTableCount( 6 );
       
    32 const TInt KLayoutTableIndexCount( 2 );
       
    33 
       
    34 const TInt KPaperSizeTableCount( 6 );
       
    35 const TInt KPaperSizeTableIndexCount( 2 );
       
    36 
       
    37 const TInt KQualityTableCount( 4 );
       
    38 const TInt KQualityTableIndexCount( 2 );
       
    39 
       
    40 const TInt KTableCount( 16 ); 
       
    41 const TInt KTableIndexCount( 2 ); 
       
    42 
       
    43 struct TConversionTable
       
    44     {
       
    45     TInt iCapabilityID;
       
    46     TInt iResourceID; 
       
    47     };
       
    48 
       
    49 
       
    50 const TConversionTable KLayoutTable[] = 
       
    51     { 
       
    52     { EDpsLayoutDefault,    R_USB_PRINT_LAYOUT_DEFAULT },
       
    53     { EDpsLayout1Up,        R_USB_PRINT_LAYOUT_1_UP },
       
    54     { EDpsLayout2Up,        R_USB_PRINT_LAYOUT_2_UP }, 
       
    55     { EDpsLayout4Up,        R_USB_PRINT_LAYOUT_4_UP }, 
       
    56     { EDpsLayout6Up,        R_USB_PRINT_LAYOUT_6_UP },  
       
    57     { EDpsLayout9Up,        R_USB_PRINT_LAYOUT_9_UP }
       
    58     }; 
       
    59 
       
    60 
       
    61 const TConversionTable KPaperSizeTable[]=
       
    62     { 
       
    63     { EDpsPaperSizeDefault,    R_USB_PRINT_PAPER_SIZE_AUTOMATIC },
       
    64     { EDpsPaperSizeCard,       R_USB_PRINT_PAPER_SIZE_CARD }, 
       
    65     { EDpsPaperSize4x6,        R_USB_PRINT_PAPER_SIZE_INCH }, 
       
    66     { EDpsPaperSizeLetter,     R_USB_PRINT_PAPER_SIZE_LETTER }, 
       
    67     { EDpsPaperSizeA4,         R_USB_PRINT_PAPER_SIZE_A4 },
       
    68     { EDpsPaperSizeA6,         R_USB_PRINT_PAPER_SIZE_A6 }
       
    69     }; 
       
    70 
       
    71 
       
    72 const TConversionTable KQualityTable[] =
       
    73     { 
       
    74     { EDpsPrintQualityDefault,    R_USB_PRINT_QUALITY_DEFAULT },
       
    75     { EDpsPrintQualityFine,       R_USB_PRINT_QUALITY_HIGH },
       
    76     { EDpsPrintQualityNormal,     R_USB_PRINT_QUALITY_NORMAL }, 
       
    77     { EDpsPrintQualityDraft,      R_USB_PRINT_QUALITY_DRAFT } 
       
    78     }; 
       
    79 
       
    80 
       
    81 #endif