2
* This file Copyright (C) 2009 Charles Kerr <charles@transmissionbt.com>
4
* This file is licensed by the GPL version 2. Works owned by the
5
* Transmission project are granted a special exemption to clause 2(b)
6
* so that the bulk of its code can remain under the MIT license.
7
* This exemption does not extend to derived works not owned by
8
* the Transmission project.
15
const QString FilterMode::names[NUM_MODES] = {
24
FilterMode :: modeFromName( const QString& name )
26
for( int i=0; i<NUM_MODES; ++i )
27
if( names[i] == name )
29
return FilterMode().mode(); // use the default value
32
const QString SortMode::names[NUM_MODES] = {
46
SortMode :: modeFromName( const QString& name )
48
for( int i=0; i<NUM_MODES; ++i )
49
if( names[i] == name )
51
return SortMode().mode(); // use the default value