xtd - Reference Guide  0.2.0
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;
24  class core_export_ system_sound : public xtd::object {
25  public:
27  system_sound() = default;
28  bool equals(const object& obj) const noexcept override;
29  bool equals(const system_sound& sound) const noexcept;
31 
33 
42  void play() const;
44 
45  private:
46  friend class system_sounds;
47  explicit system_sound(uint32_t type);
48  uint32_t type_ = 0;
49  };
50  }
51 }
std::type_info type
Stores information about a type.
Definition: types.h:179
Represents a system sound type.
Definition: system_sound.h:24
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Retrieves sounds associated with a set of Windows operating system sound-event types. This class cannot be inherited.
Definition: system_sounds.h:25
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:30