User:Dart Raiden/Sandbox

From Miranda NG
Jump to navigation Jump to search

List of Miranda services

Actman

 CreateServiceFunction(MS_ACT_FREELIST ,@ActFreeList);
 CreateServiceFunction(MS_ACT_GETLIST  ,@ActGetList);
 CreateServiceFunction(MS_ACT_RUNBYID  ,@ActRun);
 CreateServiceFunction(MS_ACT_RUNBYNAME,@ActRunGroup);
 CreateServiceFunction(MS_ACT_RUNPARAMS,@ActRunParam);
 CreateServiceFunction(MS_ACT_SELECT   ,@ActSelect);
 CreateServiceFunction('Utils/OpenURL',@DoOpenUrl);
 CreateServiceFunction('Proto/CallContactService', @DoCallContactService);
 CreateServiceFunction('Actman/ButtonsBar/AddButton', @DoAddButton);
 CreateServiceFunction('CList/SetStatusMode', @DoSetStatus);

Alarms

CreateServiceFunction(MS_ALARMS_ADDALARM, AddAlarmService);
CreateServiceFunction(MODULENAME "/ShowHideReminders", ShowHideMenuFunc);

AssocMgr

CreateServiceFunction(MS_ASSOCMGR_ADDNEWFILETYPE, ServiceAddNewFileType); CreateServiceFunction(MS_ASSOCMGR_REMOVEFILETYPE, ServiceRemoveFileType); CreateServiceFunction(MS_ASSOCMGR_ADDNEWURLTYPE, ServiceAddNewUrlType); CreateServiceFunction(MS_ASSOCMGR_REMOVEURLTYPE, ServiceRemoveUrlType);

mir app

CreateServiceFunction(MS_AUTH_SHOWREQUEST, ShowReqWindow); CreateServiceFunction(MS_AUTH_SHOWADDED, ShowAddedWindow);

   CreateServiceFunction("Button/GetWindowProc", GetButtonProc);

CreateServiceFunction(mi.pszService, JoinChat); CreateServiceFunction(mi.pszService, LeaveChat); CreateServiceFunction(mi.pszService, MuteChat); "GChat/DblClickEvent"; CreateServiceFunction(MS_CLC_SETINFOTIPHOVERTIME, SetInfoTipHoverTime); CreateServiceFunction(MS_CLC_GETINFOTIPHOVERTIME, GetInfoTipHoverTime); CreateServiceFunction(mi.pszService, MenuItem_DeleteContact); CreateServiceFunction(mi.pszService, MenuItem_RenameContact); CreateServiceFunction(mi.pszService, MenuItem_AddContactToList);

   DB/UI/Compact
   DB/Ini/ImportFile

CreateServiceFunction(MS_FINDADD_FINDADD, FindAddCommand);

   CreateServiceFunction(MS_FONT_RELOAD, ReloadFonts);

CreateServiceFunction(MS_COLOUR_RELOAD, ReloadColours);

   mi.pszService = "Help/AboutCommand";
   mi.pszService = "Help/IndexCommand";
   mi.pszService = "Help/WebsiteCommand";
   mi.pszService = "Help/BugCommand";

"CLIST/HK/SHOWHIDE"; "CLIST/HK/Opts"; "CLIST/HK/Read";

GG

CreateServiceFunction(GGS_MENUCHOOSE, gg_menuchoose); CreateServiceFunction(GGS_PARSELINK, gg_parselink);


LotusNotify

CreateServiceFunction("LotusNotify/MenuCommand", PluginMenuCommand);

Listeningto

CreateServiceFunction(MS_LISTENINGTO_TTB, TopToolBarClick); CreateServiceFunction(MS_LISTENINGTO_ENABLED, ListeningToEnabled); CreateServiceFunction(MS_LISTENINGTO_ENABLE, EnableListeningTo); CreateServiceFunction(MS_LISTENINGTO_GETTEXTFORMAT, GetTextFormat); CreateServiceFunction(MS_LISTENINGTO_GETPARSEDTEXT, GetParsedFormat); CreateServiceFunction(MS_LISTENINGTO_OVERRIDECONTACTOPTION, GetOverrideContactOption); CreateServiceFunction(MS_LISTENINGTO_GETUNKNOWNTEXT, GetUnknownText); CreateServiceFunction(MS_LISTENINGTO_MAINMENU, MainMenuClicked); CreateServiceFunction(MS_LISTENINGTO_SET_NEW_SONG, SetNewSong); CreateServiceFunction(MS_LISTENINGTO_HOTKEYS_ENABLE, HotkeysEnable); CreateServiceFunction(MS_LISTENINGTO_HOTKEYS_DISABLE, HotkeysDisable); CreateServiceFunction(MS_LISTENINGTO_HOTKEYS_TOGGLE, HotkeysToggle);

HistoryLinkList

CreateServiceFunction("Linklist/MenuCommand", LinkList_Main);

Watrack

slastinf:=CreateServiceFunction(MS_WAT_LASTFMINFO,@SrvLastFMInfo); slast:=CreateServiceFunction(MS_WAT_LASTFM,@SrvLastFM);


mir core

CreateServiceFunction(MS_LANGPACK_RELOAD, srvReloadLangpack);

tabsrmm hSvcHotkeyProcessor = CreateServiceFunction(MS_TABMSG_HOTKEYPROCESS, HotkeyProcessor);

mradio

 hRadioHotkey:=CreateServiceFunction(MS_RADIO_HOTKEY,@mRadio_Hotkey);
pc:=StrCopyE(@buf,'mRadio/Choose');
srvtraystop:=CreateServiceFunction('mRadio/TrayProto',@TrayProto);srvtrayplaypause:=CreateServiceFunction('mRadio/TrayPlayPause',@TrayPlayPause);
 srvtraystop:=CreateServiceFunction('mRadio/TrayStop',@TrayStop);
 


h++

 CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY,@HppShowHistory);
 CreateServiceFunction(MS_HPP_GETVERSION, @HppGetVersion);
 CreateServiceFunction(MS_HPP_SHOWGLOBALSEARCH,@HppShowGlobalSearch);
 CreateServiceFunction(MS_HPP_OPENHISTORYEVENT,@HppOpenHistoryEvent);
 CreateServiceFunction(MS_HPP_EG_WINDOW,@ExtWindowNative);
 CreateServiceFunction(MS_HPP_EG_EVENT,@ExtEventNative);
 CreateServiceFunction(MS_HPP_EG_NAVIGATE,@ExtNavigate);

Change Keyboard Layout

CreateServiceFunction(MS_CKL_CHANGELAYOUT, APIChangeLayout); CreateServiceFunction(MS_CKL_GETLAYOUTOFTEXT, APIGetLayoutOfText); CreateServiceFunction(MS_CKL_CHANGETEXTLAYOUT, APIChangeTextLayout);


NewStory

mi.pszService = MS_HISTORY_SHOWCONTACTHISTORY;

StdUIHist

CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY, UserHistoryCommand);

Avatar History

CreateServiceFunction(MS_AVATARHISTORY_SHOWDIALOG, ShowDialogSvc); CreateServiceFunction(MS_AVATARHISTORY_ENABLED, IsEnabled); CreateServiceFunction(MS_AVATARHISTORY_GET_CACHED_AVATAR, GetCachedAvatar);

Simple status msg

CreateServiceFunction(MS_AWAYMSG_SHOWAWAYMSG, GetMessageCommand); CreateServiceFunction(MS_SIMPLESTATUSMSG_COPYMSG, CopyAwayMsgCommand); CreateServiceFunction(MS_SIMPLESTATUSMSG_GOTOURLMSG, GoToURLMsgCommand);

StdAway

CreateServiceFunction(MS_AWAYMSG_SHOWAWAYMSG, GetMessageCommand);

NewAwaySys

CreateServiceFunction(MS_AWAYSYS_SETCONTACTSTATMSG, SetContactStatMsg); CreateServiceFunction(MS_AWAYSYS_AUTOREPLY_TOGGLE, ToggleSendOnEvent); CreateServiceFunction(MS_AWAYSYS_AUTOREPLY_ON, srvAutoreplyOn); CreateServiceFunction(MS_AWAYSYS_AUTOREPLY_OFF, srvAutoreplyOff); CreateServiceFunction(MS_AWAYSYS_AUTOREPLY_USEDEFAULT, srvAutoreplyUseDefault); CreateServiceFunction(MS_AWAYMSG_GETSTATUSMSGW, GetStatusMsgW);

CreateServiceFunction(MS_NAS_GETSTATEA, GetStateA); CreateServiceFunction(MS_NAS_SETSTATEA, SetStateA); CreateServiceFunction(MS_NAS_GETSTATEW, GetStateW); CreateServiceFunction(MS_NAS_SETSTATEW, SetStateW); CreateServiceFunction(MS_NAS_INVOKESTATUSWINDOW, InvokeStatusWindow);

// and old AwaySysMod service, for compatibility reasons CreateServiceFunction(MS_AWAYSYS_SETSTATUSMODE, SetStatusMode);

// add that funky thingy (just tweaked a bit, was spotted in Miranda's src code)

   / we have to read the status message from contacts too... err

CreateServiceFunction(MS_AWAYMSG_SHOWAWAYMSG, GetContactStatMsg);

   	CreateServiceFunction(MS_AWAYSYS_FREEVARMEM, srvFreeVarMem);

CreateServiceFunction(MS_AWAYSYS_VARIABLESHANDLER, srvVariablesHandler);

BasicHistory

CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY, ShowContactHistory); CreateServiceFunction(MS_HISTORY_EXECUTE_TASK, ExecuteTaskService);

Boltun

CreateServiceFunction(SERV_CONTACT_AUTO_CHAT, ContactClickAutoChat); CreateServiceFunction(SERV_CONTACT_NOT_TO_CHAT, ContactClickNotToChat); CreateServiceFunction(SERV_CONTACT_START_CHATTING, ContactClickStartChatting);

BossKey

CreateServiceFunction(MS_BOSSKEY_HIDE, BossKeyHideMiranda); // Create service

BuddyExpectator

CreateServiceFunction("BuddyExpectator/actionReturned", ContactReturnedAction); CreateServiceFunction("BuddyExpectator/actionStillAbsent", ContactStillAbsentAction); CreateServiceFunction("BuddyExpectator/actionMissYou", MissYouAction);

   CreateServiceFunction("BuddyExpectator/actionMissYouClick", MenuMissYouClick);

StopSpamMod CreateServiceFunction("/RemoveTmp", (MIRANDASERVICE)RemoveTmp);

Toptoolbar CreateServiceFunction(TTBI_SOUNDSONOFF, TTBInternalSoundsOnOff); CreateServiceFunction(TTBI_MAINMENUBUTT, TTBInternalMainMenuButt); CreateServiceFunction(TTBI_STATUSMENUBUTT, TTBInternalStatusMenuButt);


StdClist CreateServiceFunction(MS_CLIST_GETSTATUSMODE, GetStatusMode);

NewGPG dbEventType.iconService = MODULENAME "/GetEventIcon"; dbEventType.textService = MODULENAME "/GetEventText";

   mi.pszService = "/LoadPubKey"
   mi.pszService = "/ToggleEncryption";
   mi.pszService = "/SendKey";
   mi.pszService = "/ExportGPGKeys";
   mi.pszService = "/ImportGPGKeys";
   

ClientChangeNotify

CreateServiceFunction(MS_CCN_TOGGLEPOPUPS, srvTogglePopups);

Clist blind

CreateServiceFunction("CloseAction", CloseAction);

   CreateServiceFunction(MS_CLIST_GETSTATUSMODE, GetStatusMode);

Clist nicer CreateServiceFunction("CloseAction", CloseAction);

   CreatCreateServiceFunction("CList/GetContactStatusMsg", GetContactStatusMessage);

CreateServiceFunction("CList/GetContactStatusMsg", GetContactStatusMessage); CreateServiceFunction(MS_CLUI_SHOWMAINMENU, CLN_ShowMainMenu); CreateServiceFunction(MS_CLUI_SHOWSTATUSMENU, CLN_ShowStatusMenu); CreateServiceFunction(MS_CLIST_FRAMES_ADDFRAME, CLUIFramesAddFrame); CreateServiceFunction(MS_CLIST_FRAMES_REMOVEFRAME, CLUIFramesRemoveFrame);

CreateServiceFunction(MS_CLIST_FRAMES_SETFRAMEOPTIONS, CLUIFramesSetFrameOptions); CreateServiceFunction(MS_CLIST_FRAMES_GETFRAMEOPTIONS, CLUIFramesGetFrameOptions); CreateServiceFunction(MS_CLIST_FRAMES_UPDATEFRAME, CLUIFramesUpdateFrame);

CreateServiceFunction(MS_CLIST_FRAMES_SHFRAMETITLEBAR, CLUIFramesShowHideFrameTitleBar); CreateServiceFunction(MS_CLIST_FRAMES_SHOWALLFRAMESTB, CLUIFramesShowAllTitleBars); CreateServiceFunction(MS_CLIST_FRAMES_HIDEALLFRAMESTB, CLUIFramesHideAllTitleBars); CreateServiceFunction(MS_CLIST_FRAMES_SHFRAME, CLUIFramesShowHideFrame); CreateServiceFunction(MS_CLIST_FRAMES_SHOWALLFRAMES, CLUIFramesShowAll);

CreateServiceFunction(MS_CLIST_FRAMES_ULFRAME, CLUIFramesLockUnlockFrame); CreateServiceFunction(MS_CLIST_FRAMES_UCOLLFRAME, CLUIFramesCollapseUnCollapseFrame); CreateServiceFunction(MS_CLIST_FRAMES_SETUNBORDER, CLUIFramesSetUnSetBorder); CreateServiceFunction(MS_CLIST_FRAMES_SETSKINNED, CLUIFramesSetUnSetSkinned);

CreateServiceFunction(CLUIFRAMESSETALIGN, CLUIFramesSetAlign); CreateServiceFunction(CLUIFRAMESMOVEDOWN, CLUIFramesMoveDown); CreateServiceFunction(CLUIFRAMESMOVEUP, CLUIFramesMoveUp);

CreateServiceFunction(CLUIFRAMESSETALIGNALTOP, CLUIFramesSetAlignalTop); CreateServiceFunction(CLUIFRAMESSETALIGNALCLIENT, CLUIFramesSetAlignalClient); CreateServiceFunction(CLUIFRAMESSETALIGNALBOTTOM, CLUIFramesSetAlignalBottom);

CreateServiceFunction("Set_Floating", CLUIFrameSetFloat);

   CreateServiceFunction("CLISTMENUSGroup/GroupMenuOnAddService", GroupMenu_OnAddService);
   mi.pszService = "CLISTMENUSGroup/CommandHelper";
   

StdClist CreateServiceFunction("CloseAction", CloseAction);

StatusManager CreateServiceFunction(MS_CS_SETSTATUSEX, SetStatusEx); CreateServiceFunction(MS_CS_GETPROTOCOUNT, GetProtocolCountService); hServices[0] = CreateServiceFunction(MS_KS_STOPRECONNECTING, StopReconnectingService); hServices[1] = CreateServiceFunction(MS_KS_ENABLEPROTOCOL, EnableProtocolService); hServices[2] = CreateServiceFunction(MS_KS_ISPROTOCOLENABLED, IsProtocolEnabledService); hServices[3] = CreateServiceFunction(MS_KS_ANNOUNCESTATUSCHANGE, AnnounceStatusChangeService);

Console CreateServiceFunction(MS_CONSOLE_SHOW_HIDE, ShowHideConsole);

CrashDumper CreateServiceFunction(MS_CRASHDUMPER_STORETOFILE, StoreVersionInfoToFile); CreateServiceFunction(MS_CRASHDUMPER_STORETOCLIP, StoreVersionInfoToClipboard); CreateServiceFunction(MS_CRASHDUMPER_VIEWINFO, ViewVersionInfo); CreateServiceFunction(MS_CRASHDUMPER_GETINFO, GetVersionInfo); CreateServiceFunction(MS_CRASHDUMPER_URL, OpenUrl); CreateServiceFunction(MS_SERVICEMODE_LAUNCH, ServiceModeLaunch);

CSList

mir_snprintf(buf, "CSList/ShowList/%s", protoName);

UInfoEx CreateServiceFunction(MS_USERINFO_REMINDER_LIST, DlgAnniversaryListShow); CreateServiceFunction(MS_USERINFO_SHOWDIALOG, ShowDialog); CreateServiceFunction("UserInfo/AddPage", AddPage);

PluginUpdater CreateServiceFunction(MODULENAME "/ParseUri", ParseUriService); CreateServiceFunction(MS_PU_SHOWLIST, ShowListCommand);

NoHistory CreateServiceFunction(MS_NOHISTORY_TOGGLE, ServiceToggle); CreateServiceFunction(MS_NOHISTORY_CLEAR, ServiceClear);

Popup+ CreateServiceFunction(MS_POPUP_CREATEVFX LPGEN("Square fading"), svcCreateEffect_MyTestEffect);

StdEmail CreateServiceFunction(MS_EMAIL_SENDEMAIL, SendEMailCommand);

MirLua static INT_PTR CreateServiceFunctionEnvParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM param) HANDLE CMLuaEnvironment::CreateServiceFunction(const char *name, int ref)

iehistory CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY, ShowContactHistoryService);

ieview CreateServiceFunction(MS_IEVIEW_WINDOW, HandleIEWindow); CreateServiceFunction(MS_IEVIEW_EVENT, HandleIEEvent); CreateServiceFunction(MS_IEVIEW_NAVIGATE, HandleIENavigate); CreateServiceFunction("IEView/ReloadOptions", ReloadOptions);

Jabber CreateServiceFunction("Jabber/MenuChoose", JabberMenuChooseService); "Jabber/AddToBookmarks"; "Jabber/TransportLogin"; "Jabber/TransportGetNicks"; "Jabber/RunCommands"; "Jabber/SendNote"; "Jabber/DirectPresenceDummySvc"; abber/ResourceSelectorDummySvc"; "Jabber/UseResource_last"

"Jabber/UseResource_server";

ttb.pszService = "JABBER/*/Groupchat"; ttb.pszService = "JABBER/*/Bookmarks"; ttb.pszService = "JABBER/*/ServiceDiscovery"; mir_snprintf(szService, "%s/AdvStatusSet/%s", m_proto->m_szModuleName, m_name);


CountryFlags CreateServiceFunction(MS_FLAGS_DETECTCONTACTORIGINCOUNTRY, ServiceDetectContactOriginCountry); CreateServiceFunction(MS_FLAGS_LOADFLAGICON, ServiceLoadFlagIcon); CreateServiceFunction(MS_FLAGS_CREATEMERGEDFLAGICON, ServiceCreateMergedFlagIcon);

   CreateServiceFunction(MS_FLAGS_IPTOCOUNTRY, ServiceIpToCountry);

StdFile CreateServiceFunction("FtMgr/Show", FtMgrShowCommand);

CreateServiceFunction(MS_PROTO_RECVFILET, Proto_RecvFileT);

CreateServiceFunction(MS_FILE_SENDFILE, SendFileCommand); CreateServiceFunction(MS_FILE_SENDSPECIFICFILES, SendSpecificFiles); CreateServiceFunction(MS_FILE_SENDSPECIFICFILEST, SendSpecificFilesT); CreateServiceFunction(MS_FILE_GETRECEIVEDFILESFOLDER, GetReceivedFilesFolder); CreateServiceFunction("SRFile/RecvFile", RecvFileCommand);

CreateServiceFunction("SRFile/OpenContRecDir", openContRecDir); CreateServiceFunction("SRFile/OpenRecDir", openRecDir);

Fingerprint CreateServiceFunction(MS_FP_SAMECLIENTSW, ServiceSameClientsW); CreateServiceFunction(MS_FP_GETCLIENTDESCRW, ServiceGetClientDescrW); CreateServiceFunction(MS_FP_GETCLIENTICONW, ServiceGetClientIconW);

CurrencyRates

CreateServiceFunction(mi.pszService, CurrencyRatesMenu_EnableDisable);

   	CreateServiceFunction(mi.pszService, CurrencyRatesMenu_RefreshAll);
       	CreateServiceFunction(mi.pszService, CurrencyRatesMenu_CurrencyConverter);
           	CreateServiceFunction(mi.pszService, CurrencyRatesMenu_RefreshContact);
               	CreateServiceFunction(mi.pszService, CurrencyRatesMenu_OpenLogFile);
                   	CreateServiceFunction(mi.pszService, CurrencyRatesMenu_Chart);
                       	CreateServiceFunction(mi.pszService, CurrencyRatesMenu_EditSettings);
                           	CreateServiceFunction(MS_CURRENCYRATES_EXPORT, CurrencyRates_Export);

CreateServiceFunction(MS_CURRENCYRATES_IMPORT, CurrencyRates_Import);

MyDetails

CreateServiceFunction(MS_MYDETAILS_SHOWFRAME, ShowFrameFunc); CreateServiceFunction(MS_MYDETAILS_HIDEFRAME, HideFrameFunc); CreateServiceFunction(MS_MYDETAILS_SHOWHIDEFRAME, ShowHideFrameFunc);

FTPFile

CreateServiceFunction(MS_FTPFILE_UPLOAD, UploadService); CreateServiceFunction(MS_FTPFILE_SHOWMANAGER, ShowManagerService); CreateServiceFunction(MS_FTPFILE_CONTACTMENU, ContactMenuService); CreateServiceFunction(MS_FTPFILE_MAINMENU, MainMenuService);

Clist modern

CreateServiceFunction("CLISTMENUSGroup/GroupMenuOnAddService", GroupMenuOnAddService);

HTTPServer

hShareNewFileService = CreateServiceFunction(MS_SHARE_NEW_FILE, nShareNewFile); hShowStatisticsViewService = CreateServiceFunction(MS_SHOW_STATISTICS_VIEW, nShowStatisticsView);