Again more refactorings
This commit is contained in:
1 parent
316f74ada8
commit
55fe233ee7
25 files changed
+474
-458
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user