[Kpod-devel] cvs_commit libqtpod/tests checks.cpp, NONE, 1.1 checks.h, NONE, 1.1
Status: Beta
Brought to you by:
fry26
From: Michael S. <fr...@us...> - 2007-02-21 19:39:49
|
Update of /cvsroot/kpod/libqtpod/tests In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4768/tests Added Files: checks.cpp checks.h Log Message: test design --- NEW FILE: checks.cpp --- /*************************************************************************** * Copyright (C) 2006 by Michael Schulze * * mi...@ge... * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include "checks.h" #include "ipod.h" #include <qstringlist.h> using namespace itunesdb; int Checks::run( QStringList arguments ) { IPod * ipod = findFirstIPod(); if ( !ipod ) { return -1; } QStringList unreferenced; ipod->findUnreferencedMusicFiles( unreferenced ); QStringList::iterator unrefIter = unreferenced.begin(); for( ; unrefIter != unreferenced.end(); ++unrefIter ) { printf( "%s\n", (*unrefIter).ascii() ); } return 0; } QString Checks::getName() { return "checks"; } --- NEW FILE: checks.h --- /*************************************************************************** * Copyright (C) 2006 by Michael Schulze * * mi...@ge... * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #ifndef CHECKS_H #define CHECKS_H #include <test.h> /** runs the checks implemented in the ipod class @author Michael Schulze <mi...@ge...> */ class Checks : public Test { public: virtual QString getName(); virtual int run( QStringList arguments ); }; #endif |