limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications Class Reference

#include <ApparmorNotifications.hpp>

List of all members.

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 &notificationValues)

Private Attributes

blocxx::COWIntrusiveReference<
Data
m_data

Classes

class  Data


Member Enumeration Documentation

enum limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::EConfigType
 

Enumerator:
E_ENABLED 
E_DISABLED 


Constructor & Destructor Documentation

limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::ApparmorNotifications  ) 
 

Construct an ApparmorNotifications object

limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::~ApparmorNotifications  ) 
 

ApparmorNotifications destructor


Member Function Documentation

bool limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::canReadConfig  ) 
 

Checks whether it is possible to read notify.cfg

Returns:
True on success, false on failure.

bool limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::canReadDisabledConfig  ) 
 

Checks whether it is possible to read notify.cfg.disabled

Returns:
True on success, false on failure.

bool limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::canWriteConfig  ) 
 

Checks whether it is possible to write to notify.cfg

Returns:
True on success, false on failure.

blocxx::Int32 limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::deleteConfig  ) 
 

Deletes notify.cfg

Returns:
0 on success, 1 on failure.

blocxx::Int32 limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::disableConfig  ) 
 

Disables notifications by moving notify.cfg to notify.cfg.disabled

Returns:
0 on success, 1 on failure.

blocxx::String limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::getNotificationsConfigFile  ) 
 

Gets the path to the config file

Returns:
The notify.cfg file path.

blocxx::String limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::getNotificationsDisabledConfigFile  ) 
 

Gets the path to the disabled notify.cfg file.

Returns:
The path to the disabled notify.cfg

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.

Parameters:
[out] The notificationValues map
EConfigType 
Returns:
0 on success, 1 on failure.

void limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::setNotificationsConfigFile const blocxx::String &  value  ) 
 

Sets the path to the config file

Parameters:
[in] value The path to notify.cfg.

void limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::setNotificationsDisabledConfigFile const blocxx::String &  value  ) 
 

Sets the path to the disabled notify.cfg file.

Parameters:
[in] value The path to the disabled notify.cfg file.

blocxx::Int32 limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::writeConfig NotificationsMap notificationValues  ) 
 

Writes the values from notificationValues to notify.cfg.

Parameters:
[in] The notificationValues map
Returns:
0 on success, 1 on failure


Member Data Documentation

blocxx::COWIntrusiveReference<Data> limal::APPARMOR_NOTIFICATIONS_NAMESPACE::ApparmorNotifications::m_data [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 21 07:30:42 2009 by  doxygen 1.4.6