aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/locales/api_locales.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/locales/api_locales.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Wasabi/api/locales/api_locales.h')
-rw-r--r--Src/Wasabi/api/locales/api_locales.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/Src/Wasabi/api/locales/api_locales.h b/Src/Wasabi/api/locales/api_locales.h
new file mode 100644
index 00000000..0ae75c73
--- /dev/null
+++ b/Src/Wasabi/api/locales/api_locales.h
@@ -0,0 +1,80 @@
+// ----------------------------------------------------------------------------
+// Generated by InterfaceFactory [Fri Oct 17 16:03:31 2003]
+//
+// File : api_locales.h
+// Class : api_locales
+// class layer : Dispatchable Interface
+// ----------------------------------------------------------------------------
+
+#ifndef __API_LOCALES_H
+#define __API_LOCALES_H
+
+#include <bfc/dispatch.h>
+#include <bfc/common.h>
+
+// ----------------------------------------------------------------------------
+
+class NOVTABLE api_locales: public Dispatchable {
+ protected:
+ api_locales() {}
+ ~api_locales() {}
+ public:
+ const wchar_t *locales_getTranslation(const wchar_t *str);
+ void locales_addTranslation(const wchar_t *from, const wchar_t *to);
+ const wchar_t *locales_getBindFromAction(int action);
+ int locales_getNumEntries();
+ const wchar_t *locales_enumEntry(int n);
+ void locales_registerAcceleratorSection(const wchar_t *name, ifc_window *wnd, int global = 0);
+
+ protected:
+ enum {
+ API_LOCALES_LOCALES_GETTRANSLATION = 10,
+ API_LOCALES_LOCALES_ADDTRANSLATION = 20,
+ API_LOCALES_LOCALES_GETBINDFROMACTION = 30,
+ API_LOCALES_LOCALES_GETNUMENTRIES = 40,
+ API_LOCALES_LOCALES_ENUMENTRY = 50,
+ API_LOCALES_LOCALES_REGISTERACCELERATORSECTION = 60,
+ };
+};
+
+// ----------------------------------------------------------------------------
+
+inline const wchar_t *api_locales::locales_getTranslation(const wchar_t *str) {
+ const wchar_t *__retval = _call(API_LOCALES_LOCALES_GETTRANSLATION, (const wchar_t *)0, str);
+ return __retval;
+}
+
+inline void api_locales::locales_addTranslation(const wchar_t *from, const wchar_t *to)
+{
+ _voidcall(API_LOCALES_LOCALES_ADDTRANSLATION, from, to);
+}
+
+inline const wchar_t *api_locales::locales_getBindFromAction(int action) {
+ const wchar_t *__retval = _call(API_LOCALES_LOCALES_GETBINDFROMACTION, (const wchar_t *)0, action);
+ return __retval;
+}
+
+inline int api_locales::locales_getNumEntries() {
+ int __retval = _call(API_LOCALES_LOCALES_GETNUMENTRIES, (int)0);
+ return __retval;
+}
+
+inline const wchar_t *api_locales::locales_enumEntry(int n)
+{
+ const wchar_t *__retval = _call(API_LOCALES_LOCALES_ENUMENTRY, (const wchar_t *)0, n);
+ return __retval;
+}
+
+inline void api_locales::locales_registerAcceleratorSection(const wchar_t *name, ifc_window *wnd, int global) {
+ _voidcall(API_LOCALES_LOCALES_REGISTERACCELERATORSECTION, name, wnd, global);
+}
+
+// ----------------------------------------------------------------------------
+
+// {C1251318-A6F5-4cd2-9142-A4CEAA08B846}
+static const GUID localesApiServiceGuid =
+{ 0xc1251318, 0xa6f5, 0x4cd2, { 0x91, 0x42, 0xa4, 0xce, 0xaa, 0x8, 0xb8, 0x46 } };
+
+extern api_locales *localesApi;
+
+#endif // __API_LOCALES_H \ No newline at end of file