Crossfire Server, Trunk  R20513
Public Member Functions | Private Member Functions | Private Attributes
MessageManager Class Reference

#include <MessageManager.h>

Collaboration diagram for MessageManager:
Collaboration graph

Public Member Functions

MessageFilefindMessage (const QString &path)
 
void loadMessages ()
 
 MessageManager ()
 
QList< MessageFile * > & messages ()
 
const QList< MessageFile * > & messages () const
 
QList< QuestConditionScript * > postConditions () const
 
QList< QuestConditionScript * > preConditions () const
 
void saveMessages ()
 
virtual ~MessageManager ()
 

Private Member Functions

void findPrePost (const QString directory, QList< QuestConditionScript * > &list)
 
void loadDirectory (const QString &directory)
 
QString loadScriptComment (const QString &path) const
 

Private Attributes

QList< MessageFile * > myMessages
 
QList< QuestConditionScript * > myPostConditions
 
QList< QuestConditionScript * > myPreConditions
 

Detailed Description

Definition at line 9 of file MessageManager.h.

Constructor & Destructor Documentation

MessageManager::MessageManager ( )

Definition at line 12 of file MessageManager.cpp.

MessageManager::~MessageManager ( )
virtual

Definition at line 16 of file MessageManager.cpp.

References myMessages, myPostConditions, and myPreConditions.

Member Function Documentation

MessageFile * MessageManager::findMessage ( const QString &  path)

Definition at line 50 of file MessageManager.cpp.

References myMessages, and MessageFile::path().

Referenced by CREMapInformationManager::checkEvent(), and CREMapInformationManager::loadCache().

Here is the call graph for this function:

Here is the caller graph for this function:

void MessageManager::findPrePost ( const QString  directory,
QList< QuestConditionScript * > &  list 
)
private

Definition at line 123 of file MessageManager.cpp.

References Settings::datadir, loadScriptComment(), Settings::mapdir, and settings.

Referenced by loadMessages().

Here is the call graph for this function:

Here is the caller graph for this function:

void MessageManager::loadDirectory ( const QString &  directory)
private

Definition at line 61 of file MessageManager.cpp.

References Settings::datadir, Settings::mapdir, messages(), myMessages, MessageFile::parseFile(), and settings.

Referenced by loadMessages().

Here is the call graph for this function:

Here is the caller graph for this function:

void MessageManager::loadMessages ( )

Definition at line 23 of file MessageManager.cpp.

References findPrePost(), loadDirectory(), myPostConditions, and myPreConditions.

Referenced by CREMainWindow::CREMainWindow().

Here is the call graph for this function:

Here is the caller graph for this function:

QString MessageManager::loadScriptComment ( const QString &  path) const
private

Definition at line 100 of file MessageManager.cpp.

Referenced by findPrePost().

Here is the caller graph for this function:

QList< MessageFile * > & MessageManager::messages ( )

Definition at line 40 of file MessageManager.cpp.

References myMessages.

Referenced by CREResourcesWindow::addMessage(), CREResourcesWindow::fillMessages(), loadDirectory(), CREMessagePanel::setItem(), and CREQuestPanel::setItem().

Here is the caller graph for this function:

const QList< MessageFile * > & MessageManager::messages ( ) const

Definition at line 45 of file MessageManager.cpp.

References myMessages.

QList< QuestConditionScript * > MessageManager::postConditions ( ) const

Definition at line 95 of file MessageManager.cpp.

References myPostConditions.

Referenced by CRERulePanel::CRERulePanel().

Here is the caller graph for this function:

QList< QuestConditionScript * > MessageManager::preConditions ( ) const

Definition at line 90 of file MessageManager.cpp.

References myPreConditions.

Referenced by CRERulePanel::CRERulePanel().

Here is the caller graph for this function:

void MessageManager::saveMessages ( )

Definition at line 32 of file MessageManager.cpp.

References myMessages, and MessageFile::save().

Referenced by CREMainWindow::onSaveMessages().

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

QList<MessageFile*> MessageManager::myMessages
private

Definition at line 26 of file MessageManager.h.

Referenced by findMessage(), loadDirectory(), messages(), saveMessages(), and ~MessageManager().

QList<QuestConditionScript*> MessageManager::myPostConditions
private

Definition at line 28 of file MessageManager.h.

Referenced by loadMessages(), postConditions(), and ~MessageManager().

QList<QuestConditionScript*> MessageManager::myPreConditions
private

Definition at line 27 of file MessageManager.h.

Referenced by loadMessages(), preConditions(), and ~MessageManager().


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