Again more refactorings

This commit is contained in:
feedc0de committed 2021-11-02 14:18:28 +01:00
1 parent 316f74ada8
commit 55fe233ee7
25 files changed
+474 -458

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
#include "cloudtexthelpers.h"
// 3rdparty lib includes
#include <fmt/core.h>
// local includes
#include "cloud.h"
#ifdef FEATURE_CLOUD
std::string CloudCreatedText::text() const
{
return fmt::format("created: {}", cloudClient ? "true" : "false");
}
std::string CloudStartedText::text() const
{
std::string text = "started: ";
if (cloudClient)
text += cloudStarted ? "true" : "false";
return text;
}
std::string CloudConnectedText::text() const
{
std::string text = "connected: ";
if (cloudClient)
text += cloudClient.is_connected() ? "true" : "false";
return text;
}
#endif