diff options
| -rw-r--r-- | MRA/Sdk/m_music.h | 360 | ||||
| -rw-r--r-- | MRA/Sdk/m_nudge.h | 3 | ||||
| -rw-r--r-- | MRA/Sdk/m_proto_listeningto.h | 144 | 
3 files changed, 0 insertions, 507 deletions
| diff --git a/MRA/Sdk/m_music.h b/MRA/Sdk/m_music.h deleted file mode 100644 index 4a8ff15..0000000 --- a/MRA/Sdk/m_music.h +++ /dev/null @@ -1,360 +0,0 @@ -#ifndef M_MUSIC
 -#define M_MUSIC
 -
 -#define MIID_WATRACK {0xfc6c81f4, 0x837e, 0x4430, {0x96, 0x01, 0xa0, 0xaa, 0x43, 0x17, 0x7a, 0xe3}}
 -
 -typedef struct tSongInfoA {
 -    CHAR *artist;
 -    CHAR *title;
 -    CHAR *album;
 -    CHAR *genre;
 -    CHAR *comment;
 -    CHAR *year;
 -    CHAR *mfile;    // media file
 -    int kbps;
 -    int khz;
 -    int channels;
 -    int track;
 -    int total;      // music length
 -    int time;       // elapsed time
 -    CHAR *wndtext;  // window title
 -    CHAR *player;   // player name
 -    int plyver;     // player version
 -    HANDLE icon;    // player icon
 -    int fsize;      // media file size
 -    int vbr;
 -    int status;     // player status: 0 - stopped; 1 - playing; 2 - paused
 -    HWND plwnd;     // player window
 -    // video part
 -    int codec;
 -    int width;
 -    int height;
 -    int fps;
 -    __int64 date;
 -    CHAR *txtver;
 -    CHAR *lyric;
 -    CHAR *cover;
 -    int volume;
 -    CHAR *url;
 -} SONGINFOA, *LPSONGINFOA;
 -
 -typedef struct tSongInfo {
 -    WCHAR *artist;
 -    WCHAR *title;
 -    WCHAR *album;
 -    WCHAR *genre;
 -    WCHAR *comment;
 -    WCHAR *year;
 -    WCHAR *mfile;   // media file
 -    int kbps;
 -    int khz;
 -    int channels;
 -    int track;
 -    int total;      // music length
 -    int time;       // elapsed time
 -    WCHAR *wndtext; // window title
 -    WCHAR *player;  // player name
 -    int playver;     // player version
 -    HANDLE icon;    // player icon
 -    int fsize;      // media file size
 -    int vbr;
 -    int status;     // player status: 0 - stopped; 1 - playing; 2 - paused
 -    HWND plwnd;     // player window
 -    // video part
 -    int codec;
 -    int width;
 -    int height;
 -    int fps;
 -    __int64 date;
 -    WCHAR txtver;
 -    // not implemented yet
 -    WCHAR *lyric;
 -    WCHAR *cover;
 -    int volume;
 -    WCHAR *url;
 -} SONGINFO, *LPSONGINFO;
 -
 -#if defined(_UNICODE)
 -  #define WAT_INF_TCHAR WAT_INF_UNICODE
 -  #define SongInfoT tSongInfo
 -#else
 -  #define WAT_INF_TCHAR WAT_INF_ANSI
 -  #define SongInfoT tSongInfoA
 -#endif 
 -
 -  // result codes
 -#define WAT_RES_UNKNOWN     -2
 -#define WAT_RES_NOTFOUND    -1
 -#define WAT_RES_ERROR       WAT_RES_NOTFOUND
 -#define WAT_RES_OK          0
 -#define WAT_RES_ENABLED     WAT_RES_OK
 -#define WAT_RES_DISABLED    1
 -  // internal
 -#define WAT_RES_NEWFILE     3
 -
 -#define WAT_PLS_NORMAL   WAT_RES_OK
 -#define WAT_PLS_NOMUSIC  WAT_RES_DISABLED
 -#define WAT_PLS_NOTFOUND WAT_RES_NOTFOUND
 -
 -#define WAT_INF_UNICODE 0
 -#define WAT_INF_ANSI    1
 -#define WAT_INF_UTF8    2
 -#define WAT_INF_CHANGES 0x100
 -
 -/*
 -  wParam : WAT_INF_* constant
 -  lParam : pointer to LPSONGINGO (Unicode) or LPSONGINFOA (ANSI/UTF8)
 -  Affects: Fill structure by currently played music info
 -  returns: WAT_PLS_* constant
 -  note: pointer will be point to global SONGINFO structure of plugin
 -  warning: Non-Unicode data filled only by request
 -  if lParam=0 only internal SongInfo structure will be filled
 -  Example:
 -    LPSONGINFO p;
 -    PluginLink->CallService(MS_WAT_GETMUSICINFO,0,(DWORD)&p);
 -*/
 -
 -#define MS_WAT_GETMUSICINFO  "WATrack/GetMusicInfo"
 -
 -/*
 -  wParam:0
 -  lParam : pointer to pSongInfo (Unicode)
 -  Affects: Fill structure by info from file named in SongInfo.mfile
 -  returns: 0, if success
 -  note: fields, which values can't be obtained, leaves old values.
 -    you must free given strings by miranda mmi.free
 -*/
 -#define MS_WAT_GETFILEINFO "WATrack/GetFileInfo"
 -
 -/*
 -  wParam: encoding (WAT_INF_* consts, 0 = WAT_INF_UNICODE)
 -  lParam: codepage (0 = ANSI)
 -  Returns Global unicode SongInfo pointer or tranlated to Ansi/UTF8 structure
 -*/
 -#define MS_WAT_RETURNGLOBAL "WATrack/GetMainStructure"
 -
 -#define WAT_CTRL_PREV   1
 -#define WAT_CTRL_PLAY   2
 -#define WAT_CTRL_PAUSE  3
 -#define WAT_CTRL_STOP   4
 -#define WAT_CTRL_NEXT   5
 -#define WAT_CTRL_VOLDN  6
 -#define WAT_CTRL_VOLUP  7
 -#define WAT_CTRL_SEEK   8 // lParam is new position (sec)
 -/*
 -  wParam: button code (WAT_CTRL_* const)
 -  lParam: 0, or value (see WAT_CTRL_* const comments)
 -  Affects: emulate player button pressing
 -  returns: 0 if unsuccesful
 -*/
 -#define MS_WAT_PRESSBUTTON  "WATrack/PressButton"
 -
 -/*
 -  Get user's Music Info
 -*/
 -#define MS_WAT_GETCONTACTINFO = "WATrack/GetContactInfo"
 -
 -// ------------ Plugin/player status ------------
 -
 -/*
 -  wParam: 1  - switch off plugin
 -          0  - switch on plugin
 -          -1 - switch plugin status
 -          2  - get plugin version
 -          other - get plugin status
 -  lParam: 0
 -  Affects: Switch plugin status to enabled or disabled
 -  returns: version, old plugin status, 0, if was enabled
 -*/
 -
 -#define MS_WAT_PLUGINSTATUS "WATrack/PluginStatus"
 -
 -#define ME_WAT_MODULELOADED "WATrack/ModuleLoaded"
 -
 -#define WAT_EVENT_PLAYERSTATUS    1 // 0-normal; 1-no music (possibly stopped); 2-not found
 -#define WAT_EVENT_NEWTRACK        2
 -#define WAT_EVENT_PLUGINSTATUS    3 // 0-enabled; 1-dis.temporary; 2-dis.permanent
 -#define WAT_EVENT_NEWPLAYER       4 //
 -#define WAT_EVENT_NEWTEMPLATE     5 // TM_* constant
 -
 -/*
 -  Plugin or player status changed:
 -  wParam: type of event (see above)
 -  lParam: value
 -*/
 -#define ME_WAT_NEWSTATUS    "WATrack/NewStatus"
 -
 -// ---------- Popup module ------------
 -
 -/*
 -  wParam: not used
 -  lParam: not used
 -  Affects: Show popup or Info window with current music information
 -  note: Only Info window will be showed if Popup plugin disabled
 -*/
 -
 -#define MS_WAT_SHOWMUSICINFO "WATrack/ShowMusicInfo"
 -
 -// --------- Statistic (report) module -------------
 -
 -/*
 -  wParam: pointer to log file name or NULL
 -  lParam: pointer to report file name or NULL
 -  Affects: Create report from log and run it (if option is set)
 -  returns: 0 if unsuccesful
 -  note: if wParam or lParam is a NULL then file names from options are used
 -*/
 -#define MS_WAT_MAKEREPORT   "WATrack/MakeReport"
 -
 -/*
 -  wParam, lParam - not used
 -  Affects: pack statistic file
 -*/
 -#define MS_WAT_PACKLOG = "WATrack/PackLog"
 -
 -/*
 -  wParam: not used
 -  lParam: pointer to SongInfo
 -*/
 -#define MS_WAT_ADDTOLOG = "WATrack/AddToLog"
 -
 -// ----------- Formats and players -----------
 -
 -// media file status
 -
 -#define WAT_MES_STOPPED 0
 -#define WAT_MES_PLAYING 1
 -#define WAT_MES_PAUSED  2
 -#define WAT_MES_UNKNOWN -1
 -
 -#define WAT_ACT_REGISTER    1
 -#define WAT_ACT_UNREGISTER  2
 -#define WAT_ACT_DISABLE     3
 -#define WAT_ACT_ENABLE      4
 -#define WAT_ACT_GETSTATUS   5         // not found/enabled/disabled
 -#define WAT_ACT_SETACTIVE   6
 -#define WAT_ACT_REPLACE     0x10000   // can be combined with WAT_REGISTERFORMAT
 -
 -  // flags
 -#define WAT_OPT_DISABLED    0x00000001 // format registered but disabled
 -#define WAT_OPT_ONLYONE     0x00000002 // format can't be overwriten
 -#define WAT_OPT_PLAYERINFO  0x00000004 // song info from player
 -#define WAT_OPT_WINAMPAPI   0x00000008 // Winamp API support
 -#define WAT_OPT_CHECKTIME   0x00000010 // check file time for changes
 -#define WAT_OPT_VIDEO       0x00000020 // only for format registering used
 -#define WAT_OPT_LAST        0x00000040 // (internal)
 -#define WAT_OPT_FIRST       0x00000080 // (internal)
 -#define WAT_OPT_TEMPLATE    0x00000100 // (internal)
 -#define WAT_OPT_IMPLANTANT  0x00000200 // use process implantation
 -#define WAT_OPT_HASURL      0x00000400 // (player registration) URL field present
 -#define WAT_OPT_CHANGES     0x00000800 // obtain only chaged values
 -                                       // (volume, status, window text, elapsed time)
 -#define WAT_OPT_APPCOMMAND  0x00001000 // Special (multimedia) key support
 -#define WAT_OPT_CHECKALL    0x00002000 // Check all players
 -#define WAT_OPT_KEEPOLD     0x00004000 // Keep Old opened file
 -#define WAT_OPT_MULTITHREAD 0x00008000 // Use multithread scan
 -#define WAT_OPT_SINGLEINST  0x00010000 // Single player instance
 -
 -
 -typedef BOOL (__cdecl *LPREADFORMATPROC)(LPSONGINFO Info);
 -
 -typedef struct tMusicFormat {
 -    LPREADFORMATPROC proc;
 -    CHAR ext[8];
 -    int flags;
 -} MUSICFORMAT, *LPMUSICFORMAT;
 -
 -/*
 -  wParam: action
 -  lParam: pointer to MUSICFORMAT if wParam = WAT_ACT_REGISTER,
 -          else - pointer to extension string (ANSI)
 -  returns: see result codes
 -*/
 -
 -#define MS_WAT_FORMAT  "WATrack/Format"
 -
 -/*
 -  wParam - pointer to SONGINFO structure (plwind field must be initialized)
 -  lParam - flags
 -*/
 -
 -#define MS_WAT_WINAMPINFO   "WATrack/WinampInfo"
 -
 -/*
 -  wParam: window
 -  lParam: LoWord - command; HiWord - value
 -*/
 -
 -#define MS_WAT_WINAMPCOMMAND  "WATrack/WinampCommand"
 -
 -/*
 -  tInitProc    = function():integer;cdecl;
 -  tDeInitProc  = function():integer;cdecl;
 -  tStatusProc  = function(wnd:HWND):integer;cdecl;
 -*/
 -
 -typedef int (__cdecl *LPINITPROC)();
 -typedef int (__cdecl *LPDEINITPROC)();
 -typedef int (__cdecl *LPGETSTATUSPROC)(HWND wnd);
 -typedef WCHAR (__cdecl *LPNAMEPROC)(HWND wnd, int flags);
 -typedef HWND (__cdecl *LPCHECKPROC)(HWND wnd, int flags);
 -typedef int (__cdecl *LPINFOPROC)(LPSONGINFO Info, int flags);
 -typedef int (__cdecl *LPCOMMANDPROC)(HWND wnd, int command, int value);
 -
 -typedef struct tPlayerCell {
 -    CHAR *Desc;
 -    int flags;
 -    HICON Icon;                // can be 0. for registration only
 -    LPINITPROC      Init;
 -    LPDEINITPROC    DeInit;
 -    LPCHECKPROC     Check;     // check player 
 -    LPGETSTATUSPROC GetStatus;
 -    LPNAMEPROC      GetName;   // can be NULL. get media filename
 -    LPINFOPROC      GetInfo;   // can be NULL. get info from player
 -    LPCOMMANDPROC   Command;   // can be NULL. send command to player
 -    CHAR *URL;                 // only if WAT_OPT_HASURL flag present
 -    WCHAR *Notes;
 -} PLAYERCELL, *LPPLAYERCELL;
 -
 -/*
 -  wParam: action
 -  lParam: pointer to PLAYERCELL if wParam = WAT_ACT_REGISTER,
 -          else - pointer to player description string (ANSI)
 -  returns: player window handle or value>0 if found
 -  note: If you use GetName or GetInfo field, please, do not return empty
 -        filename even when mediafile is remote!
 -*/
 -
 -#define MS_WAT_PLAYER   "WATrack/Player"
 -
 -// --------- Last FM  ---------
 -
 -#define MS_WAT_LASTFM "WATrack/LastFM"
 -
 -// --------- Templates ----------
 -
 -/*
 -  wParam: not used
 -  lParam: Unicode template
 -  returns: New Unicode (replaced) string
 -*/
 -#define MS_WAT_REPLACETEXT "WATrack/ReplaceText"
 -
 -/*
 -  event types for History
 -  Blob structure for EVENTTYPE_WAT_ANSWER:
 -   Uniciode artist#0title#0album#0answer
 -*/
 -#define EVENTTYPE_WAT_REQUEST 9601
 -#define EVENTTYPE_WAT_ANSWER  9602
 -#define EVENTTYPE_WAT_ERROR   9603
 -#define EVENTTYPE_WAT_MESSAGE 9604
 -
 -/*
 -  wParam: 0 or parent window
 -  lParam: 0
 -  note:   Shows Macro help window with edit aliases ability
 -*/
 -#define MS_WAT_MACROHELP "WATrack/MacroHelp"
 -
 -#endif
 diff --git a/MRA/Sdk/m_nudge.h b/MRA/Sdk/m_nudge.h deleted file mode 100644 index dc0f367..0000000 --- a/MRA/Sdk/m_nudge.h +++ /dev/null @@ -1,3 +0,0 @@ -#define	MS_SHAKE_CLIST			"SHAKE/Service/ShakeClist"
 -#define	MS_SHAKE_CHAT			"SHAKE/Service/ShakeChat"
 -#define	MS_NUDGE_SEND			"NUDGE/Send"
 diff --git a/MRA/Sdk/m_proto_listeningto.h b/MRA/Sdk/m_proto_listeningto.h deleted file mode 100644 index 53e1184..0000000 --- a/MRA/Sdk/m_proto_listeningto.h +++ /dev/null @@ -1,144 +0,0 @@ -/*
 -
 -Miranda IM: the free IM client for Microsoft* Windows*
 -
 -Copyright 2000-2006 Miranda ICQ/IM project,
 -all portions of this codebase are copyrighted to the people
 -listed in contributors.txt.
 -
 -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.
 -*/
 -
 -//this module was created in v0.6.0.0
 -
 -#ifndef M_PROTO_LISTENINGTO_H__
 -#define M_PROTO_LISTENINGTO_H__ 1
 -
 -
 -// Protocol Services /////////////////////////////////////////////////////////////////
 -
 -// This is the services a protocol have to support to support listening info
 -
 -typedef struct {
 -	int cbSize;
 -
 -	union {
 -		char* pszType;			// Media type: Music, Video, etc...
 -		TCHAR* ptszType;
 -	};
 -	union {
 -		char* pszArtist;		// Artist name
 -		TCHAR* ptszArtist;
 -	};
 -	union {
 -		char* pszAlbum;			// Algum name
 -		TCHAR* ptszAlbum;
 -	};
 -	union {
 -		char* pszTitle;			// Song name
 -		TCHAR* ptszTitle;
 -	};
 -	union {
 -		char* pszTrack;			// Track number
 -		TCHAR* ptszTrack;
 -	};
 -	union {
 -		char* pszYear;			// Song year
 -		TCHAR* ptszYear;
 -	};
 -	union {
 -		char* pszGenre;			// Song genre
 -		TCHAR* ptszGenre;
 -	};
 -	union {
 -		char* pszLength;		// Song length
 -		TCHAR* ptszLength;
 -	};
 -	union {
 -		char* pszPlayer;		// Player name
 -		TCHAR* ptszPlayer;
 -	};
 -
 -	DWORD dwFlags;
 -
 -} LISTENINGTOINFO;
 -
 -#define LTI_UNICODE 1
 -
 -#ifdef UNICODE
 -	#define LTI_TCHAR   LTI_UNICODE
 -#else
 -	#define LTI_TCHAR   0
 -#endif
 -
 -// Set the listening info for the protocol.
 -// Pass NULL to remove it.
 -// wParam = NULL
 -// lParam = LISTENINGTOINFO *
 -#define PS_SET_LISTENINGTO	"/SetListeningTo"
 -
 -// Get the listening info for the protocol
 -// wParam = NULL
 -// lParam = LISTENINGTOINFO *
 -// The strings inside the struct need to be free using miranda free.
 -#define PS_GET_LISTENINGTO	"/GetListeningTo"
 -
 -// Also the protocol have to save a string with the text the other user is (probabily) 
 -// seeing under the main db key: <protocol>/ListeningTo
 -
 -// For a contact, the protocol should store the listening info as an string inside
 -// the contact db key: <protocol>/ListeningTo
 -
 -
 -// ListeningTo configuration plugin //////////////////////////////////////////////////
 -
 -// One plugin can be used to set some options relative to the listening to information.
 -// But protocols should not assume this plugin exists. If it does not exist, protocols
 -// have to decide what default to use.
 -// This plugin have to support the following services:
 -
 -// Get the text format the user wants him / his contacts to see. Some strings represents
 -// the text information:
 -// %artist%, %album%, %title%, %track%, %year%, %genre%, %length%, %player%, %type%
 -// This service is optional
 -// wParam = TCHAR* - default text for this protocol
 -// lParam = 0
 -// Returns a TCHAR* containg the user setting. This need to be free using miranda free.
 -#define MS_LISTENINGTO_GETTEXTFORMAT	"ListeningTo/GetTextFormat"
 -
 -// Get the text the user wants him / his contacts to see, parsed with the info sent to 
 -// this service.  Uses the same variables as the above service to the default text.
 -// wParam = TCHAR* - default text for this protocol
 -// lParam = LISTENINGTOINFO *
 -// Returns a TCHAR* containg the parsed text. This need to be free using miranda free.
 -#define MS_LISTENINGTO_GETPARSEDTEXT	"ListeningTo/GetParsedText"
 -
 -// Get if the contact options about how to show the music info should be overriten or 
 -// not.
 -// wParam = NULL
 -// lParam = hContact
 -// Returns a BOOL
 -#define MS_LISTENINGTO_OVERRIDECONTACTOPTION	"ListeningTo/OverrideContactOption"
 -
 -// Get the text to show if some info of the contact is empty.
 -// wParam = NULL
 -// lParam = NULL
 -// Returns a TCHAR *. Don't free
 -#define MS_LISTENINGTO_GETUNKNOWNTEXT	"ListeningTo/GetUnknownText"
 -
 -
 -#endif  // M_PROTO_LISTENINGTO_H__
 -
 -
 | 
