Crossfire Server, Trunk  R20513
MessageManager.h
Go to the documentation of this file.
1 #ifndef _MESSAGEMANAGER_H
2 #define _MESSAGEMANAGER_H
3 
4 #include <QList>
5 class MessageFile;
6 
8 
10 {
11  public:
13  virtual ~MessageManager();
14 
15  void loadMessages();
16  void saveMessages();
17 
18  QList<MessageFile*>& messages();
19  const QList<MessageFile*>& messages() const;
20  MessageFile* findMessage(const QString& path);
21 
22  QList<QuestConditionScript*> preConditions() const;
23  QList<QuestConditionScript*> postConditions() const;
24 
25  private:
26  QList<MessageFile*> myMessages;
27  QList<QuestConditionScript*> myPreConditions;
28  QList<QuestConditionScript*> myPostConditions;
29 
30  QString loadScriptComment(const QString& path) const;
31  void loadDirectory(const QString& directory);
32  void findPrePost(const QString directory, QList<QuestConditionScript*>& list);
33 };
34 
35 #endif /* _MESSAGEMANAGER_H */
void loadDirectory(const QString &directory)
QList< MessageFile * > & messages()
void findPrePost(const QString directory, QList< QuestConditionScript * > &list)
QList< MessageFile * > myMessages
MessageFile * findMessage(const QString &path)
virtual ~MessageManager()
QList< QuestConditionScript * > myPreConditions
QList< QuestConditionScript * > preConditions() const
QList< QuestConditionScript * > myPostConditions
QList< QuestConditionScript * > postConditions() const
QString loadScriptComment(const QString &path) const