From f3311cd7eb5e87b3718f763a3c08cd3764c84f51 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 28 Jul 2012 16:23:55 +0000 Subject: - added MS_DB_SETDEFAULTPROFILE service for the service plugins - added ability to call the service plugin before loading database - changed the core module modules' loading order git-svn-id: http://svn.miranda-ng.org/main/trunk@1225 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_database.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'include/m_database.h') diff --git a/include/m_database.h b/include/m_database.h index 9fcce5bd8d..f10cb76bfd 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -86,7 +86,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /************************* SERVICES *******************************/ /******************************************************************/ -/* DB/Contact/GetProfileName service +/* DB/GetProfileName service Gets the name of the profile currently being used by the database module. This is the same as the filename of the database wParam = (WPARAM)(UINT)cbName @@ -98,7 +98,7 @@ Returns 0 on success or nonzero otherwise #define MS_DB_GETPROFILENAME "DB/GetProfileName" #define MS_DB_GETPROFILENAMEW "DB/GetProfileNameW" -/* DB/Contact/GetProfilePath service +/* DB/GetProfilePath service Get the path of the base folder where Miranda will store all individual profiles The returned path does NOT include a trailing backslash. Essentially this is what has been set in mirandaboot.ini as ProfileDir. @@ -120,6 +120,15 @@ Returns 0 on success or nonzero otherwise #define MS_DB_GETPROFILENAMET MS_DB_GETPROFILENAME #endif +/* DB/SetDefaultProfile service +Sets the default profile name programmatically +Analog of Database/DefaultProfile in mirandaboot.ini + wParam = (WPARAM)(TCHAR*)ptszProfileName + lParam = 0 (unused) +*/ + +#define MS_DB_SETDEFAULTPROFILE "DB/SetDefaultProfile" + /************************* Contact ********************************/ /* DB/Contact/GetSetting service -- cgit v1.2.3