Sleds/cppcore/component/storagenodestatus.cpp

57 lines
1.7 KiB
C++
Raw Normal View History

2025-03-13 21:28:38 +00:00
// Copyright (c) 2013, IOnU Security, Inc.
// Copyright (c) 2016, Sequence Logic, Inc. All rights reserved.
/**
* StorageNodeStatus helper functions.
*/
#include "storagenodestatus.h"
using namespace sequencelogic;
const char StorageNodeStatusUtil::STATUS_NAMES[][24] = {
"unknown", // treat this as a no-op
"informational", // node is info only
"pendingDownload", // queued
"pendingDownloadAndOpen", // queued
"downloading", // actively moving
"local", // local to device, used for new or unmanaged files
"localModified", // local and modified, used for new or unmanaged files
"pendingUpload", // queued
"uploading", // actively moving
"offline", // peers/storage/cloud unavailable
"online", // ... available
"syncable", // syncable root
"remote", // not yet locally cached (flushed)
"cached", // a remote file locally cached
"cachedModified", // cached and modified
"not_found", // node not found
"deleted", // eye file deleted by user, node can persist
// CPP ONLY
"ioPending", // temporary file operation in progress on device, node not sync'able
"deletedCached", // eye file deleted by user, locally and on storage guard
// ported from Java 1.2.9 2/17/15 TEB
"shredded", // file exists and is shredded
// new per FxData
"pendingMetadata",
"pruned", // like "remote" except will not download on full sync
"error",
// group/team status
"joined",
"removed",
"rejected",
"invited",
"stub",
// device status
"disabled",
"inactive",
"passreset"
};