Skip to content

Commit

Permalink
Update MainView.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Madman10K authored Oct 10, 2024
1 parent 3b0eb1e commit cbc35ff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Source/MainView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void ude_session_logout::MainView::logout() noexcept

reply.pending_call_steal_reply(pending);
if (reply.get_type() == DBUS_MESSAGE_TYPE_ERROR)
Logger::log("Error when logging out the system! Error: ", UVKLog::UVK_LOG_TYPE_ERROR, reply.get_error_name());
Logger::log("Error when logging out the system! Error: ", ULOG_LOG_TYPE_ERROR, reply.get_error_name());
}

void ude_session_logout::MainView::poweroff() noexcept
Expand All @@ -127,7 +127,7 @@ void ude_session_logout::MainView::poweroff() noexcept
reply.pending_call_steal_reply(pending);

if (reply.get_type() == DBUS_MESSAGE_TYPE_ERROR)
Logger::log("Error when powering off the system! Error: ", UVKLog::UVK_LOG_TYPE_ERROR, reply.get_error_name());
Logger::log("Error when powering off the system! Error: ", ULOG_LOG_TYPE_ERROR, reply.get_error_name());
}

void ude_session_logout::MainView::restart() noexcept
Expand All @@ -145,7 +145,7 @@ void ude_session_logout::MainView::restart() noexcept
reply.pending_call_steal_reply(pending);

if (reply.get_type() == DBUS_MESSAGE_TYPE_ERROR)
Logger::log("Error when restarting the system! Error: ", UVKLog::UVK_LOG_TYPE_ERROR, reply.get_error_name());
Logger::log("Error when restarting the system! Error: ", ULOG_LOG_TYPE_ERROR, reply.get_error_name());
}

void ude_session_logout::MainView::suspend() noexcept
Expand All @@ -163,7 +163,7 @@ void ude_session_logout::MainView::suspend() noexcept
reply.pending_call_steal_reply(pending);

if (reply.get_type() == DBUS_MESSAGE_TYPE_ERROR)
Logger::log("Error when putting the system to sleep! Error: ", UVKLog::UVK_LOG_TYPE_ERROR, reply.get_error_name());
Logger::log("Error when putting the system to sleep! Error: ", ULOG_LOG_TYPE_ERROR, reply.get_error_name());
}


Expand All @@ -182,7 +182,7 @@ void ude_session_logout::MainView::hibernate() noexcept
reply.pending_call_steal_reply(pending);

if (reply.get_type() == DBUS_MESSAGE_TYPE_ERROR)
Logger::log("Error when putting the system to sleep! Error: ", UVKLog::UVK_LOG_TYPE_ERROR, reply.get_error_name());
Logger::log("Error when putting the system to sleep! Error: ", ULOG_LOG_TYPE_ERROR, reply.get_error_name());
}

void ude_session_logout::MainView::initDBus() noexcept
Expand All @@ -191,7 +191,7 @@ void ude_session_logout::MainView::initDBus() noexcept

if (error.is_set())
{
Logger::log("Error when connecting to the system bus! Error: ", UVKLog::UVK_LOG_TYPE_ERROR, error.message());
Logger::log("Error when connecting to the system bus! Error: ", ULOG_LOG_TYPE_ERROR, error.message());
error.free();
UImGui::Instance::shutdown();
}
Expand Down Expand Up @@ -220,7 +220,7 @@ std::string ude_session_logout::MainView::getSessionID(const std::string& userna

auto result = reply.handleMessage(p);
if (result != UDBus::RESULT_SUCCESS)
Logger::log("Couldn't handle parsing the message reply. Error: ", UVK_LOG_TYPE_ERROR, result);
Logger::log("Couldn't handle parsing the message reply. Error: ", ULOG_LOG_TYPE_ERROR, result);

for (auto& a : v)
{
Expand All @@ -234,7 +234,7 @@ std::string ude_session_logout::MainView::getSessionID(const std::string& userna
decltype(p)::destroy(p);
}
else
Logger::log("Error getting the session list! Error: ", UVKLog::UVK_LOG_TYPE_ERROR, error.message());
Logger::log("Error getting the session list! Error: ", ULOG_LOG_TYPE_ERROR, error.message());

message.unref();
reply.unref();
Expand Down

0 comments on commit cbc35ff

Please sign in to comment.