From b24b605821da1f4581d0a66d98f63effbecf46f6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Jan 2025 16:05:50 +0300 Subject: Weather: first version that works --- plugins/ExternalAPI/m_weather.h | 67 ----------------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 plugins/ExternalAPI/m_weather.h (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/m_weather.h b/plugins/ExternalAPI/m_weather.h deleted file mode 100644 index 83793cc651..0000000000 --- a/plugins/ExternalAPI/m_weather.h +++ /dev/null @@ -1,67 +0,0 @@ -/* -Weather Protocol plugin for Miranda IM -Copyright (C) 2005-2009 Boris Krasnovskiy All Rights Reserved -Copyright (C) 2002-2005 Calvin Che - -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 . -*/ - -#ifndef M_WEATHER_H__ -#define M_WEATHER_H__ 1 - -//============ WEATHER CONDITION STRUCT ============ - -// weather conditions (added in v0.1.2.0) -struct WEATHERINFO -{ - MCONTACT hContact; - TCHAR id[128]; - TCHAR city[128]; - TCHAR update[64]; - TCHAR cond[128]; - TCHAR temp[16]; - TCHAR low[16]; - TCHAR high[16]; - TCHAR feel[16]; - TCHAR wind[16]; - TCHAR winddir[64]; - TCHAR dewpoint[16]; - TCHAR pressure[16]; - TCHAR humid[16]; - TCHAR vis[16]; - TCHAR sunrise[32]; - TCHAR sunset[32]; -}; - -// =============== WEATHER SERVICES ================ - -// Enable or disable weather protocol. -// WPARAM = FALSE to toggle, TRUE to use the LPARAM -// LPARAM = TRUE to enable, FALSE to disable -#define MS_WEATHER_ENABLED "Weather/EnableDisable" - -// Update all weather info -// WPARAM = LPARAM = NULL -#define MS_WEATHER_UPDATEALL "Weather/UpdateAll" - -// Update all weather info + erase the old ones -// WPARAM = LPARAM = NULL -#define MS_WEATHER_REFRESHALL "Weather/RefreshAll" - -// parse the string to turn it to weather display -// WPARAM = (WEATHERINFO*)hContact -// LPARAM = (char*)display_str -#define MS_WEATHER_GETDISPLAY "Weather/GetDisplay" - -#endif //M_WEATHER_H__ -- cgit v1.2.3