From 864081102a5f252415f41950b3039a896b4ae9c5 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Mon, 8 Oct 2012 18:43:29 +0000 Subject: Awkwars's plugins - welcome to our trunk git-svn-id: http://svn.miranda-ng.org/main/trunk@1822 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Watrack/status/i_opt_status.inc | 49 +++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 plugins/Watrack/status/i_opt_status.inc (limited to 'plugins/Watrack/status/i_opt_status.inc') diff --git a/plugins/Watrack/status/i_opt_status.inc b/plugins/Watrack/status/i_opt_status.inc new file mode 100644 index 0000000000..09e0c208ce --- /dev/null +++ b/plugins/Watrack/status/i_opt_status.inc @@ -0,0 +1,49 @@ +{} +const + opt_ModStatus :PAnsiChar = 'module/statuses'; + + opt_UseStatus :PAnsiChar = 'usestatus'; + opt_UseExtStat :PAnsiChar = 'useextstat'; + opt_UseMsgs :PAnsiChar = 'usemsgs'; + opt_XStatusSet :PAnsiChar = 'xstatusset'; + opt_KeepStatus :PAnsiChar = 'keepstatus'; + opt_Independed :PAnsiChar = 'independed'; + opt_ClearXStat :PAnsiChar = 'clearxstat'; + opt_SimplMode :PAnsiChar = 'simplemode'; + opt_ListeningTo:PAnsiChar = 'listeningto'; + +function GetModStatus:integer; +begin + result:=DBReadByte(0,PluginShort,opt_ModStatus,1); +end; + +procedure SetModStatus(stat:integer); +begin + DBWriteByte(0,PluginShort,opt_ModStatus,stat); +end; + +procedure LoadOpt; +begin + SimpleMode :=DBReadByte(0,PluginShort,opt_SimplMode ,BST_CHECKED); + UseStatus :=DBReadByte(0,PluginShort,opt_UseStatus ,BST_CHECKED); + UseExtStatus :=DBReadByte(0,PluginShort,opt_UseExtStat ,BST_CHECKED); + UseMessages :=DBReadByte(0,PluginShort,opt_UseMsgs ,BST_CHECKED); + KeepStatus :=DBReadByte(0,PluginShort,opt_KeepStatus ,BST_UNCHECKED); + XIndepended :=DBReadByte(0,PluginShort,opt_Independed ,BST_CHECKED); + ClearXStat :=DBReadByte(0,PluginShort,opt_ClearXStat ,BST_UNCHECKED); + UseListeningTo:=DBReadByte(0,PluginShort,opt_ListeningTo,BST_UNCHECKED); + XStatusSet :=DBReadByte(0,PluginShort,opt_XStatusSet ,1); +end; + +procedure SaveOpt; +begin + DBWriteByte(0,PluginShort,opt_SimplMode ,SimpleMode); + DBWriteByte(0,PluginShort,opt_UseStatus ,UseStatus); + DBWriteByte(0,PluginShort,opt_UseExtStat ,UseExtStatus); + DBWriteByte(0,PluginShort,opt_UseMsgs ,UseMessages); + DBWriteByte(0,PluginShort,opt_KeepStatus ,KeepStatus); + DBWriteByte(0,PluginShort,opt_Independed ,XIndepended); + DBWriteByte(0,PluginShort,opt_ClearXStat ,ClearXStat); + DBWriteByte(0,PluginShort,opt_ListeningTo,UseListeningTo); + DBWriteByte(0,PluginShort,opt_XStatusSet ,XStatusSet); +end; -- cgit v1.2.3