Crossfire Server, Trunk  R21017
MessageRule Class Reference

#include <MessageFile.h>

+ Inheritance diagram for MessageRule:
+ Collaboration diagram for MessageRule:

Public Member Functions

const QString & comment () const
 
const QStringList & include () const
 
bool isModified () const
 
const QStringList & match () const
 
QStringList & match ()
 
 MessageRule ()
 
 MessageRule (const MessageRule &original)
 
const QStringList & messages () const
 
const QList< QStringList > & postconditions () const
 
const QList< QStringList > & preconditions () const
 
const QList< QStringList > & replies () const
 
void setComment (const QString &comment)
 
void setInclude (const QStringList &include)
 
void setMatch (const QStringList &match)
 
void setMessages (const QStringList &messages)
 
void setModified (bool modified=true)
 
void setPostconditions (const QList< QStringList > &postconditions)
 
void setPreconditions (const QList< QStringList > &preconditions)
 
void setReplies (const QList< QStringList > &replies)
 
virtual ~MessageRule ()
 

Private Attributes

QString myComment
 
QStringList myInclude
 
bool myIsModified
 
QStringList myMatch
 
QStringList myMessages
 
QList< QStringList > myPostconditions
 
QList< QStringList > myPreconditions
 
QList< QStringList > myReplies
 

Detailed Description

Definition at line 9 of file MessageFile.h.

Constructor & Destructor Documentation

◆ MessageRule() [1/2]

MessageRule::MessageRule ( )

Definition at line 12 of file MessageFile.cpp.

References myIsModified.

Referenced by MessageFile::parseFile().

+ Here is the caller graph for this function:

◆ MessageRule() [2/2]

MessageRule::MessageRule ( const MessageRule original)

Definition at line 17 of file MessageFile.cpp.

References match(), messages(), myIsModified, myMatch, myMessages, myPostconditions, myPreconditions, myReplies, postconditions(), preconditions(), and replies().

+ Here is the call graph for this function:

◆ ~MessageRule()

MessageRule::~MessageRule ( )
virtual

Definition at line 27 of file MessageFile.cpp.

Member Function Documentation

◆ comment()

const QString & MessageRule::comment ( ) const

Definition at line 31 of file MessageFile.cpp.

References myComment.

Referenced by convert(), and setComment().

+ Here is the caller graph for this function:

◆ include()

const QStringList & MessageRule::include ( ) const

Definition at line 86 of file MessageFile.cpp.

References myInclude.

Referenced by convert(), CREMessagePanel::fillRuleItem(), setInclude(), CREMessagePanel::setItem(), and CRERulePanel::setMessageRule().

+ Here is the caller graph for this function:

◆ isModified()

bool MessageRule::isModified ( ) const

Definition at line 106 of file MessageFile.cpp.

References myIsModified.

Referenced by MessageFile::save().

+ Here is the caller graph for this function:

◆ match() [1/2]

const QStringList & MessageRule::match ( ) const

◆ match() [2/2]

QStringList & MessageRule::match ( )

Definition at line 46 of file MessageFile.cpp.

References myMatch.

◆ messages()

const QStringList & MessageRule::messages ( ) const

Definition at line 76 of file MessageFile.cpp.

References myMessages.

Referenced by convert(), CREMessagePanel::fillRuleItem(), MessageRule(), CREMessagePanel::setItem(), CRERulePanel::setMessageRule(), and setMessages().

+ Here is the caller graph for this function:

◆ postconditions()

const QList< QStringList > & MessageRule::postconditions ( ) const

◆ preconditions()

const QList< QStringList > & MessageRule::preconditions ( ) const

◆ replies()

const QList< QStringList > & MessageRule::replies ( ) const

Definition at line 96 of file MessageFile.cpp.

References myReplies.

Referenced by convert(), CREMessagePanel::fillRuleItem(), MessageRule(), CREMessagePanel::setItem(), CRERulePanel::setMessageRule(), and setReplies().

+ Here is the caller graph for this function:

◆ setComment()

void MessageRule::setComment ( const QString &  comment)

Definition at line 36 of file MessageFile.cpp.

References comment(), and myComment.

Referenced by MessageFile::parseFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setInclude()

void MessageRule::setInclude ( const QStringList &  include)

Definition at line 91 of file MessageFile.cpp.

References include(), and myInclude.

Referenced by CRERulePanel::onIncludeModified(), and MessageFile::parseFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMatch()

void MessageRule::setMatch ( const QStringList &  match)

Definition at line 51 of file MessageFile.cpp.

References match(), and myMatch.

Referenced by CRERulePanel::onMatchModified(), and MessageFile::parseFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMessages()

void MessageRule::setMessages ( const QStringList &  messages)

Definition at line 81 of file MessageFile.cpp.

References messages(), and myMessages.

Referenced by CRERulePanel::onMessageModified(), and MessageFile::parseFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setModified()

void MessageRule::setModified ( bool  modified = true)

Definition at line 111 of file MessageFile.cpp.

References myIsModified.

Referenced by CREMessagePanel::onAddRule(), MessageFile::save(), MessageFile::setLocation(), and MessageFile::setPath().

+ Here is the caller graph for this function:

◆ setPostconditions()

void MessageRule::setPostconditions ( const QList< QStringList > &  postconditions)

Definition at line 71 of file MessageFile.cpp.

References myPostconditions, and postconditions().

Referenced by CRERulePanel::onPostModified(), and MessageFile::parseFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPreconditions()

void MessageRule::setPreconditions ( const QList< QStringList > &  preconditions)

Definition at line 61 of file MessageFile.cpp.

References myPreconditions, and preconditions().

Referenced by CRERulePanel::onPreModified(), and MessageFile::parseFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setReplies()

void MessageRule::setReplies ( const QList< QStringList > &  replies)

Definition at line 101 of file MessageFile.cpp.

References myReplies, and replies().

Referenced by CRERulePanel::onRepliesModified(), and MessageFile::parseFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ myComment

QString MessageRule::myComment
private

Definition at line 39 of file MessageFile.h.

Referenced by comment(), and setComment().

◆ myInclude

QStringList MessageRule::myInclude
private

Definition at line 44 of file MessageFile.h.

Referenced by include(), and setInclude().

◆ myIsModified

bool MessageRule::myIsModified
private

◆ myMatch

QStringList MessageRule::myMatch
private

Definition at line 40 of file MessageFile.h.

Referenced by match(), MessageRule(), and setMatch().

◆ myMessages

QStringList MessageRule::myMessages
private

Definition at line 43 of file MessageFile.h.

Referenced by MessageRule(), messages(), and setMessages().

◆ myPostconditions

QList<QStringList> MessageRule::myPostconditions
private

Definition at line 42 of file MessageFile.h.

Referenced by MessageRule(), postconditions(), and setPostconditions().

◆ myPreconditions

QList<QStringList> MessageRule::myPreconditions
private

Definition at line 41 of file MessageFile.h.

Referenced by MessageRule(), preconditions(), and setPreconditions().

◆ myReplies

QList<QStringList> MessageRule::myReplies
private

Definition at line 45 of file MessageFile.h.

Referenced by MessageRule(), replies(), and setReplies().


The documentation for this class was generated from the following files: