diff options
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r-- | plugins/ExternalAPI/delphi/m_folders.inc | 127 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_assocmgr.h | 2 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_dbeditorpp.h | 2 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_folders.h | 10 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_proto_listeningto.h | 2 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_shutdown.h | 2 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_skin_eng.h | 2 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_userinfoex.h | 2 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_weather.h | 132 |
9 files changed, 10 insertions, 271 deletions
diff --git a/plugins/ExternalAPI/delphi/m_folders.inc b/plugins/ExternalAPI/delphi/m_folders.inc deleted file mode 100644 index a20a70e857..0000000000 --- a/plugins/ExternalAPI/delphi/m_folders.inc +++ /dev/null @@ -1,127 +0,0 @@ -{
-Custom profile folders plugin for Miranda IM
-
-Copyright © 2005 Cristian Libotean
-
-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 M_FOLDERS}
-{$DEFINE M_FOLDERS}
-
-const
- FOLDERS_API = 501; //dunno why it's here but it is :)
-
- PROFILE_PATH = '%profile_path%';
- CURRENT_PROFILE = '%current_profile%';
- MIRANDA_PATH = '%miranda_path%';
- PLUGINS_PATH = '%miranda_path%\plugins';
- MIRANDA_USERDATA = '%miranda_userdata%';
-
- PROFILE_PATHW = '%profile_path%';
- CURRENT_PROFILEW = '%current_profile%';
- MIRANDA_PATHW = '%miranda_path%';
- MIRANDA_USERDATAW = '%miranda_userdata%';
- PLUGINS_PATHW = '%miranda_path%\plugins';
-
- FOLDER_AVATARS = PROFILE_PATH+'\'+CURRENT_PROFILE+'\avatars';
- FOLDER_VCARDS = PROFILE_PATH+'\'+CURRENT_PROFILE+'\vcards';
- FOLDER_LOGS = PROFILE_PATH+'\'+CURRENT_PROFILE+'\logs';
- FOLDER_RECEIVED_FILES = PROFILE_PATH+'\'+CURRENT_PROFILE+'\received files';
- FOLDER_DOCS = MIRANDA_PATH+'\'+'docs';
-
- FOLDER_CONFIG = PLUGINS_PATH+'\config';
- FOLDER_SCRIPTS = MIRANDA_PATH+'\scripts';
- FOLDER_UPDATES = MIRANDA_PATH+'\updates';
-
- FOLDER_CUSTOMIZE = MIRANDA_PATH+'\customize';
- FOLDER_CUSTOMIZE_SOUNDS = FOLDER_CUSTOMIZE+'\sounds';
- FOLDER_CUSTOMIZE_ICONS = FOLDER_CUSTOMIZE+'\icons';
- FOLDER_CUSTOMIZE_SMILEYS = FOLDER_CUSTOMIZE+'\smileys';
- FOLDER_CUSTOMIZE_SKINS = FOLDER_CUSTOMIZE+'\skins';
- FOLDER_CUSTOMIZE_THEMES = FOLDER_CUSTOMIZE+'\themes';
-
- FOLDERS_NAME_MAX_SIZE = 64; //maximum name and section size
-
- FF_UNICODE = $00000001;
-
-type
- TFOLDERSDATA = record
- cbSize :integer; // size of struct
- szSection :PAnsiChar; // section name, if it doesn't exist it will be created
- // otherwise it will just add this entry to it
- szName :PAnsiChar; // entry name - will be shown in options
- szFormat :TCHAR; // default string format. Fallback string in case
- // there's no entry in the database for this
- // folder. This should be the initial value for
- // the path, users will be able to change it later.
- flags :dword; // FF_* flags
- // V2.0
- szUserName:TChar; // for display purposes. if NULL, plugins gets it as the
- // translated szName String is dup()'d so you can free it
- // later. If you set the unicode string don't forget to set
- // the flag accordingly.
- end;
-
-const
-{
- Folders/Register/Path service
- wParam - not used, must be 0
- lParam - (LPARAM) (const FOLDERDATA *) - Data structure filled with
- the necessary information.
- Returns a handle to the registered path or 0 on error.
- You need to use this to call the other services.
-}
- MS_FOLDERS_REGISTER_PATH:PAnsiChar = 'Folders/Register/Path';
-
-{
- Folders/Get/PathSize service
- wParam - (WPARAM) (int) - handle to registered path
- lParam - (LPARAM) (int *) - pointer to the variable that receives the size of the path
- string (not including the null character). Depending on the flags set when creating the path
- it will either call mir_strlen() or mir_wstrlen() to get the length of the string.
- Returns the size of the buffer.
-}
- MS_FOLDERS_GET_SIZE:PAnsiChar = 'Folders/Get/PathSize';
-
-type
- TFOLDERSGETDATA = record
- cbSize:integer;
- nMaxPathSize:integer; // maximum size of buffer. This represents the number
- // of characters that can be copied to it (so for
- // unicode strings you don't send the number of
- // bytes but the length of the string).
- szPath:TChar; // pointer to the buffer that receives the path without the last "\\"
- Flags: dword; // FF_* flags
- end;
-
-const
-{
- Folders/Get/Path service
- wParam - (WPARAM) (int) - handle to registered path
- lParam - (LPARAM) (FOLDERSGETDATA *) pointer to a FOLDERSGETDATA that has all the relevant fields filled.
- Should return 0 on success, or nonzero otherwise.
-}
- MS_FOLDERS_GET_PATH:PAnsiChar = 'Folders/Get/Path';
-
-{
- Folders/On/Path/Changed
- wParam - (WPARAM) 0
- lParam - (LPARAM) 0
- Triggered when the folders change, you should reget the paths you registered.
-}
- ME_FOLDERS_PATH_CHANGED:PAnsiChar = 'Folders/On/Path/Changed';
-
-{$ENDIF}
diff --git a/plugins/ExternalAPI/m_assocmgr.h b/plugins/ExternalAPI/m_assocmgr.h index d10df20b7f..52f4a1911c 100644 --- a/plugins/ExternalAPI/m_assocmgr.h +++ b/plugins/ExternalAPI/m_assocmgr.h @@ -3,7 +3,7 @@ 'File Association Manager'-Plugin for
Miranda NG: the free IM client for Microsoft* Windows*
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org),
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org),
Copyright (C) 2005-2007 H. Herkenrath
This program is free software; you can redistribute it and/or
diff --git a/plugins/ExternalAPI/m_dbeditorpp.h b/plugins/ExternalAPI/m_dbeditorpp.h index c305231e9d..ce2f25185d 100644 --- a/plugins/ExternalAPI/m_dbeditorpp.h +++ b/plugins/ExternalAPI/m_dbeditorpp.h @@ -2,7 +2,7 @@ Miranda NG: the free IM client for Microsoft* Windows*
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org),
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org),
Copyright (c) 2003-11 Bio, Jonathan Gordon
This program is free software; you can redistribute it and/or
diff --git a/plugins/ExternalAPI/m_folders.h b/plugins/ExternalAPI/m_folders.h index 1f49cec9c8..765472c6c0 100644 --- a/plugins/ExternalAPI/m_folders.h +++ b/plugins/ExternalAPI/m_folders.h @@ -57,15 +57,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. struct FOLDERSDATA
{
- int cbSize; // size of struct
DWORD flags; // FF_* flags
+ HPLUGIN plugin; // plugin which owns a folder
LPCSTR szSection; // section name, if it doesn't exist it will be created otherwise it will just add this entry to it
LPCSTR szName; // entry name - will be shown in options
MAllCStrings szFormat; // default string format. Fallback string in case there's no entry in the database for this folder.
// This should be the initial value for the path, users will be able to change it later.
// String is dup()'d so you can free it later. If you set the unicode string don't forget to set the flag accordingly.
- MAllCStrings szUserName; // for display purposes. if NULL, plugins gets it as the translated szName
- // String is dup()'d so you can free it later. If you set the unicode string don't forget to set the flag accordingly.
};
/*Folders/Register/Path service
@@ -88,7 +86,6 @@ struct FOLDERSDATA struct FOLDERSGETDATA
{
- int cbSize;
int nMaxPathSize; // maximum size of buffer. This represents the number of characters that can be copied to it (so for unicode strings you don't send the number of bytes but the length of the string).
MAllStrings szPath; // pointer to the buffer that receives the path without the last "\\"
DWORD flags; // FF_* flags
@@ -114,6 +111,7 @@ __inline static HANDLE FoldersRegisterCustomPath(const char *section, const char return nullptr;
FOLDERSDATA fd = { sizeof(fd) };
+ fd.plugin = (HPLUGIN)&g_plugin;
fd.szSection = section;
fd.szName = name;
fd.szFormat.a = defaultPath;
@@ -121,16 +119,16 @@ __inline static HANDLE FoldersRegisterCustomPath(const char *section, const char }
#ifdef _UNICODE
-__inline static HANDLE FoldersRegisterCustomPathW(const char *section, const char *name, const wchar_t *defaultPathW, const wchar_t *userNameW = nullptr)
+__inline static HANDLE FoldersRegisterCustomPathW(const char *section, const char *name, const wchar_t *defaultPathW)
{
if (!ServiceExists(MS_FOLDERS_REGISTER_PATH))
return nullptr;
FOLDERSDATA fd = { sizeof(fd) };
+ fd.plugin = (HPLUGIN)&g_plugin;
fd.szSection = section;
fd.szName = name;
fd.szFormat.w = defaultPathW;
- fd.szUserName.w = userNameW;
fd.flags = FF_UNICODE;
return (HANDLE)CallService(MS_FOLDERS_REGISTER_PATH, 0, (LPARAM)&fd);
}
diff --git a/plugins/ExternalAPI/m_proto_listeningto.h b/plugins/ExternalAPI/m_proto_listeningto.h index ef6996db3a..c530342060 100644 --- a/plugins/ExternalAPI/m_proto_listeningto.h +++ b/plugins/ExternalAPI/m_proto_listeningto.h @@ -2,7 +2,7 @@ Miranda NG: the free IM client for Microsoft* Windows*
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org),
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org),
Copyright (c) 2000-06 Miranda ICQ/IM project,
all portions of this codebase are copyrighted to the people
listed in contributors.txt.
diff --git a/plugins/ExternalAPI/m_shutdown.h b/plugins/ExternalAPI/m_shutdown.h index 9240ab14f4..6ec2a5deb6 100644 --- a/plugins/ExternalAPI/m_shutdown.h +++ b/plugins/ExternalAPI/m_shutdown.h @@ -3,7 +3,7 @@ 'AutoShutdown'-Plugin for
Miranda NG: the free IM client for Microsoft* Windows*
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org),
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org),
Copyright (C) 2004-2007 H. Herkenrath
This program is free software; you can redistribute it and/or
diff --git a/plugins/ExternalAPI/m_skin_eng.h b/plugins/ExternalAPI/m_skin_eng.h index dad4ab9fff..d7d2dfc9ff 100644 --- a/plugins/ExternalAPI/m_skin_eng.h +++ b/plugins/ExternalAPI/m_skin_eng.h @@ -2,7 +2,7 @@ Miranda NG: the free IM client for Microsoft* Windows*
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org),
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org),
Copyright (c) 2000-08 Miranda ICQ/IM project,
all portions of this codebase are copyrighted to the people
listed in contributors.txt.
diff --git a/plugins/ExternalAPI/m_userinfoex.h b/plugins/ExternalAPI/m_userinfoex.h index 73882a3031..a0faf471bf 100644 --- a/plugins/ExternalAPI/m_userinfoex.h +++ b/plugins/ExternalAPI/m_userinfoex.h @@ -1,7 +1,7 @@ /*
Miranda NG: the free IM client for Microsoft* Windows*
-Copyright (C) 2012-24 Miranda NG team (https://miranda-ng.org),
+Copyright (C) 2012-25 Miranda NG team (https://miranda-ng.org),
Copyright (c) 2000-09 Miranda ICQ/IM project,
all portions of this codebase are copyrighted to the people
listed in contributors.txt.
diff --git a/plugins/ExternalAPI/m_weather.h b/plugins/ExternalAPI/m_weather.h deleted file mode 100644 index eb9e89f84d..0000000000 --- a/plugins/ExternalAPI/m_weather.h +++ /dev/null @@ -1,132 +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 <http://www.gnu.org/licenses/>.
-*/
-
-#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"
-
-// Below are the service functions for weather contacts
-// The plugin does NOT verify that they are used in weather contact,
-// so bad call on these function may cause crashes.
-
-// Update a single station
-// WPARAM = (HANDLE)hContact
-// LPARAM = NULL
-#define MS_WEATHER_UPDATE "Weather/Update"
-
-// Update a single station + delete old settings
-// WPARAM = (HANDLE)hContact
-// LPARAM = NULL
-#define MS_WEATHER_REFRESH "Weather/Refresh"
-
-// View the brief info of a contact
-// WPARAM = (HANDLE)hContact
-// LPARAM = NULL
-#define MS_WEATHER_BRIEF "Weather/Brief"
-
-// Use default browser to open the complete forecast on web
-// WPARAM = (HANDLE)hContact
-// LPARAM = NULL
-#define MS_WEATHER_COMPLETE "Weather/CompleteForecast"
-
-// Use default browser to open the weather map defined for the contact
-// WPARAM = (HANDLE)hContact
-// LPARAM = NULL
-#define MS_WEATHER_MAP "Weather/Map"
-
-// Open the external log of the weather contact
-// WPARAM = (HANDLE)hContact
-// LPARAM = NULL
-#define MS_WEATHER_LOG "Weather/Log"
-
-// Edit weather contact setting
-// WPARAM = (HANDLE)hContact
-// LPARAM = NULL
-#define MS_WEATHER_EDIT "Weather/Edit"
-
-// parse the string to turn it to weather display
-// WPARAM = (WEATHERINFO*)hContact
-// LPARAM = (char*)display_str
-#define MS_WEATHER_GETDISPLAY "Weather/GetDisplay"
-
-// =============== WEATHER EVENTS ================
-
-/*
-HANDLE hContact = (HANDLE)wParam;
-BOOL Condition_Changed = (BOOL)lParam;
-
-hContact is the handle of updated contact
-If the weather condition is differ from the last update (either temperature/condition,
-or the last update time, depend what the user choose in the options), then
-Condition_Changed is true; otherwise is false.
-*/
-#define ME_WEATHER_UPDATED "Miranda/Weather/Updated"
-
-/*
-Shows a warning message for Weather Popup.
-wParam = (char*) lpzMessage
-lParam = Type
-Type can either be SM_WARNING, SM_NOTIFY, or SM_WEATHERALERT
-
-This event is used to avoid the error popup to occurs within a thread, so the "Use
-multiply thread" fuction don't have to be enabled for weather popups to work.
-*/
-#define SM_WEATHERALERT 16
-#define ME_WEATHER_ERROR "Miranda/Weather/Error"
-
-
-#endif //M_WEATHER_H__
|