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;
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.h:22
Represents a system sound type.
Definition system_sound.h: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.h:28
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define core_export_
Define shared library export.
Definition core_export.h:13
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.h:23
std::type_info type
Stores information about a type.
Definition type.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10