From 8d3307adf7ba64b75fb4de363f873c97286b0e9b Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 2 Apr 2013 13:26:06 +0000 Subject: - XSoundNotify - adopted git-svn-id: http://svn.miranda-ng.org/main/trunk@4284 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/XSoundNotify/src/SoundNotifyData.cpp | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 plugins/XSoundNotify/src/SoundNotifyData.cpp (limited to 'plugins/XSoundNotify/src/SoundNotifyData.cpp') diff --git a/plugins/XSoundNotify/src/SoundNotifyData.cpp b/plugins/XSoundNotify/src/SoundNotifyData.cpp new file mode 100644 index 0000000000..29723384c7 --- /dev/null +++ b/plugins/XSoundNotify/src/SoundNotifyData.cpp @@ -0,0 +1,37 @@ +#include "Common.h" + +SoundNotifyData::SoundNotifyData() : _contact(0), _soundChanged(false) +{ + +} + +SoundNotifyData::SoundNotifyData(HANDLE contact, const ModuleString & module, const xsn_string & sound) : + _contact(contact), _soundPath(sound), _soundChanged(false) +{ +} + +void SoundNotifyData::setSound(const xsn_string & sound) +{ + _soundChanged = true; + _soundPath = sound; +} + +HANDLE SoundNotifyData::contact() const +{ + return _contact; +} + +const xsn_string & SoundNotifyData::soundPath() const +{ + return _soundPath; +} + +const ModuleString & SoundNotifyData::module() const +{ + return _module; +} + +bool SoundNotifyData::isSoundChanged() const +{ + return _soundChanged; +} -- cgit v1.2.3