#include <ApparmorNotifications.hpp>
Public Types | |
| enum | EConfigType { E_ENABLED, E_DISABLED } |
Public Member Functions | |
| ApparmorNotifications () | |
| ~ApparmorNotifications () | |
| blocxx::String | getNotificationsConfigFile () |
| void | setNotificationsConfigFile (const blocxx::String &value) |
| blocxx::String | getNotificationsDisabledConfigFile () |
| void | setNotificationsDisabledConfigFile (const blocxx::String &value) |
| bool | canReadConfig () |
| bool | canWriteConfig () |
| bool | canReadDisabledConfig () |
| blocxx::Int32 | deleteConfig () |
| blocxx::Int32 | disableConfig () |
| blocxx::Int32 | readConfig (NotificationsMap &retMap, EConfigType readConfigType) |
| blocxx::Int32 | writeConfig (NotificationsMap ¬ificationValues) |
Private Attributes | |
| blocxx::COWIntrusiveReference < Data > | m_data |
Classes | |
| class | Data |
| limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::ApparmorNotifications | ( | ) |
Construct an ApparmorNotifications object
| limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::~ApparmorNotifications | ( | ) |
ApparmorNotifications destructor
| blocxx::String limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::getNotificationsConfigFile | ( | ) |
Gets the path to the config file
| void limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::setNotificationsConfigFile | ( | const blocxx::String & | value | ) |
Sets the path to the config file
| [in] | value | The path to notify.cfg. |
| blocxx::String limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::getNotificationsDisabledConfigFile | ( | ) |
Gets the path to the disabled notify.cfg file.
| void limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::setNotificationsDisabledConfigFile | ( | const blocxx::String & | value | ) |
Sets the path to the disabled notify.cfg file.
| [in] | value | The path to the disabled notify.cfg file. |
| bool limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::canReadConfig | ( | ) |
Checks whether it is possible to read notify.cfg
| bool limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::canWriteConfig | ( | ) |
Checks whether it is possible to write to notify.cfg
| bool limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::canReadDisabledConfig | ( | ) |
Checks whether it is possible to read notify.cfg.disabled
| blocxx::Int32 limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::deleteConfig | ( | ) |
Deletes notify.cfg
| blocxx::Int32 limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::disableConfig | ( | ) |
Disables notifications by moving notify.cfg to notify.cfg.disabled
| blocxx::Int32 limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::readConfig | ( | NotificationsMap & | retMap, | |
| EConfigType | readConfigType | |||
| ) |
Places values from notify.cfg into retMap. If readConfigType is E_DISABLED, it reads from notify.cfg.disabled, instead.
| [out] | The | notificationValues map |
| EConfigType |
| blocxx::Int32 limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::writeConfig | ( | NotificationsMap & | notificationValues | ) |
Writes the values from notificationValues to notify.cfg.
| [in] | The | notificationValues map |
blocxx::COWIntrusiveReference<Data> limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::m_data [private] |
1.5.3