/* * Copyright (C) 2011-2012 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as * published by the Free Software Foundation. * * 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, see . * * Authors: * Jim Nelson * Lucas Beeler * Charles Lindsay * Eric Gregory * Clint Rogers */ #include "photo.h" // util #include #include #include QFileInfo photoDummyFileInfo; /*! * \brief Photo::Photo * \param file */ Photo::Photo(const QFileInfo& file) : MediaSource(file), m_originalSize(), m_originalOrientation(TOP_LEFT_ORIGIN) { photoDummyFileInfo = file; } Photo::~Photo() { } MediaSource::MediaType Photo::type() const { return MediaSource::Photo; } Orientation Photo::orientation() const { return m_originalOrientation; } bool Photo::canBeEdited() const { return true; } void Photo::destroySource(bool destroyBacking, bool asOrphan) { } void Photo::setOriginalOrientation(Orientation orientation) { m_originalOrientation = orientation; }