videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackfiledetailswidget/stub/src/hbglobal.cpp
author hgs
Fri, 02 Jul 2010 17:14:33 +0300
changeset 42 17f382c040b1
parent 38 ff53afa8ad05
permissions -rw-r--r--
201025_02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  class for HbGlobal
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
38
hgs
parents: 36
diff changeset
    18
// Version : %version:   3 %
34
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#include "hbglobal.h"
hgs
parents:
diff changeset
    23
#include <qstring>
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
QString hbTrId( QString string, int n )
hgs
parents:
diff changeset
    27
{
hgs
parents:
diff changeset
    28
    Q_UNUSED( n );
hgs
parents:
diff changeset
    29
hgs
parents:
diff changeset
    30
    QString loc = "";
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
    if ( string == "txt_videos_list_description" )
hgs
parents:
diff changeset
    33
    {
hgs
parents:
diff changeset
    34
        loc = "Description";
hgs
parents:
diff changeset
    35
    }
hgs
parents:
diff changeset
    36
    else if ( string == "txt_videos_list_duration" )
hgs
parents:
diff changeset
    37
    {
hgs
parents:
diff changeset
    38
        loc = "Duration";
hgs
parents:
diff changeset
    39
    }
hgs
parents:
diff changeset
    40
    else if ( string == "txt_videos_list_date" )
hgs
parents:
diff changeset
    41
    {
hgs
parents:
diff changeset
    42
        loc = "Date";
hgs
parents:
diff changeset
    43
    }
hgs
parents:
diff changeset
    44
    else if ( string == "txt_videos_list_modified" )
hgs
parents:
diff changeset
    45
    {
hgs
parents:
diff changeset
    46
        loc = "Modified";
hgs
parents:
diff changeset
    47
    }
hgs
parents:
diff changeset
    48
    else if ( string == "txt_videos_list_location" )
hgs
parents:
diff changeset
    49
    {
hgs
parents:
diff changeset
    50
        loc = "Location";
hgs
parents:
diff changeset
    51
    }
hgs
parents:
diff changeset
    52
    else if ( string == "txt_videos_list_author" )
hgs
parents:
diff changeset
    53
    {
hgs
parents:
diff changeset
    54
        loc = "Author";
hgs
parents:
diff changeset
    55
    }
hgs
parents:
diff changeset
    56
    else if ( string == "txt_videos_list_copyright" )
hgs
parents:
diff changeset
    57
    {
hgs
parents:
diff changeset
    58
        loc = "Copyright";
hgs
parents:
diff changeset
    59
    }
hgs
parents:
diff changeset
    60
    else if ( string == "txt_videos_list_language" )
hgs
parents:
diff changeset
    61
    {
hgs
parents:
diff changeset
    62
        loc = "Language";
hgs
parents:
diff changeset
    63
    }
hgs
parents:
diff changeset
    64
    else if ( string == "txt_videos_list_keywords" )
hgs
parents:
diff changeset
    65
    {
hgs
parents:
diff changeset
    66
        loc = "Keywords";
hgs
parents:
diff changeset
    67
    }
hgs
parents:
diff changeset
    68
    else if ( string == "txt_videos_list_resolution" )
hgs
parents:
diff changeset
    69
    {
hgs
parents:
diff changeset
    70
        loc = "Resolution";
hgs
parents:
diff changeset
    71
    }
hgs
parents:
diff changeset
    72
    else if ( string == "txt_videos_list_format" )
hgs
parents:
diff changeset
    73
    {
hgs
parents:
diff changeset
    74
        loc = "Format";
hgs
parents:
diff changeset
    75
    }
hgs
parents:
diff changeset
    76
    else if ( string == "txt_videos_list_collection_name" )
hgs
parents:
diff changeset
    77
    {
hgs
parents:
diff changeset
    78
        loc = "Collection";
hgs
parents:
diff changeset
    79
    }
36
hgs
parents: 34
diff changeset
    80
    else if ( string == "txt_videos_list_title" )
34
hgs
parents:
diff changeset
    81
    {
hgs
parents:
diff changeset
    82
        loc = "Title";
hgs
parents:
diff changeset
    83
    }
hgs
parents:
diff changeset
    84
    else if ( string == "txt_videos_list_file_size" )
hgs
parents:
diff changeset
    85
    {
hgs
parents:
diff changeset
    86
        loc = "Size";
hgs
parents:
diff changeset
    87
    }
hgs
parents:
diff changeset
    88
    else if ( string == "txt_videos_list_bitrate" )
hgs
parents:
diff changeset
    89
    {
hgs
parents:
diff changeset
    90
        loc = "Bitrate";
hgs
parents:
diff changeset
    91
    }
38
hgs
parents: 36
diff changeset
    92
    else if ( string == "txt_videos_list_l1l2l3" )
36
hgs
parents: 34
diff changeset
    93
    {
hgs
parents: 34
diff changeset
    94
        loc = "%L1 hr %L2 min %L3 sec";
hgs
parents: 34
diff changeset
    95
    }
hgs
parents: 34
diff changeset
    96
    else if ( string == "txt_videos_list_l1_kb" )
hgs
parents: 34
diff changeset
    97
    {
hgs
parents: 34
diff changeset
    98
        loc = "%L1 kB";
hgs
parents: 34
diff changeset
    99
    }
hgs
parents: 34
diff changeset
   100
    else if ( string == "txt_videos_list_l1_mb" )
hgs
parents: 34
diff changeset
   101
    {
hgs
parents: 34
diff changeset
   102
        loc = "%L1 MB";
hgs
parents: 34
diff changeset
   103
    }
hgs
parents: 34
diff changeset
   104
    else if ( string == "txt_videos_list_l1_gb" )
hgs
parents: 34
diff changeset
   105
    {
hgs
parents: 34
diff changeset
   106
        loc = "%L1 GB";
hgs
parents: 34
diff changeset
   107
    }
hgs
parents: 34
diff changeset
   108
    else if ( string == "txt_videos_list_l1_kbps" )
hgs
parents: 34
diff changeset
   109
    {
hgs
parents: 34
diff changeset
   110
        loc = "%L1 kbps";
hgs
parents: 34
diff changeset
   111
    }
hgs
parents: 34
diff changeset
   112
    else if ( string == "txt_videos_list_l1_mbps" )
hgs
parents: 34
diff changeset
   113
    {
hgs
parents: 34
diff changeset
   114
        loc = "%L1 Mbps";
hgs
parents: 34
diff changeset
   115
    }
hgs
parents: 34
diff changeset
   116
    else if ( string == "txt_videos_list_l1l2" )
hgs
parents: 34
diff changeset
   117
    {
hgs
parents: 34
diff changeset
   118
        loc = "%L1x%L2";
hgs
parents: 34
diff changeset
   119
    }
hgs
parents: 34
diff changeset
   120
34
hgs
parents:
diff changeset
   121
    return loc;
hgs
parents:
diff changeset
   122
}
hgs
parents:
diff changeset
   123
hgs
parents:
diff changeset
   124
//End of file