/*
    This file is part of the Kasten Framework, made within the KDE community.

    Copyright 2009,2012 Friedrich W. H. Kossebau <kossebau@kde.org>

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) version 3, or any
    later version accepted by the membership of KDE e.V. (or its
    successor approved by the membership of KDE e.V.), which shall
    act as a proxy defined in Section 6 of version 3 of the license.

    This library 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
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef KASTEN_KASTENCORE_HPP
#define KASTEN_KASTENCORE_HPP

// Qt core
#include <QFlags>
#include <QLoggingCategory>

Q_DECLARE_LOGGING_CATEGORY(LOG_KASTEN_CORE)

namespace Kasten {

// TODO: reuse terms from vcs
enum LocalSyncState
{
    LocalInSync = 0, // TODO: find better name
    LocalHasChanges
};
// TODO: where to store access rights to remote?
enum RemoteSyncState
{
    RemoteInSync = 0, // TODO: find better name
    RemoteHasChanges,
    RemoteDeleted,
    // TODO: which KIO slaves are not supported by kdirwatch?
    RemoteUnknown,
    /// unknown, e.g. because connection not available/lost
    RemoteUnreachable
};

enum ContentFlag
{
    ContentStateNormal = 0, // TODO: is "normal" a good description?
    ContentHasUnstoredChanges = 1 << 0 // TODO: find better term for "changes not made persistent"
};
Q_DECLARE_FLAGS(ContentFlags, ContentFlag)
Q_DECLARE_OPERATORS_FOR_FLAGS(ContentFlags)

enum Answer
{
    Cancel = 0,
    Ok,
    Yes,
    No,
    Continue,
    PreviousQuestion,
    NextQuestion,
    Save,
    Overwrite,
    Discard,
    AdaptSize
};

}

#endif
