summaryrefslogtreecommitdiff
path: root/plugins/WinterSpeak/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WinterSpeak/src')
-rw-r--r--plugins/WinterSpeak/src/AnnounceDatabase.cpp12
-rw-r--r--plugins/WinterSpeak/src/ConfigDatabase.cpp26
2 files changed, 19 insertions, 19 deletions
diff --git a/plugins/WinterSpeak/src/AnnounceDatabase.cpp b/plugins/WinterSpeak/src/AnnounceDatabase.cpp
index 2aebf7cb9b..de701214d8 100644
--- a/plugins/WinterSpeak/src/AnnounceDatabase.cpp
+++ b/plugins/WinterSpeak/src/AnnounceDatabase.cpp
@@ -65,18 +65,18 @@ void AnnounceDatabase::setEventFlag(EventFlag flag, bool state)
//------------------------------------------------------------------------------
void AnnounceDatabase::load()
{
- m_status_flags = db_get_dw(NULL, SPEAK, STATUS_FLAGS, 0xffff);
- m_event_flags = db_get_dw(NULL, SPEAK, EVENT_FLAGS, 0xffff);
- m_max_msg = db_get_dw(NULL, SPEAK, MAX_MSG_SIZE, 50);
+ m_status_flags = db_get_dw(0, SPEAK, STATUS_FLAGS, 0xffff);
+ m_event_flags = db_get_dw(0, SPEAK, EVENT_FLAGS, 0xffff);
+ m_max_msg = db_get_dw(0, SPEAK, MAX_MSG_SIZE, 50);
}
//------------------------------------------------------------------------------
void
AnnounceDatabase::save()
{
- db_set_dw(NULL, SPEAK, STATUS_FLAGS, m_status_flags);
- db_set_dw(NULL, SPEAK, EVENT_FLAGS, m_event_flags);
- db_set_dw(NULL, SPEAK, MAX_MSG_SIZE, m_max_msg);
+ db_set_dw(0, SPEAK, STATUS_FLAGS, m_status_flags);
+ db_set_dw(0, SPEAK, EVENT_FLAGS, m_event_flags);
+ db_set_dw(0, SPEAK, MAX_MSG_SIZE, m_max_msg);
}
//==============================================================================
diff --git a/plugins/WinterSpeak/src/ConfigDatabase.cpp b/plugins/WinterSpeak/src/ConfigDatabase.cpp
index d7b643c18c..06f595b43c 100644
--- a/plugins/WinterSpeak/src/ConfigDatabase.cpp
+++ b/plugins/WinterSpeak/src/ConfigDatabase.cpp
@@ -80,11 +80,11 @@ void ConfigDatabase::load()
{
m_voice_desc.engine = DBGetContactSettingString(SPEAK, ENGINE, L"");
m_voice_desc.voice = DBGetContactSettingString(SPEAK, VOICE, L"");
- m_voice_desc.volume = db_get_dw(NULL, SPEAK, VOLUME, 50);
- m_voice_desc.pitch = db_get_dw(NULL, SPEAK, PITCH, 50);
- m_voice_desc.rate = db_get_dw(NULL, SPEAK, RATE, 50);
+ m_voice_desc.volume = db_get_dw(0, SPEAK, VOLUME, 50);
+ m_voice_desc.pitch = db_get_dw(0, SPEAK, PITCH, 50);
+ m_voice_desc.rate = db_get_dw(0, SPEAK, RATE, 50);
- m_active_flags = db_get_dw(NULL, SPEAK, ACTIVE_FLAGS, 0xffff);
+ m_active_flags = db_get_dw(0, SPEAK, ACTIVE_FLAGS, 0xffff);
m_welcome_msg = DBGetContactSettingString(SPEAK, WELCOME_MSG, L"Welcome to Miranda");
@@ -95,22 +95,22 @@ void ConfigDatabase::load()
}
// load unknown users setting
- m_active_users[0].status = (db_get_b(NULL, SPEAK, ACTIVE_STATE, true) != 0);
- m_active_users[0].message = (db_get_b(NULL, SPEAK, ACTIVE_MSG, true) != 0);
+ m_active_users[0].status = (db_get_b(0, SPEAK, ACTIVE_STATE, true) != 0);
+ m_active_users[0].message = (db_get_b(0, SPEAK, ACTIVE_MSG, true) != 0);
}
//------------------------------------------------------------------------------
void ConfigDatabase::save()
{
- db_set_ws(NULL, SPEAK, ENGINE, m_voice_desc.engine.c_str());
- db_set_ws(NULL, SPEAK, VOICE, m_voice_desc.voice.c_str());
- db_set_dw(NULL, SPEAK, VOLUME, m_voice_desc.volume);
- db_set_dw(NULL, SPEAK, PITCH, m_voice_desc.pitch);
- db_set_dw(NULL, SPEAK, RATE, m_voice_desc.rate);
+ db_set_ws(0, SPEAK, ENGINE, m_voice_desc.engine.c_str());
+ db_set_ws(0, SPEAK, VOICE, m_voice_desc.voice.c_str());
+ db_set_dw(0, SPEAK, VOLUME, m_voice_desc.volume);
+ db_set_dw(0, SPEAK, PITCH, m_voice_desc.pitch);
+ db_set_dw(0, SPEAK, RATE, m_voice_desc.rate);
- db_set_dw(NULL, SPEAK, ACTIVE_FLAGS, m_active_flags);
+ db_set_dw(0, SPEAK, ACTIVE_FLAGS, m_active_flags);
- db_set_ws(NULL, SPEAK, WELCOME_MSG, m_welcome_msg.c_str());
+ db_set_ws(0, SPEAK, WELCOME_MSG, m_welcome_msg.c_str());
for (ActiveUsersMap::iterator i = m_active_users.begin(); i != m_active_users.end(); ++i)
{