File indexing completed on 2025-01-05 03:58:06

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2010-06-21
0007  * Description : GUI demo program for FacesEngine
0008  *
0009  * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText:      2010 by Alex Jironkin <alexjironkin at gmail dot com>
0011  * SPDX-FileCopyrightText:      2010 by Aditya Bhatt <adityabhatt1991 at gmail dot com>
0012  *
0013  * SPDX-License-Identifier: GPL-2.0-or-later
0014  *
0015  * ============================================================ */
0016 
0017 // Qt includes
0018 
0019 #include <QApplication>
0020 
0021 // Local includes
0022 
0023 #include "demomainwindow.h"
0024 #include "coredbaccess.h"
0025 #include "dbengineparameters.h"
0026 
0027 using namespace Digikam;
0028 using namespace FaceEngineDemo;
0029 
0030 int main(int argc, char* argv[])
0031 {
0032     QApplication a(argc, argv);
0033     a.setApplicationName(QString::fromLatin1("digikam"));          // for DB init.
0034     DbEngineParameters prm = DbEngineParameters::parametersFromConfig();
0035     CoreDbAccess::setParameters(prm, CoreDbAccess::MainApplication);
0036 
0037     MainWindow w;
0038     w.show();
0039 
0040     return a.exec();
0041 }