Advertisement
Guest User

PlayerSQBOX.h

a guest
Jan 21st, 2012
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.65 KB | None | 0 0
  1. /*
  2.   Copyright (C) 2012 ichbtm
  3.  
  4.   This program is free software; you can redistribute it and/or
  5.   modify it under the terms of the GNU General Public License
  6.   as published by the Free Software Foundation; either version 2
  7.   of the License, or (at your option) any later version.
  8.  
  9.   This program is distributed in the hope that it will be useful,
  10.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.   GNU General Public License for more details.
  13.  
  14.   You should have received a copy of the GNU General Public License
  15.   along with this program; if not, write to the Free Software
  16.   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  17. */
  18.  
  19. #ifndef __PLAYERSQBOX_H__
  20. #define __PLAYERSQBOX_H__
  21.  
  22. #include "Player.h"
  23.  
  24.  
  25. class CPlayerSQBOX : public CPlayer
  26. {
  27. public:
  28.     virtual ~CPlayerSQBOX();
  29.  
  30.     static CPlayer* Create(std::wstring swPlayerPath);
  31.  
  32.     virtual void Pause();
  33.     virtual void Play();
  34.     virtual void Stop();
  35.     virtual void Next();
  36.     virtual void Previous();
  37.     virtual void SetPosition(int position);
  38.     virtual void SetRating(int rating);
  39.     virtual void SetVolume(int volume);
  40.     virtual void SetShuffle(bool state);
  41.     virtual void SetRepeat(bool state);
  42.     virtual void ClosePlayer();
  43.     virtual void OpenPlayer(std::wstring& path);
  44.     virtual void UpdateData();
  45.  
  46.     bool DownloadCover(std::wstring swCover);
  47.  
  48. protected:
  49.     CPlayerSQBOX(std::wstring swPlayerPath);
  50.     std::wstring m_playerPath;
  51.     std::wstring m_server;
  52.     int m_nwebPort;
  53.  
  54. private:
  55.     static CPlayer* c_Player;
  56.  
  57.     HWND m_Window;
  58.     DWORD m_LastCheckTime;
  59.     UINT m_LastPosition;
  60.  
  61.     };
  62.  
  63. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement