|
const char * | fieldName () const |
| Returns the name of the field to which the list is associated.
|
|
void | set (const std::vector< std::string > &new_list) |
| Replaces the current list with the one provided.
|
|
void | add (const std::string &item) |
| Adds the provided item to the list.
|
|
void | remove (const std::string &item) |
| Remove the requested item from the list.
|
|
int | moveUp (const std::string &item) |
| Moves the requested item one position up in the list.
|
|
int | moveDown (const std::string &item) |
| Moves the requested item one position down in the list.
|
|
|
std::string | sanitized (const std::string &item) const |
| Returns a sanitized item.
|
|
◆ add()
void BlacklistItem::add |
( |
const std::string & | item | ) |
|
Adds the provided item to the list.
The item will be sanitized before actually being added to the list
- Exceptions
-
◆ fieldName()
const char * BlacklistItem::fieldName |
( |
| ) |
const |
Returns the name of the field to which the list is associated.
The name is translatable
- Exceptions
-
◆ moveDown()
int BlacklistItem::moveDown |
( |
const std::string & | item | ) |
|
Moves the requested item one position down in the list.
- Exceptions
-
◆ moveUp()
int BlacklistItem::moveUp |
( |
const std::string & | item | ) |
|
Moves the requested item one position up in the list.
- Exceptions
-
◆ remove()
void BlacklistItem::remove |
( |
const std::string & | item | ) |
|
Remove the requested item from the list.
- Exceptions
-
◆ sanitized()
std::string BlacklistItem::sanitized |
( |
const std::string & | item | ) |
const |
|
private |
Returns a sanitized item.
- Exceptions
-
◆ set()
void BlacklistItem::set |
( |
const std::vector< std::string > & | new_list | ) |
|
Replaces the current list with the one provided.
All the items will be sanitized before actually becoming part of the list
- Exceptions
-
The documentation for this struct was generated from the following files:
- logdoctor/modules/blacklists/modules/blacklist_item.h
- logdoctor/modules/blacklists/modules/blacklist_item.cpp