/*
    SPDX-FileCopyrightText: 2009 Prakash Mohan <prakash.mohan@kdemail.net>

    SPDX-License-Identifier: GPL-2.0-or-later
*/

#pragma once

#include <QString>
#include <QLocale>
#ifndef KSTARS_LITE
#include <kmessagebox.h>
#endif
#include <KLocalizedString>
#include <KStandardGuiItem>

/**
 * @namespace OAL
 *
 * Open Astronomy Log (OAL) is a free and open XML schema definition for all kinds of astronomical observations.
 * KStars supports this schema and enables an observer to share observations with other observers or move observations among software products.
 *
 * The Schema was developed by the German "Fachgruppe für Computerastronomie" (section for computerastronomy) which is a subsection of Germany's largest
 * astronomy union (VDS - Vereinigung der Sternfreunde e.V.)
 */
namespace OAL
{
class Log;
class Observer;
class Observation;
class Equipment;
class Eyepiece;
class Scope;
class DSLRLens;
class Filter;
class Imager;
class Site;
class Session;
class Target;
class Lens;
inline int warningOverwrite(QString message)
{
#ifndef KSTARS_LITE
    return KMessageBox::warningContinueCancel(nullptr, message, xi18n("Overwrite"), KStandardGuiItem::overwrite(),
            KStandardGuiItem::cancel());
#else
    return 0;
#endif
}
}
