Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Plugins/Library/ml_wire/Cloud.h

36 lines
844 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#ifndef NULLSOFT_CLOUDH
#define NULLSOFT_CLOUDH
#include <windows.h>
#include "Feeds.h"
#include "../nu/threadpool/api_threadpool.h"
#include "../nu/threadpool/timerhandle.hpp"
#include "../nu/AutoLock.h"
class Cloud
{
public:
Cloud();
~Cloud();
void Init();
void Quit();
void Refresh( Channel &channel );
void GetStatus( wchar_t *status, size_t len );
void RefreshAll();
void Pulse() { SetEvent( cloudEvent ); }
private:
static DWORD WINAPI CloudThread( void *param );
void SetStatus( const wchar_t *newStatus );
void Callback();
ThreadID *cloudThread;
wchar_t *statusText;
Nullsoft::Utility::LockGuard statusGuard;
HANDLE cloudEvent, cloudDone;
TimerHandle cloudTimerEvent;
static int CloudThreadPoolFunc( HANDLE handle, void *user_data, intptr_t param );
};
#endif