xtd 0.2.0
Loading...
Searching...
No Matches
system_sound.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../core_export.hpp"
6#include "../iequatable.hpp"
7#include "../object.hpp"
8
10namespace xtd {
12 namespace media {
13 class system_sounds;
29 class core_export_ system_sound : public xtd::iequatable<system_sound>, public xtd::object {
30 public:
32 system_sound() = default;
34
36
38 using object::equals;
39 bool equals(const system_sound& sound) const noexcept override;
40
48 void play() const;
50
51 private:
52 friend class system_sounds;
53 explicit system_sound(uint32 type);
54 uint32 type_ = 0;
55 };
56 }
57}
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Represents a system sound type.
Definition system_sound.hpp:29
void play() const
Plays the system sound type.
Retrieves sounds associated with a set of Windows operating system sound-event types....
Definition system_sounds.hpp:28
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
#define core_export_
Define shared library export.
Definition core_export.hpp:13
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
std::type_info type
Stores information about a type.
Definition type.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10