/* * This file Copyright (C) Mnemosyne LLC * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. * * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * * $Id: filters.cc 12611 2011-08-02 03:59:54Z jordan $ */ #include "filters.h" const QString FilterMode::names[NUM_MODES] = { "show-all", "show-active", "show-downloading", "show-seeding", "show-paused", "show-finished", "show-verifying", "show-error", }; int FilterMode :: modeFromName( const QString& name ) { for( int i=0; i