summaryrefslogtreecommitdiff
path: root/plugins/XSoundNotify/src/SoundNotifyData.cpp
blob: ec153d26c45ee4be6874d32bb222f531a9692d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "Common.h"

SoundNotifyData::SoundNotifyData() : _contact(0), _soundChanged(false)
{

}

SoundNotifyData::SoundNotifyData(HANDLE contact, const ModuleString & module, const std::tstring &sound) :
	_contact(contact), _soundPath(sound), _soundChanged(false)
{
}

void SoundNotifyData::setSound(const std::tstring &sound)
{
	_soundChanged = true;
	_soundPath = sound;
}

HANDLE SoundNotifyData::contact() const
{
	return _contact;
}

const std::tstring & SoundNotifyData::soundPath() const
{
	return _soundPath;
}

const ModuleString & SoundNotifyData::module() const
{
	return _module;
}

bool SoundNotifyData::isSoundChanged() const
{
	return _soundChanged;
}