xtd 0.2.0
Loading...
Searching...
No Matches
system_sound.h
Go to the documentation of this file.
1
4#pragma once
5#include "../core_export.h"
6#include "../iequatable.h"
7#include "../object.h"
8
10namespace 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}
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:18
Represents a system sound type.
Definition system_sound.h:27
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:26
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
#define core_export_
Define shared library export.
Definition core_export.h:13
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition types.h:241
std::type_info type
Stores information about a type.
Definition types.h:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10