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

#include <MessageFile.h>

Inheritance diagram for MessageFile:
Inheritance graph
Collaboration diagram for MessageFile:
Collaboration graph

Public Member Functions

bool isModified () const
 
const QString & location () const
 
QList< CREMapInformation * > & maps ()
 
 MessageFile (const QString &path)
 
bool parseFile ()
 
const QString & path () const
 
QList< MessageRule * > & rules ()
 
void save ()
 
void setLocation (const QString &location)
 
void setModified (bool modified=true)
 
void setPath (const QString &path)
 
virtual ~MessageFile ()
 

Private Attributes

bool myIsModified
 
QString myLocation
 
QList< CREMapInformation * > myMaps
 
QString myPath
 
QList< MessageRule * > myRules
 

Detailed Description

Definition at line 48 of file MessageFile.h.

Constructor & Destructor Documentation

MessageFile::MessageFile ( const QString &  path)

Definition at line 116 of file MessageFile.cpp.

References MessageRule::myIsModified.

MessageFile::~MessageFile ( )
virtual

Definition at line 122 of file MessageFile.cpp.

Member Function Documentation

bool MessageFile::isModified ( ) const

Definition at line 358 of file MessageFile.cpp.

References MessageRule::myIsModified.

const QString & MessageFile::location ( ) const

Definition at line 127 of file MessageFile.cpp.

Referenced by CREMessagePanel::setItem().

Here is the caller graph for this function:

QList< CREMapInformation * > & MessageFile::maps ( )

Definition at line 240 of file MessageFile.cpp.

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

Here is the caller graph for this function:

bool MessageFile::parseFile ( )
const QString & MessageFile::path ( ) const

Definition at line 132 of file MessageFile.cpp.

Referenced by MessageManager::findMessage(), CREUtils::messageNode(), CREMessagePanel::setItem(), and CREQuestPanel::setItem().

Here is the caller graph for this function:

QList< MessageRule * > & MessageFile::rules ( )
void MessageFile::save ( )

Definition at line 318 of file MessageFile.cpp.

References convert(), Settings::datadir, MessageRule::isModified(), Settings::mapdir, MessageRule::myIsModified, MessageRule::setModified(), and settings.

Referenced by MessageManager::saveMessages().

Here is the call graph for this function:

Here is the caller graph for this function:

void MessageFile::setLocation ( const QString &  location)

Definition at line 146 of file MessageFile.cpp.

References MessageRule::setModified().

Referenced by CREMessagePanel::commitData().

Here is the call graph for this function:

Here is the caller graph for this function:

void MessageFile::setModified ( bool  modified = true)

Definition at line 363 of file MessageFile.cpp.

References MessageRule::myIsModified.

Referenced by CREResourcesWindow::addMessage(), CREMessagePanel::onMoveDown(), and CREMessagePanel::onMoveUp().

Here is the caller graph for this function:

void MessageFile::setPath ( const QString &  path)

Definition at line 137 of file MessageFile.cpp.

References MessageRule::setModified().

Referenced by CREMessagePanel::commitData().

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

bool MessageFile::myIsModified
private

Definition at line 73 of file MessageFile.h.

QString MessageFile::myLocation
private

Definition at line 75 of file MessageFile.h.

QList<CREMapInformation*> MessageFile::myMaps
private

Definition at line 77 of file MessageFile.h.

QString MessageFile::myPath
private

Definition at line 74 of file MessageFile.h.

QList<MessageRule*> MessageFile::myRules
private

Definition at line 76 of file MessageFile.h.


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