NowPlayingPlugin:

- Fixed that PlayerName=, TrackChangeAction=, and DisableLeadingZero= were global (i.e. only usable from the first loaded skin)
- Code refactoring and cleanup
This commit is contained in:
Birunthan Mohanathas
2011-06-17 19:07:06 +00:00
parent 67cc4c7c6c
commit 6aa004eb22
26 changed files with 1251 additions and 1714 deletions

View File

@ -21,20 +21,36 @@
#include "Player.h"
struct MeasureData
struct ParentMeasure
{
std::wstring iniFile;
std::wstring section;
MEASURETYPE measure;
UINT id;
UINT childCount;
UINT trackCount;
CPlayer* player;
HANDLE thread;
HWND window;
std::wstring name;
std::wstring iniFile;
std::wstring trackChangeAction;
std::wstring playerPath;
bool disableLeadingZero;
MeasureData() :
player(NULL)
{
}
ParentMeasure() : player(NULL), thread(NULL) {}
};
typedef std::map<UINT, MeasureData*> MeasureMap;
struct ChildMeasure
{
MEASURETYPE type;
ParentMeasure* parent;
ChildMeasure() : parent(NULL) {}
};
void SecondsToTime(UINT seconds, bool leadingZero, WCHAR* buffer);
void ExecuteCommand(std::wstring& command, HWND wnd);
bool BelongToSameProcess(HWND wnd);
HWND FindMeterWindow(HWND parent);
HWND FindMeterWindow(const std::wstring& iniFile);
/* The exported functions */
extern "C"