1 /* 2 This file is part of the Kasten Framework, made within the KDE community. 3 4 SPDX-FileCopyrightText: 2009, 2012 Friedrich W. H. Kossebau <kossebau@kde.org> 5 6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 7 */ 8 9 #ifndef KASTEN_KASTENCORE_HPP 10 #define KASTEN_KASTENCORE_HPP 11 12 // Qt core 13 #include <QFlags> 14 #include <QLoggingCategory> 15 16 Q_DECLARE_LOGGING_CATEGORY(LOG_KASTEN_CORE) 17 18 namespace Kasten { 19 20 // TODO: reuse terms from vcs 21 enum LocalSyncState 22 { 23 LocalInSync = 0, // TODO: find better name 24 LocalHasChanges 25 }; 26 // TODO: where to store access rights to remote? 27 enum RemoteSyncState 28 { 29 RemoteInSync = 0, // TODO: find better name 30 RemoteHasChanges, 31 RemoteDeleted, 32 // TODO: which KIO slaves are not supported by kdirwatch? 33 RemoteUnknown, 34 /// unknown, e.g. because connection not available/lost 35 RemoteUnreachable 36 }; 37 38 enum ContentFlag 39 { 40 ContentStateNormal = 0, // TODO: is "normal" a good description? 41 ContentHasUnstoredChanges = 1 << 0 // TODO: find better term for "changes not made persistent" 42 }; 43 Q_DECLARE_FLAGS(ContentFlags, ContentFlag) 44 Q_DECLARE_OPERATORS_FOR_FLAGS(ContentFlags) 45 46 enum Answer 47 { 48 Cancel = 0, 49 Ok, 50 Yes, 51 No, 52 Continue, 53 PreviousQuestion, 54 NextQuestion, 55 Save, 56 Overwrite, 57 Discard, 58 AdaptSize 59 }; 60 61 } 62 63 #endif 64