File indexing completed on 2025-01-05 03:58:16
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2014-05-24 0007 * Description : a test program for the pto parser 0008 * 0009 * SPDX-FileCopyrightText: 2011-2016 by Benjamin Girault <benjamin dot girault at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 // Local includes 0016 0017 #include "ptofile.h" 0018 0019 using namespace Digikam; 0020 0021 int main(int argc, char* argv[]) 0022 { 0023 if (argc != 2) 0024 { 0025 return 1; 0026 } 0027 0028 QString ptoFile(QString::fromLocal8Bit(argv[1])); 0029 0030 PTOFile file(QLatin1String("2014.0")); 0031 file.openFile(ptoFile); 0032 0033 PTOType* const ptoData = file.getPTO(); 0034 delete ptoData; 0035 0036 return 0; 0037 }