/* HUMp3 WinAmp PlugIn Dmitry Borisov (C)2005 Dmitry Borisov ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Library General Public ## License as published by the Free Software Foundation; either ## version 2 of the License, or (at your option) any later version. ## ## This library 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 ## Library General Public License for more details. ## ## You should have received a copy of the GNU Library General Public ## License along with this library; if not, write to the Free ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ## ## Dmitry Borisov */ #if !defined(AFX_CHUMP3_H) #define AFX_CHUMP3_H #define HUMP3_STATUS_FF 1 #define HUMP3_STATUS_REW 2 #define MAX_PLAYLISTS 10 //#include "Port.h" // Added by ClassView #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include #include "Commands.h" #include "usbhu.h" class CHUMp3 { public: void Config(void); void Stop(void); void Start(void); int IsRunning( void ){ return this->bRunning; } bool IsConnected( void ){ return this->cConn!= NULL; } CHUMp3(); virtual ~CHUMp3(); static DWORD WINAPI ThreadProc(LPVOID lpParameter); HWND hPlaylist; bool CheckFileTimestamp( char* sName ); bool ExecuteCommand( char* s ); bool ProcessTick(); bool SetTrackInfo(); bool WriteConfigFile(); bool SetPlaylist( int i, bool bForce ); int iActivePlaylist; bool bStopped; int bScanRepeat; int bAutoRepeat; int iRefreshInterval; int iTicks; int iScroll; int iText; int iSplit; int iTZ; char sVersion[ 5 ]; int bRunning; private: char sPlaylists[ MAX_PLAYLISTS ][ MAX_PATH ]; int iPlaylistPos[ MAX_PLAYLISTS ]; int iPlaylistSeek[ MAX_PLAYLISTS ]; char sPLFile[ MAX_PATH+ 100 ]; HANDLE h_thread; HU_connection *cConn; int iPlaylists; //FILETIME stLastTime; int iLastTrack; int iTrack; int iTrackTime; _timeb stLastTime; int iStatus; bool bJukeBoxMode; bool ReadConfigFile(LPSTR pszKey); }; extern HWND hPlaylist; #endif // !defined(AFX_CHUMP3_H)