From 9a43a9abb164583656e36a87b6ccf3b7f5ba48e2 Mon Sep 17 00:00:00 2001 From: am Date: Fri, 3 Jul 2009 15:48:55 +0000 Subject: -Finished MovieModel::setDataAt() git-svn-id: file:///var/svn/repos2/shemov/trunk@375 f440f766-f032-0410-8965-dc7d17de2ca0 --- coveritem.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 coveritem.cpp (limited to 'coveritem.cpp') diff --git a/coveritem.cpp b/coveritem.cpp new file mode 100644 index 0000000..658c630 --- /dev/null +++ b/coveritem.cpp @@ -0,0 +1,20 @@ +/* + 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. +*/ + +#include + +#include "coveritem.h" + +CoverItem::CoverItem(const QString &filename, const QString &type, const QString &md5) : mFilename(filename), mMd5(md5) { + bool valid = false; + if((type == "front") || (type == "back")){ + valid = true; + } + if(!valid){ + qWarning("Invalid covertype: %s", qPrintable(type)); + } +} -- cgit v1.2.3-70-g09d2