An action representing a conversation filter to be applied.
More...
#include <conversation_colorize_action.h>
An action representing a conversation filter to be applied.
◆ ConversationAction()
| ConversationAction::ConversationAction |
( |
QObject * |
parent, |
|
|
struct conversation_filter_s * |
conv_filter = NULL |
|
) |
| |
Constructs a new ConversationAction.
- Parameters
-
| parent | The parent QObject. |
| conv_filter | Pointer to the underlying conversation filter structure, defaults to NULL. |
◆ colorNumber()
| int ConversationAction::colorNumber |
( |
| ) |
|
|
inline |
Retrieves the color number associated with this action.
- Returns
- The current color number.
◆ filter()
| const QByteArray ConversationAction::filter |
( |
| ) |
|
|
inline |
Retrieves the filter string as a byte array.
- Returns
- The filter byte array.
◆ isFilterValid()
| bool ConversationAction::isFilterValid |
( |
struct _packet_info * |
pinfo | ) |
|
Checks if the conversation filter is valid for the provided packet information.
- Parameters
-
| pinfo | Pointer to the packet information structure. |
- Returns
- True if the filter is valid, false otherwise.
◆ setColorNumber()
| void ConversationAction::setColorNumber |
( |
int |
color_number | ) |
|
|
inline |
Sets the color number associated with this action.
- Parameters
-
| color_number | The color number to apply. |
◆ setFieldFilter
| void ConversationAction::setFieldFilter |
( |
const QByteArray |
field_filter | ) |
|
|
slot |
Sets the field filter directly.
- Parameters
-
| field_filter | The filter string as a byte array. |
◆ setPacketInfo
| void ConversationAction::setPacketInfo |
( |
struct _packet_info * |
pinfo | ) |
|
|
slot |
Sets the packet information used to build the filter.
- Parameters
-
| pinfo | Pointer to the packet information structure. |
The documentation for this class was generated from the following files: