summaryrefslogtreecommitdiff
path: root/plugins/SimpleStatusMsg/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SimpleStatusMsg/src')
-rw-r--r--plugins/SimpleStatusMsg/src/Version.h14
-rw-r--r--plugins/SimpleStatusMsg/src/awaymsg.cpp2
-rw-r--r--plugins/SimpleStatusMsg/src/commonheaders.h41
-rw-r--r--plugins/SimpleStatusMsg/src/main.cpp21
-rw-r--r--plugins/SimpleStatusMsg/src/msgbox.cpp2
-rw-r--r--plugins/SimpleStatusMsg/src/options.cpp6
-rw-r--r--plugins/SimpleStatusMsg/src/simplestatusmsg.h1
-rw-r--r--plugins/SimpleStatusMsg/src/stdafx.cpp18
-rw-r--r--plugins/SimpleStatusMsg/src/utils.cpp2
9 files changed, 66 insertions, 41 deletions
diff --git a/plugins/SimpleStatusMsg/src/Version.h b/plugins/SimpleStatusMsg/src/Version.h
new file mode 100644
index 0000000000..8202a98614
--- /dev/null
+++ b/plugins/SimpleStatusMsg/src/Version.h
@@ -0,0 +1,14 @@
+#define __MAJOR_VERSION 1
+#define __MINOR_VERSION 9
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 4
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "Simple status message"
+#define __FILENAME "SimpleStatusMsg.dll"
+#define __DESCRIPTION "Provides a simple way to set status and away messages."
+#define __AUTHOR "Bartosz 'Dezeath' Białek, Harven"
+#define __AUTHOREMAIL "dezred@gmail.com"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2006-2011 Bartosz Białek, 2005 Harven"
diff --git a/plugins/SimpleStatusMsg/src/awaymsg.cpp b/plugins/SimpleStatusMsg/src/awaymsg.cpp
index c4954e77dd..60d26d3b56 100644
--- a/plugins/SimpleStatusMsg/src/awaymsg.cpp
+++ b/plugins/SimpleStatusMsg/src/awaymsg.cpp
@@ -23,8 +23,8 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
#include "commonheaders.h"
-#include "simplestatusmsg.h"
static HANDLE hAwayMsgMenuItem;
static HANDLE hCopyMsgMenuItem;
diff --git a/plugins/SimpleStatusMsg/src/commonheaders.h b/plugins/SimpleStatusMsg/src/commonheaders.h
index 843a3555fa..5b6128774c 100644
--- a/plugins/SimpleStatusMsg/src/commonheaders.h
+++ b/plugins/SimpleStatusMsg/src/commonheaders.h
@@ -18,48 +18,45 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-// to enable all 0.9.0 core functions
-#define MIRANDA_VER 0x0A00
-// to enable custom langpacks
-#define MIRANDA_CUSTOM_LP
-
#define _WIN32_IE 0x0501
#define _CRT_SECURE_NO_WARNINGS
-#include <m_stdhdr.h>
-
#include <windows.h>
-#include <commctrl.h>
-#include <stdio.h>
-#include <string.h>
#include <time.h>
#include <newpluginapi.h>
-#include <m_button.h>
-#include <m_clist.h>
#include <m_clistint.h>
#include <m_skin.h>
-#include <m_system_cpp.h>
#include <m_options.h>
#include <m_langpack.h>
#include <m_protosvc.h>
-#include <m_utils.h>
#include <m_database.h>
#include <m_awaymsg.h>
#include <m_idle.h>
#include <m_icolib.h>
-#include <m_protoint.h>
#include <m_hotkeys.h>
#include <m_icq.h>
#include <win2k.h>
-#include "../../protocols/IcqOscarJ/src/icq_constants.h"
-#include "m_fortunemsg.h"
-#include "m_statusplugins.h"
-#include "m_toptoolbar.h"
-#include "m_variables.h"
-#include "m_simpleaway.h"
-#include "m_simplestatusmsg.h"
+#include <m_fortunemsg.h>
+#include <m_statusplugins.h>
+#include <m_toptoolbar.h>
+#include <m_variables.h>
+#include <m_simpleaway.h>
+#include <m_simplestatusmsg.h>
+#include "simplestatusmsg.h"
#include "resource.h"
+#include "Version.h"
+
+#define MTYPE_AUTOONLINE 0xE7 // Auto online message (internal only)
+#define MTYPE_AUTOAWAY 0xE8 // Auto away message
+#define MTYPE_AUTOBUSY 0xE9 // Auto occupied message
+#define MTYPE_AUTONA 0xEA // Auto not available message
+#define MTYPE_AUTODND 0xEB // Auto do not disturb message
+#define MTYPE_AUTOFFC 0xEC // Auto free for chat message
+
+extern UINT_PTR g_uUpdateMsgTimer;
+extern VOID CALLBACK UpdateMsgTimerProc(HWND, UINT, UINT_PTR, DWORD);
+extern VOID APIENTRY HandlePopupMenu(HWND hwnd, POINT pt, HWND edit_control);
diff --git a/plugins/SimpleStatusMsg/src/main.cpp b/plugins/SimpleStatusMsg/src/main.cpp
index 95213ff9c3..61328bad26 100644
--- a/plugins/SimpleStatusMsg/src/main.cpp
+++ b/plugins/SimpleStatusMsg/src/main.cpp
@@ -17,9 +17,8 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
#include "commonheaders.h"
-#include "simplestatusmsg.h"
-#include <io.h>
HINSTANCE g_hInst;
@@ -35,16 +34,16 @@ static HANDLE *hProtoStatusMenuItem;
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
- "Simple Status Message",
- PLUGIN_MAKE_VERSION(1, 9, 0, 4),
- "Provides a simple way to set status and away messages.",
- "Bartosz 'Dezeath' Białek, Harven",
- "dezred"/*antispam*/"@"/*antispam*/"gmail"/*antispam*/"."/*antispam*/"com",
- "© 2006-2011 Bartosz Białek, © 2005 Harven",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- // {768CE156-34AC-45a3-B53B-0083C47615C4}
- { 0x768ce156, 0x34ac, 0x45a3, { 0xb5, 0x3b, 0x0, 0x83, 0xc4, 0x76, 0x15, 0xc4 } }
+ // {768CE156-34AC-45A3-B53B-0083C47615C4}
+ {0x768ce156, 0x34ac, 0x45a3, {0xb5, 0x3b, 0x0, 0x83, 0xc4, 0x76, 0x15, 0xc4}}
};
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
diff --git a/plugins/SimpleStatusMsg/src/msgbox.cpp b/plugins/SimpleStatusMsg/src/msgbox.cpp
index 15f7bfb487..240c26a441 100644
--- a/plugins/SimpleStatusMsg/src/msgbox.cpp
+++ b/plugins/SimpleStatusMsg/src/msgbox.cpp
@@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
#include "commonheaders.h"
-#include "simplestatusmsg.h"
#define I_ICON_DEL 0
#define I_ICON_HIST 1
diff --git a/plugins/SimpleStatusMsg/src/options.cpp b/plugins/SimpleStatusMsg/src/options.cpp
index 76928064f3..4aef49ef2d 100644
--- a/plugins/SimpleStatusMsg/src/options.cpp
+++ b/plugins/SimpleStatusMsg/src/options.cpp
@@ -17,12 +17,8 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "commonheaders.h"
-#include "simplestatusmsg.h"
-extern UINT_PTR g_uUpdateMsgTimer;
-extern VOID CALLBACK UpdateMsgTimerProc(HWND, UINT, UINT_PTR, DWORD);
-extern VOID APIENTRY HandlePopupMenu(HWND hwnd, POINT pt, HWND edit_control);
+#include "commonheaders.h"
static void RebuildStatusMenu(void)
{
diff --git a/plugins/SimpleStatusMsg/src/simplestatusmsg.h b/plugins/SimpleStatusMsg/src/simplestatusmsg.h
index 95b3311273..f78f04dcbc 100644
--- a/plugins/SimpleStatusMsg/src/simplestatusmsg.h
+++ b/plugins/SimpleStatusMsg/src/simplestatusmsg.h
@@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
#ifndef SIMPLESTATUSMSG_H__
#define SIMPLESTATUSMSG_H__ 1
diff --git a/plugins/SimpleStatusMsg/src/stdafx.cpp b/plugins/SimpleStatusMsg/src/stdafx.cpp
new file mode 100644
index 0000000000..e7e41dae3c
--- /dev/null
+++ b/plugins/SimpleStatusMsg/src/stdafx.cpp
@@ -0,0 +1,18 @@
+/*
+Copyright (C) 2012-13 Miranda NG Project (http://miranda-ng.org)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation version 2
+of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "commonheaders.h" \ No newline at end of file
diff --git a/plugins/SimpleStatusMsg/src/utils.cpp b/plugins/SimpleStatusMsg/src/utils.cpp
index a6ff747867..7632dc1cf3 100644
--- a/plugins/SimpleStatusMsg/src/utils.cpp
+++ b/plugins/SimpleStatusMsg/src/utils.cpp
@@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
#include "commonheaders.h"
-#include "simplestatusmsg.h"
static LIST<void> arProtoHooks(5);