A wrapper around the communication between a diagnostic client and a diagnostic server. More...
#include <conversation.h>
Public Member Functions | |
ara::core::Result< ActivityStatusType > | GetActivityStatus () |
Activity status property getter. More... | |
void | Deactivate () |
Set the conversation activity status to 'inactive'. | |
ara::core::Result< void > | SetActivityNotifier (std::function< void(ActivityStatusType)> notifier) |
Register an activity status change callback. More... | |
ara::core::Result< ConversationIdentifierType > | GetConversationIdentifier () |
Conversation ID property getter. More... | |
ara::core::Result< SessionControlType > | GetDiagnosticSession () |
Diagnostic session property getter. More... | |
void | SetDiagnosticSession (SessionControlType diagnosticSession) |
Diagnostic session property setter. More... | |
ara::core::Result< void > | SetDiagnosticSessionNotifier (std::function< void(SessionControlType)> notifier) |
Register a diagnostic session change callback. More... | |
ara::core::Result< std::string > | GetDiagnosticSessionShortName (SessionControlType session) |
Convert a given session to a short name. More... | |
ara::core::Result< SecurityLevelType > | GetDiagnosticSecurityLevel () |
Security level property getter. More... | |
ara::core::Result< void > | SetSecurityLevelNotifier (std::function< void(SecurityLevelType)> notifier) |
Register a security level change callback. More... | |
ara::core::Result< std::string > | GetDiagnosticSecurityLevelShortName (SecurityLevelType securityLevel) |
Convert a given security level to a short name. More... | |
ara::core::Result< void > | ResetToDefaultSession () |
Reset the ongoing session to default. More... | |
Static Public Member Functions | |
static ara::core::Result< std::reference_wrapper< Conversation > > | GetConversation (MetaInfo &metaInfo) |
Conversation factory. More... | |
static std::vector< std::reference_wrapper< Conversation > > | GetAllConversations () |
Get all the existing conversations. More... | |
static std::vector< std::reference_wrapper< Conversation > > | GetCurrentActiveConversations () |
Get all the active conversations. More... | |
A wrapper around the communication between a diagnostic client and a diagnostic server.
ara::core::Result< ActivityStatusType > ara::diag::Conversation::GetActivityStatus | ( | ) |
Activity status property getter.
|
static |
Get all the existing conversations.
|
static |
Conversation factory.
metaInfo | Additional information to create a conversation |
ara::core::Result< ConversationIdentifierType > ara::diag::Conversation::GetConversationIdentifier | ( | ) |
Conversation ID property getter.
|
static |
Get all the active conversations.
ara::core::Result< SecurityLevelType > ara::diag::Conversation::GetDiagnosticSecurityLevel | ( | ) |
Security level property getter.
ara::core::Result< std::string > ara::diag::Conversation::GetDiagnosticSecurityLevelShortName | ( | SecurityLevelType | securityLevel | ) |
Convert a given security level to a short name.
securityLevel | Security level to be converted |
ara::core::Result< SessionControlType > ara::diag::Conversation::GetDiagnosticSession | ( | ) |
Diagnostic session property getter.
ara::core::Result< std::string > ara::diag::Conversation::GetDiagnosticSessionShortName | ( | SessionControlType | session | ) |
Convert a given session to a short name.
session | Session to be converted |
ara::core::Result< void > ara::diag::Conversation::ResetToDefaultSession | ( | ) |
Reset the ongoing session to default.
ara::core::Result< void > ara::diag::Conversation::SetActivityNotifier | ( | std::function< void(ActivityStatusType)> | notifier | ) |
Register an activity status change callback.
notifier | Callback to be invoked when the activity status changed |
void ara::diag::Conversation::SetDiagnosticSession | ( | SessionControlType | diagnosticSession | ) |
Diagnostic session property setter.
diagnosticSession | New diagnostic session |
ara::core::Result< void > ara::diag::Conversation::SetDiagnosticSessionNotifier | ( | std::function< void(SessionControlType)> | notifier | ) |
Register a diagnostic session change callback.
notifier | Callback to be invoked when the diagnostic session changed |
ara::core::Result< void > ara::diag::Conversation::SetSecurityLevelNotifier | ( | std::function< void(SecurityLevelType)> | notifier | ) |
Register a security level change callback.
notifier | Callback to be invoked when the security level status changed |