Crossfire Server, Trunk
SoundFile.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef SOUND_FILE_H
14 #define SOUND_FILE_H
15 
16 #include "../assets/AssetWrapper.h"
17 #include "../LicenseManager.h"
18 
19 class SoundFile : public AssetWrapper {
20 public:
21  SoundFile(const std::vector<std::string> &events, AssetWrapper *parent, const QString &name);
22 
23  virtual QString displayName() const override { return myName; }
24 
25  std::vector<LicenseManager::LicenseItem> &license() { return myLicense; }
26 
27  const std::vector<std::string> &events() const { return myEvents; }
28 
29 private:
30  QString myName;
31  std::vector<LicenseManager::LicenseItem> myLicense;
32  std::vector<std::string> myEvents;
33 };
34 
35 #endif /* SOUNDFILE_H */
36 
SoundFile::myName
QString myName
Definition: SoundFile.h:30
SoundFile::myEvents
std::vector< std::string > myEvents
Definition: SoundFile.h:32
SoundFile::SoundFile
SoundFile(const std::vector< std::string > &events, AssetWrapper *parent, const QString &name)
Definition: SoundFile.cpp:16
SoundFile::license
std::vector< LicenseManager::LicenseItem > & license()
Definition: SoundFile.h:25
SoundFile::myLicense
std::vector< LicenseManager::LicenseItem > myLicense
Definition: SoundFile.h:31
AssetWrapper
Definition: AssetWrapper.h:25
SoundFile::displayName
virtual QString displayName() const override
Definition: SoundFile.h:23
SoundFile::events
const std::vector< std::string > & events() const
Definition: SoundFile.h:27
SoundFile
Definition: SoundFile.h:19
give.name
name
Definition: give.py:27