2011-05-21 18:17:37 +00:00
|
|
|
/*
|
|
|
|
Copyright (C) 2011 Birunthan Mohanathas (www.poiru.net)
|
|
|
|
|
|
|
|
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
|
2012-01-23 06:36:15 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2011-05-21 18:17:37 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NOWPLAYING_H__
|
|
|
|
#define __NOWPLAYING_H__
|
|
|
|
|
|
|
|
#include "Player.h"
|
|
|
|
|
2011-06-17 19:07:06 +00:00
|
|
|
struct ParentMeasure
|
2011-05-21 18:17:37 +00:00
|
|
|
{
|
2011-11-05 17:52:53 +00:00
|
|
|
ParentMeasure() :
|
2012-01-08 17:35:29 +00:00
|
|
|
player(),
|
|
|
|
data(),
|
|
|
|
skin(),
|
|
|
|
ownerName(),
|
|
|
|
measureCount(1),
|
|
|
|
trackCount(1),
|
2011-11-05 17:52:53 +00:00
|
|
|
disableLeadingZero(false)
|
|
|
|
{}
|
|
|
|
|
2011-05-21 18:17:37 +00:00
|
|
|
CPlayer* player;
|
2012-01-08 17:35:29 +00:00
|
|
|
void* data;
|
|
|
|
void* skin;
|
|
|
|
LPCWSTR ownerName;
|
2011-06-17 19:07:06 +00:00
|
|
|
std::wstring trackChangeAction;
|
|
|
|
std::wstring playerPath;
|
2012-01-08 17:35:29 +00:00
|
|
|
UINT measureCount;
|
|
|
|
UINT trackCount;
|
2011-06-17 19:07:06 +00:00
|
|
|
bool disableLeadingZero;
|
|
|
|
};
|
|
|
|
|
2012-01-08 17:35:29 +00:00
|
|
|
struct Measure
|
2011-06-17 19:07:06 +00:00
|
|
|
{
|
2012-01-08 17:35:29 +00:00
|
|
|
Measure() :
|
|
|
|
parent(),
|
|
|
|
type(MEASURE_NONE)
|
2011-11-05 17:52:53 +00:00
|
|
|
{}
|
|
|
|
|
2011-06-17 19:07:06 +00:00
|
|
|
ParentMeasure* parent;
|
2012-01-08 17:35:29 +00:00
|
|
|
MeasureType type;
|
2011-05-21 18:17:37 +00:00
|
|
|
};
|
|
|
|
|
2011-06-17 19:07:06 +00:00
|
|
|
void SecondsToTime(UINT seconds, bool leadingZero, WCHAR* buffer);
|
2011-05-21 18:17:37 +00:00
|
|
|
|
|
|
|
#endif
|