Crossfire Server, Trunk  R20763
ScriptFileManager.h
Go to the documentation of this file.
1 #ifndef SCRIPTFILEMANAGER_H
2 #define SCRIPTFILEMANAGER_H
3 
4 #include <QHash>
5 
6 class ScriptFile;
8 
11 {
12  public:
14  virtual ~ScriptFileManager();
15 
16  QList<ScriptFile*> scriptsForMap(CREMapInformation* map);
17 
23  ScriptFile* getFile(const QString& path);
24 
29  void removeMap(CREMapInformation* map);
30 
31  QList<ScriptFile*> scripts() const;
32 
33  private:
34  QHash<QString, ScriptFile*> myScripts;
35 };
36 
37 #endif /* SCRIPTFILEMANAGER_H */
38 
virtual ~ScriptFileManager()
QHash< QString, ScriptFile * > myScripts
QList< ScriptFile * > scriptsForMap(CREMapInformation *map)
void removeMap(CREMapInformation *map)
QList< ScriptFile * > scripts() const
ScriptFile * getFile(const QString &path)