xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
system_sound.h
Go to the documentation of this file.
1 #pragma once
5 #include "../core_export.h"
6 #include "../object.h"
7 
9 namespace xtd {
11  namespace media {
12  class system_sounds;
19 
20  class core_export_ system_sound : public object {
21  public:
23  system_sound() = default;
24  bool equals(const object& obj) const noexcept override;
25  bool equals(const system_sound& sound) const noexcept;
27 
35  void play() const;
36 
37  private:
38  friend class system_sounds;
39  explicit system_sound(uint32_t type);
40  uint32_t type_ = 0;
41  };
42  }
43 }
Represents a system sound type.
Definition: system_sound.h:20
void play() const
Plays the system sound type.
Retrieves sounds associated with a set of Windows operating system sound-event types....
Definition: system_sounds.h:20
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition: object.h:26
#define core_export_
Define shared library export.
Definition: core_export.h:13
std::type_info type
Stores information about a type.
Definition: types.h:179
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17