summaryrefslogtreecommitdiff
path: root/plugins/TrafficCounter/TrafficCounter.h
diff options
context:
space:
mode:
authorVlad Mironov <mironych@googlemail.com>2012-09-20 12:00:44 +0000
committerVlad Mironov <mironych@googlemail.com>2012-09-20 12:00:44 +0000
commit9bd135eb5be03099a8cfbc81ac9903a97044ae0f (patch)
tree49f85c07edf86610f3b7d0e152dfb4e97b9a11f4 /plugins/TrafficCounter/TrafficCounter.h
parent4ac4df14e007a71bf195183a92113e29f984e31c (diff)
Добавлен TrafficCounter
git-svn-id: http://svn.miranda-ng.org/main/trunk@1607 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TrafficCounter/TrafficCounter.h')
-rw-r--r--plugins/TrafficCounter/TrafficCounter.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/plugins/TrafficCounter/TrafficCounter.h b/plugins/TrafficCounter/TrafficCounter.h
new file mode 100644
index 0000000000..2ce9267e84
--- /dev/null
+++ b/plugins/TrafficCounter/TrafficCounter.h
@@ -0,0 +1,85 @@
+/*
+Traffic Counter plugin for Miranda IM
+Copyright 2007-2011 Mironych.
+
+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; either version 2
+of the License, or (at your option) any later version.
+
+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, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
+
+#ifndef _TrafficCounter_H
+#define _TrafficCounter_H
+
+int TrafficRecv(WPARAM wParam,LPARAM lParam);
+int TrafficSend(WPARAM wParam,LPARAM lParam);
+
+//---------------------------------------------------------------------------------------------
+// Èìåíà ïàðàìåòðîâ ñ íàñòðîéêàìè â áàçå
+//---------------------------------------------------------------------------------------------
+#define TRAFFIC_SETTINGS_GROUP "TrafficCounter"
+
+#define SETTINGS_COUNTER_FORMAT "CounterFormat"
+#define SETTINGS_TOOLTIP_FORMAT "TooltipFormat"
+#define SETTINGS_STAT_ACC_OPT "Stat_SelAcc"
+#define SETTINGS_ADDITION_SPACE "traffic_addition_space"
+//
+//notify
+#define SETTINGS_POPUP_BKCOLOR "popup_bkcolor"
+#define SETTINGS_POPUP_FONTCOLOR "popup_font_color"
+#define SETTINGS_POPUP_NOTIFY_SIZE_VALUE "popup_size_value"
+#define SETTINGS_POPUP_NOTIFY_TIME_VALUE "popup_time_value"
+#define SETTINGS_POPUP_TIMEOUT_DEFAULT "popup_timeout_default"
+#define SETTINGS_POPUP_TIMEOUT_VALUE "popup_timeout_value"
+//timer notify
+#define TIMER_SAVE_TICK (3001 + 1)
+#define TIMER_NOTIFY_TICK (3001 + 2)
+//popup menu
+#define POPUPMENU_HIDE (3001 + 4)
+#define POPUPMENU_ONTOP (3001 + 5)
+#define POPUPMENU_CLEAR_NOW (3001 + 8)
+//time counter
+#define TIMER_REDRAW 3300
+#define TIMER_TOOLTIP 3301
+#define SETTINGS_TOTAL_ONLINE_TIME "TotalOnlineTime"
+// Ðàçíûå ôëàæêè
+#define SETTINGS_WHAT_DRAW "WhatDraw"
+
+// Íàñòðîéêè äëÿ ïðîòîêîëîâ - ñîõðàíÿþòñÿ â âåòêå ïðîòîêîëà
+#define SETTINGS_PROTO_FLAGS "tc_Flags"
+
+/*====== ÔÓÍÊÖÈÈ ÌÎÄÓËß =====*/
+int TrafficCounterOptInitialise(WPARAM wParam,LPARAM lParam);
+int TrafficCounterModulesLoaded(WPARAM wParam,LPARAM lParam);
+int TrafficCounterShutdown(WPARAM wParam,LPARAM lParam);
+void SaveSettings(BYTE);
+void CreateTrafficWindow(HWND);
+//popup
+void UpdateNotifyTimer(void);
+void NotifyOnSend(void);
+void NotifyOnRecv(void);
+//time counter
+int ProtocolAckHook(WPARAM wParam,LPARAM lParam);
+void CreateProtocolList(void);
+void DestroyProtocolList(void);
+int OnAccountsListChange(WPARAM wParam, LPARAM lParam);
+//font service suppot
+int UpdateFonts(WPARAM wParam, LPARAM lParam);
+void UpdateTrafficWindowSize(void);
+unsigned short int TrafficWindowHeight(void);
+// Ðèñîâàíèå
+int TrafficCounter_Draw(HWND, HDC);
+int PaintTrafficCounterWindow(HWND, HDC);
+// Âñïîìîãàòåëüíûå ôóíêöèè
+int MenuCommand_TrafficShowHide(WPARAM, LPARAM);
+
+#endif;