videoplayback/videoplaybackview/tsrc/testfiledetailswidget/stub/src/hbglobal.cpp
changeset 44 518105d52e45
parent 38 ff53afa8ad05
child 49 824471cb468a
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
       
     1 /*
       
     2 * Copyright (c) 2010 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:  class for HbGlobal
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:   3 %
       
    19 
       
    20 
       
    21 
       
    22 #include "hbglobal.h"
       
    23 #include <qstring>
       
    24 
       
    25 
       
    26 QString hbTrId( QString string, int n )
       
    27 {
       
    28     Q_UNUSED( n );
       
    29 
       
    30     QString loc = "";
       
    31 
       
    32     if ( string == "txt_videos_list_description" )
       
    33     {
       
    34         loc = "Description";
       
    35     }
       
    36     else if ( string == "txt_videos_list_duration" )
       
    37     {
       
    38         loc = "Duration";
       
    39     }
       
    40     else if ( string == "txt_videos_list_date" )
       
    41     {
       
    42         loc = "Date";
       
    43     }
       
    44     else if ( string == "txt_videos_list_modified" )
       
    45     {
       
    46         loc = "Modified";
       
    47     }
       
    48     else if ( string == "txt_videos_list_location" )
       
    49     {
       
    50         loc = "Location";
       
    51     }
       
    52     else if ( string == "txt_videos_list_author" )
       
    53     {
       
    54         loc = "Author";
       
    55     }
       
    56     else if ( string == "txt_videos_list_copyright" )
       
    57     {
       
    58         loc = "Copyright";
       
    59     }
       
    60     else if ( string == "txt_videos_list_language" )
       
    61     {
       
    62         loc = "Language";
       
    63     }
       
    64     else if ( string == "txt_videos_list_keywords" )
       
    65     {
       
    66         loc = "Keywords";
       
    67     }
       
    68     else if ( string == "txt_videos_list_resolution" )
       
    69     {
       
    70         loc = "Resolution";
       
    71     }
       
    72     else if ( string == "txt_videos_list_format" )
       
    73     {
       
    74         loc = "Format";
       
    75     }
       
    76     else if ( string == "txt_videos_list_collection_name" )
       
    77     {
       
    78         loc = "Collection";
       
    79     }
       
    80     else if ( string == "txt_videos_list_title" )
       
    81     {
       
    82         loc = "Title";
       
    83     }
       
    84     else if ( string == "txt_videos_list_file_size" )
       
    85     {
       
    86         loc = "Size";
       
    87     }
       
    88     else if ( string == "txt_videos_list_bitrate" )
       
    89     {
       
    90         loc = "Bitrate";
       
    91     }
       
    92     else if ( string == "txt_videos_list_l1l2l3" )
       
    93     {
       
    94         loc = "%L1 hr %L2 min %L3 sec";
       
    95     }
       
    96     else if ( string == "txt_videos_list_l1_kb" )
       
    97     {
       
    98         loc = "%L1 kB";
       
    99     }
       
   100     else if ( string == "txt_videos_list_l1_mb" )
       
   101     {
       
   102         loc = "%L1 MB";
       
   103     }
       
   104     else if ( string == "txt_videos_list_l1_gb" )
       
   105     {
       
   106         loc = "%L1 GB";
       
   107     }
       
   108     else if ( string == "txt_videos_list_l1_kbps" )
       
   109     {
       
   110         loc = "%L1 kbps";
       
   111     }
       
   112     else if ( string == "txt_videos_list_l1_mbps" )
       
   113     {
       
   114         loc = "%L1 Mbps";
       
   115     }
       
   116     else if ( string == "txt_videos_list_l1l2" )
       
   117     {
       
   118         loc = "%L1x%L2";
       
   119     }
       
   120 
       
   121     return loc;
       
   122 }
       
   123 
       
   124 //End of file