diff options
Diffstat (limited to 'src/modules/database/dbintf.cpp')
-rw-r--r-- | src/modules/database/dbintf.cpp | 86 |
1 files changed, 57 insertions, 29 deletions
diff --git a/src/modules/database/dbintf.cpp b/src/modules/database/dbintf.cpp index da83e284d2..e3065d471b 100644 --- a/src/modules/database/dbintf.cpp +++ b/src/modules/database/dbintf.cpp @@ -38,127 +38,155 @@ static INT_PTR srvSetSafetyMode(WPARAM wParam, LPARAM) }
static INT_PTR srvGetContactCount(WPARAM, LPARAM)
-{ return (currDb) ? currDb->GetContactCount() : 0;
+{
+ return (currDb) ? currDb->GetContactCount() : 0;
}
///////////////////////////////////////////////////////////////////////////////
// Contacts
static INT_PTR srvFindFirstContact(WPARAM, LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->FindFirstContact((LPCSTR)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->FindFirstContact((LPCSTR)lParam) : 0;
}
static INT_PTR srvFindNextContact(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->FindNextContact((HANDLE)wParam, (LPCSTR)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->FindNextContact((HANDLE)wParam, (LPCSTR)lParam) : 0;
}
static INT_PTR srvDeleteContact(WPARAM wParam, LPARAM)
-{ return (currDb) ? currDb->DeleteContact((HANDLE)wParam) : 0;
+{
+ return (currDb) ? currDb->DeleteContact((HANDLE)wParam) : 0;
}
static INT_PTR srvAddContact(WPARAM wParam, LPARAM)
-{ return (currDb) ? (INT_PTR)currDb->AddContact() : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->AddContact() : 0;
}
static INT_PTR srvIsDbContact(WPARAM wParam, LPARAM)
-{ return (currDb) ? currDb->IsDbContact((HANDLE)wParam) : 0;
+{
+ return (currDb) ? currDb->IsDbContact((HANDLE)wParam) : 0;
}
///////////////////////////////////////////////////////////////////////////////
// Events
static INT_PTR srvGetEventCount(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? currDb->GetEventCount((HANDLE)wParam) : 0;
+{
+ return (currDb) ? currDb->GetEventCount((HANDLE)wParam) : 0;
}
static INT_PTR srvAddEvent(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->AddEvent((HANDLE)wParam, (DBEVENTINFO*)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->AddEvent((HANDLE)wParam, (DBEVENTINFO*)lParam) : 0;
}
static INT_PTR srvDeleteEvent(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? currDb->DeleteEvent((HANDLE)wParam, (HANDLE)lParam) : 0;
+{
+ return (currDb) ? currDb->DeleteEvent((HANDLE)wParam, (HANDLE)lParam) : 0;
}
static INT_PTR srvGetBlobSize(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? currDb->GetBlobSize((HANDLE)wParam) : 0;
+{
+ return (currDb) ? currDb->GetBlobSize((HANDLE)wParam) : 0;
}
static INT_PTR srvGetEvent(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->GetEvent((HANDLE)wParam, (DBEVENTINFO*)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->GetEvent((HANDLE)wParam, (DBEVENTINFO*)lParam) : 0;
}
static INT_PTR srvMarkEventRead(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? currDb->MarkEventRead((HANDLE)wParam, (HANDLE)lParam) : 0;
+{
+ return (currDb) ? currDb->MarkEventRead((HANDLE)wParam, (HANDLE)lParam) : 0;
}
static INT_PTR srvGetEventContact(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->GetEventContact((HANDLE)wParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->GetEventContact((HANDLE)wParam) : 0;
}
static INT_PTR srvFindFirstEvent(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->FindFirstEvent((HANDLE)wParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->FindFirstEvent((HANDLE)wParam) : 0;
}
static INT_PTR srvFindFirstUnreadEvent(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->FindFirstUnreadEvent((HANDLE)wParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->FindFirstUnreadEvent((HANDLE)wParam) : 0;
}
static INT_PTR srvFindLastEvent(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->FindLastEvent((HANDLE)wParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->FindLastEvent((HANDLE)wParam) : 0;
}
static INT_PTR srvFindNextEvent(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->FindNextEvent((HANDLE)wParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->FindNextEvent((HANDLE)wParam) : 0;
}
static INT_PTR srvFindPrevEvent(WPARAM wParam, LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->FindPrevEvent((HANDLE)wParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->FindPrevEvent((HANDLE)wParam) : 0;
}
///////////////////////////////////////////////////////////////////////////////
// Module chain
static INT_PTR srvEnumModuleNames(WPARAM wParam,LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->EnumModuleNames((DBMODULEENUMPROC)lParam, (void*)wParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->EnumModuleNames((DBMODULEENUMPROC)lParam, (void*)wParam) : 0;
}
///////////////////////////////////////////////////////////////////////////////
// Settings
static INT_PTR srvGetContactSetting(WPARAM wParam,LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->GetContactSetting((HANDLE)wParam, (DBCONTACTGETSETTING*)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->GetContactSetting((HANDLE)wParam, (DBCONTACTGETSETTING*)lParam) : 0;
}
static INT_PTR srvGetContactSettingStr(WPARAM wParam,LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->GetContactSettingStr((HANDLE)wParam, (DBCONTACTGETSETTING*)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->GetContactSettingStr((HANDLE)wParam, (DBCONTACTGETSETTING*)lParam) : 0;
}
static INT_PTR srvGetContactSettingStatic(WPARAM wParam,LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->GetContactSettingStatic((HANDLE)wParam, (DBCONTACTGETSETTING*)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->GetContactSettingStatic((HANDLE)wParam, (DBCONTACTGETSETTING*)lParam) : 0;
}
static INT_PTR srvFreeVariant(WPARAM wParam,LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->FreeVariant((DBVARIANT*)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->FreeVariant((DBVARIANT*)lParam) : 0;
}
static INT_PTR srvWriteContactSetting(WPARAM wParam,LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->WriteContactSetting((HANDLE)wParam, (DBCONTACTWRITESETTING*)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->WriteContactSetting((HANDLE)wParam, (DBCONTACTWRITESETTING*)lParam) : 0;
}
static INT_PTR srvDeleteContactSetting(WPARAM wParam,LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->DeleteContactSetting((HANDLE)wParam, (DBCONTACTGETSETTING*)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->DeleteContactSetting((HANDLE)wParam, (DBCONTACTGETSETTING*)lParam) : 0;
}
static INT_PTR srvEnumContactSettings(WPARAM wParam,LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->EnumContactSettings((HANDLE)wParam, (DBCONTACTENUMSETTINGS*)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->EnumContactSettings((HANDLE)wParam, (DBCONTACTENUMSETTINGS*)lParam) : 0;
}
static INT_PTR srvSetSettingResident(WPARAM wParam,LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->SetSettingResident(wParam, (char*)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->SetSettingResident(wParam, (char*)lParam) : 0;
}
static INT_PTR srvEnumResidentSettings(WPARAM wParam,LPARAM lParam)
-{ return (currDb) ? (INT_PTR)currDb->EnumResidentSettings((DBMODULEENUMPROC)wParam, (void*)lParam) : 0;
+{
+ return (currDb) ? (INT_PTR)currDb->EnumResidentSettings((DBMODULEENUMPROC)wParam, (void*)lParam) : 0;
}
///////////////////////////////////////////////////////////////////////////////
@@ -215,7 +243,7 @@ static INT_PTR srvDestroyInstance(WPARAM wParam,LPARAM lParam) int LoadDbintfModule()
{
CreateServiceFunction(MS_DB_SETSAFETYMODE, srvSetSafetyMode);
-
+
CreateServiceFunction(MS_DB_CONTACT_GETCOUNT, srvGetContactCount);
CreateServiceFunction(MS_DB_CONTACT_FINDFIRST, srvFindFirstContact);
CreateServiceFunction(MS_DB_CONTACT_FINDNEXT, srvFindNextContact);
|