diff options
author | Alexey Kulakov <panda75@bk.ru> | 2014-12-29 20:52:11 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2014-12-29 20:52:11 +0000 |
commit | 5d7cde73d5a03ebaae4390a392d73aa7fa5a45c0 (patch) | |
tree | 7c0522fb2f8c3531e27f0531adf12c84f38a26e4 /plugins | |
parent | 5f06838741f764508dfc34de07915bbffdc24c78 (diff) |
mradio api update (C version)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11677 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ExternalAPI/delphi/m_radio.inc | 20 | ||||
-rw-r--r-- | plugins/ExternalAPI/m_radio.h | 31 |
2 files changed, 26 insertions, 25 deletions
diff --git a/plugins/ExternalAPI/delphi/m_radio.inc b/plugins/ExternalAPI/delphi/m_radio.inc index 361d1ce860..d3c52c75ae 100644 --- a/plugins/ExternalAPI/delphi/m_radio.inc +++ b/plugins/ExternalAPI/delphi/m_radio.inc @@ -105,16 +105,6 @@ const MS_RADIO_IMPORT:PAnsiChar = 'mRadio/Import';
{
- wParam: RD_STATUS_* constants
- lParam: argument
- RD_STATUS_NEWSTATION - contact handle
- RD_STATUS_NEWTRACK - URL (unicode)
- RD_STATUS_PAUSED - 1 - pause, 0 - continued
- RD_STATUS_RECORD -,0 - off, 1 - on
-}
- ME_RADIO_STATUS:PAnsiChar = 'mRadio/Status';
-
-{
wParam: 0 - switch; 1 - switch on; -1 - switch off
lParam: 0
Return: last state (0 - was off, 1 - was on)
@@ -128,4 +118,14 @@ const }
MS_RADIO_TRAYMENU:PAnsiChar = 'mRadio/MakeTrayMenu';
+{
+ wParam: RD_STATUS_* constants
+ lParam: argument
+ RD_STATUS_NEWSTATION - contact handle
+ RD_STATUS_NEWTRACK - URL (unicode)
+ RD_STATUS_PAUSED - 1 - pause, 0 - continued
+ RD_STATUS_RECORD -,0 - off, 1 - on
+}
+ ME_RADIO_STATUS:PAnsiChar = 'mRadio/Status';
+
{$ENDIF}
diff --git a/plugins/ExternalAPI/m_radio.h b/plugins/ExternalAPI/m_radio.h index 53381ab524..f43d982775 100644 --- a/plugins/ExternalAPI/m_radio.h +++ b/plugins/ExternalAPI/m_radio.h @@ -14,6 +14,7 @@ #define MRC_STATUS 5 // lParam is RD_STATUS_* value (RD_STATUS_GET only now)
#define MRC_SEEK 6 // lParam is value in sec; -1 mean obtain current position
#define MRC_RECORD 7 // lParam is 0 - switch; 1 - on; 2 - off
+#define MRC_MUTE 8
/* RD_STATUS_* constands
[C]used as command [E]used as event
@@ -42,10 +43,6 @@ #define MS_RADIO_SETTINGS "mRadio/Settings"
/*
Switch 'record' mode
- +0.0.1.x (deprecatet) !!!
- wParam: 0 - switch mode; else - get record status
- lParam: 0
- +0.0.2.x
wParam: not used
lParam: 0 - switch mode; else - get record status
Return: Current status: 1 - record is ON, 0 - OFF
@@ -74,6 +71,11 @@ #define MS_RADIO_MUTE "mRadio/Mute"
/*
+ wParam,lParam = 0
+*/
+#define MS_RADIO_QUICKOPEN "mRadio/QuickOpen"
+
+/*
Send command to mRadio
wParam: command (see MRC_* constant)
lParam: value (usually 0)
@@ -88,14 +90,14 @@ */
#define MS_RADIO_PLAYSTOP "mRadio/PlayStop"
-/* +0.0.1.4
+/*
wParam: station handle (0 - all)
lParam: nil (through dialog, radio.ini by default) or ansi string with filename
Return: exported stations amount
*/
#define MS_RADIO_EXPORT "mRadio/Export"
-/* +0.0.1.4
+/*
wParam: group to import radio or 0
lParam: nil (through dialog, radio.ini by default) or ansi string with filename
Return: imported stations amount
@@ -109,17 +111,16 @@ */
#define MS_RADIO_EQONOFF "mRadio/EqOnOff"
-//////event/////
+/*
+ wParam: 0
+ lParam: 0
+ Return: 0, if cancelled, 101 - "mute", 102 - "play/pause", 103 - "stop" or station handle
+*/
+#define MS_RADIO_TRAYMENU "mRadio/MakeTrayMenu"
-/* +0.0.1.4 (deprecatet only used in 0.0.1.4+)
- wParam:
- MRC_STOP , LParam - 0
- MRC_PLAY , LParam - url
- MRC_PAUSE , LParam - 0 (pause) / 1 (play)
- MRC_SEEK , LParam - lParam is value in sec
- MRC_RECORD , LParam - 0 (stop) / 1 (record)
+//////event/////
- +0.0.2.1 new event constants !!
+/*
wParam: RD_STATUS_* (see constants)
RD_STATUS_NEWSTATION , lParam: contact handle
RD_STATUS_NEWTRACK , lParam: URL (unicode)
|