diff options
Diffstat (limited to 'protocols/Tox/src/tox_utils.cpp')
| -rw-r--r-- | protocols/Tox/src/tox_utils.cpp | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_utils.cpp b/protocols/Tox/src/tox_utils.cpp index 29e43d425b..68736bfd08 100644 --- a/protocols/Tox/src/tox_utils.cpp +++ b/protocols/Tox/src/tox_utils.cpp @@ -63,4 +63,16 @@ void CToxProto::ShowNotification(const TCHAR *message, int flags, MCONTACT hCont  bool CToxProto::IsFileExists(std::tstring path)
  {
  	return _taccess(path.c_str(), 0) == 0;
 +}
 +
 +MEVENT CToxProto::AddEventToDb(MCONTACT hContact, WORD type, DWORD timestamp, DWORD flags, PBYTE pBlob, DWORD cbBlob)
 +{
 +	DBEVENTINFO dbei = { sizeof(dbei) };
 +	dbei.szModule = this->m_szModuleName;
 +	dbei.timestamp = timestamp;
 +	dbei.eventType = type;
 +	dbei.cbBlob = cbBlob;
 +	dbei.pBlob = pBlob;
 +	dbei.flags = flags;
 +	return db_event_add(hContact, &dbei);
  }
\ No newline at end of file  | 
