Commit 1b63e84d authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Tristan Matthews

daemon: (client) replace anonymous namespace by static keyword

Refs #50143

Change-Id: I61f33ead66ad910bfa87efb14a4e686a0d3f95c8
parent 2d5c801a
......@@ -33,15 +33,12 @@
#include "configurationmanager.h"
#include "global.h"
namespace {
const char* SERVER_PATH = "/org/sflphone/SFLphone/ConfigurationManager";
}
static const char* SERVER_PATH = "/org/sflphone/SFLphone/ConfigurationManager";
ConfigurationManager::ConfigurationManager(DBus::Connection& connection) :
DBus::ObjectAdaptor(connection, SERVER_PATH)
{}
std::vector<std::string>
ConfigurationManager::getSupportedAudioManagers()
{
......
......@@ -33,15 +33,14 @@
#include "array_size.h"
#include "logger.h"
namespace {
const char *stateAsString(uint32_t state)
{
static const char * STATES[] = {"unknown", "asleep", "connecting",
"connected", "disconnected"};
static const
char *stateAsString(uint32_t state)
{
static const char * STATES[] = {"unknown", "asleep", "connecting",
"connected", "disconnected"};
const size_t idx = state < ARRAYSIZE(STATES) ? state : 0;
return STATES[idx];
}
const size_t idx = state < ARRAYSIZE(STATES) ? state : 0;
return STATES[idx];
}
void NetworkManager::StateChanged(const uint32_t &state)
......
......@@ -30,13 +30,11 @@
#include "presencemanager.h"
namespace {
constexpr static const char* SERVER_PATH = "/org/sflphone/SFLphone/PresenceManager";
constexpr static const char* STATUS_KEY = "Status";
constexpr static const char* LINESTATUS_KEY = "LineStatus";
constexpr static const char* ONLINE_KEY = "Online";
constexpr static const char* OFFLINE_KEY = "Offline";
}
constexpr static const char* SERVER_PATH = "/org/sflphone/SFLphone/PresenceManager";
constexpr static const char* STATUS_KEY = "Status";
constexpr static const char* LINESTATUS_KEY = "LineStatus";
constexpr static const char* ONLINE_KEY = "Online";
constexpr static const char* OFFLINE_KEY = "Offline";
PresenceManager::PresenceManager(DBus::Connection& connection) :
DBus::ObjectAdaptor(connection, SERVER_PATH)
......
......@@ -43,12 +43,10 @@
#include "sip/sippresence.h"
#include "sip/pres_sub_client.h"
namespace {
constexpr static const char* STATUS_KEY = "Status";
constexpr static const char* LINESTATUS_KEY = "LineStatus";
constexpr static const char* ONLINE_KEY = "Online";
constexpr static const char* OFFLINE_KEY = "Offline";
}
constexpr static const char* STATUS_KEY = "Status";
constexpr static const char* LINESTATUS_KEY = "LineStatus";
constexpr static const char* ONLINE_KEY = "Online";
constexpr static const char* OFFLINE_KEY = "Offline";
/**
* Un/subscribe to buddySipUri for an accountID
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment