xtd 0.2.0
system_sound.h
Go to the documentation of this file.
1 #pragma once
5 #include "../core_export.h"
6 #include "../iequatable.h"
7 #include "../object.h"
8 
10 namespace xtd {
12  namespace media {
13  class system_sounds;
27  class core_export_ system_sound : public xtd::iequatable<system_sound>, public xtd::object {
28  public:
30  system_sound() = default;
32 
34 
36  bool equals(const system_sound& sound) const noexcept override;
37 
45  void play() const;
47 
48  private:
49  friend class system_sounds;
50  explicit system_sound(uint32 type);
51  uint32 type_ = 0;
52  };
53  }
54 }
std::type_info type
Stores information about a type.
Definition: types.h:217
Represents a system sound type.
Definition: system_sound.h:27
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:26
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition: types.h:239