| 1 | /* |
| 2 | * Copyright (C) 2013 Canonical Ltd. |
| 3 | * |
| 4 | * Authors: |
| 5 | * Nicolas d'Offay <[email protected]> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; version 3. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #include "photo-metadata.h"cxx . . $ `<file>/src/photo/photo-metadata.h`/ |
| 22 | |
| 23 | #include <QDateTime> |
| 24 | |
| 25 | PhotoMetadatacxx . . $ PhotoMetadata#::PhotoMetadatacxx . . $ PhotoMetadata#PhotoMetadata(85c52e162fed56f9).(const char* filepath) |
| 26 | : m_fileSourceInfocxx . . $ PhotoMetadata#m_fileSourceInfo.(filepathcxx . . $ QString#QString(85c52e162fed56f9).) |
| 27 | { |
| 28 | } |
| 29 | |
| 30 | Orientationcxx . . $ Orientation# PhotoMetadatacxx . . $ PhotoMetadata#::orientationcxx . . $ PhotoMetadata#orientation(1e41512987885a7e).() const |
| 31 | { |
| 32 | return BOTTOM_LEFT_ORIGINcxx . . $ BOTTOM_LEFT_ORIGIN.; |
| 33 | } |
| 34 | |
| 35 | PhotoMetadatacxx . . $ PhotoMetadata#* PhotoMetadatacxx . . $ PhotoMetadata#::fromFilecxx . . $ PhotoMetadata#fromFile(8236b352d89bbf1d).(const char* filepath) |
| 36 | { |
| 37 | return new PhotoMetadatacxx . . $ PhotoMetadata#(filepath); |
| 38 | } |
| 39 | |
| 40 | PhotoMetadatacxx . . $ PhotoMetadata#* PhotoMetadatacxx . . $ PhotoMetadata#::fromFilecxx . . $ PhotoMetadata#fromFile(900051fae507d55c).(const QFileInfocxx . . $ QFileInfo# &file) |
| 41 | { |
| 42 | if (file.suffixcxx . . $ QFileInfo#suffix(6ef7b6c27b00b43d).() ==cxx . . $ QString#`operator==`(a9057a466b38c96d). QLatin1Stringcxx . . $ QLatin1String#QLatin1String(85c52e162fed56f9).("jpg")) { |
| 43 | return PhotoMetadatacxx . . $ PhotoMetadata#::fromFilecxx . . $ PhotoMetadata#fromFile(8236b352d89bbf1d).(file.absoluteFilePathcxx . . $ QFileInfo#absoluteFilePath(6ef7b6c27b00b43d).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 44 | } else { |
| 45 | return 0; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | QDateTimecxx . . $ QDateTime# PhotoMetadatacxx . . $ PhotoMetadata#::exposureTimecxx . . $ PhotoMetadata#exposureTime(4e062b5c490497ac).() const |
| 50 | { |
| 51 | return QDateTimecxx . . $ QDateTime#QDateTime(8dacd7eb2aee86a9).(QDatecxx . . $ QDate#QDate(b1146eedae1e1d0b).(2013, 01, 01), QTimecxx . . $ QTime#QTime(748afa4755bc9595).(11, 11, 11)); |
| 52 | } |
| 53 | |
| 54 | QTransformcxx . . $ QTransform# PhotoMetadatacxx . . $ PhotoMetadata#::orientationTransformcxx . . $ PhotoMetadata#orientationTransform(89b51d5baeafd349).() const |
| 55 | { |
| 56 | return QTransformcxx . . $ QTransform#QTransform(1fe60403810619d4).(); |
| 57 | } |
| 58 | |
| 59 | void PhotoMetadatacxx . . $ PhotoMetadata#::setOrientationcxx . . $ PhotoMetadata#setOrientation(94bb006ea383a72d).(Orientationcxx . . $ Orientation# orientation) |
| 60 | { |
| 61 | Q_UNUSEDcxx . . $ `<external>/15045578679651060896/qglobal.h:117:9`!(orientation); |
| 62 | } |
| 63 | |
| 64 | bool PhotoMetadatacxx . . $ PhotoMetadata#::savecxx . . $ PhotoMetadata#save(50ce9a9e25b4a850).() const |
| 65 | { |
| 66 | return true; |
| 67 | } |