Warning, file /utilities/okteta/libs/kasten/core/kastencore.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     This file is part of the Kasten Framework, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2009, 2012 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef KASTEN_KASTENCORE_HPP
0010 #define KASTEN_KASTENCORE_HPP
0011 
0012 // Qt core
0013 #include <QFlags>
0014 
0015 namespace Kasten {
0016 
0017 // TODO: reuse terms from vcs
0018 enum LocalSyncState
0019 {
0020     LocalInSync = 0, // TODO: find better name
0021     LocalHasChanges
0022 };
0023 // TODO: where to store access rights to remote?
0024 enum RemoteSyncState
0025 {
0026     RemoteInSync = 0, // TODO: find better name
0027     RemoteHasChanges,
0028     RemoteDeleted,
0029     // TODO: which KIO workers are not supported by kdirwatch?
0030     RemoteUnknown,
0031     /// unknown, e.g. because connection not available/lost
0032     RemoteUnreachable
0033 };
0034 
0035 enum ContentFlag
0036 {
0037     ContentStateNormal = 0, // TODO: is "normal" a good description?
0038     ContentHasUnstoredChanges = 1 << 0 // TODO: find better term for "changes not made persistent"
0039 };
0040 Q_DECLARE_FLAGS(ContentFlags, ContentFlag)
0041 Q_DECLARE_OPERATORS_FOR_FLAGS(ContentFlags)
0042 
0043 enum Answer
0044 {
0045     Cancel = 0,
0046     Ok,
0047     Yes,
0048     No,
0049     Continue,
0050     PreviousQuestion,
0051     NextQuestion,
0052     Save,
0053     Overwrite,
0054     Discard,
0055     AdaptSize
0056 };
0057 
0058 }
0059 
0060 #endif