mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 19:55:47 -04:00
Initial community commit
This commit is contained in:
53
Src/Plugins/Portable/pmp_wifi/ConnectActivity.cpp
Normal file
53
Src/Plugins/Portable/pmp_wifi/ConnectActivity.cpp
Normal file
@ -0,0 +1,53 @@
|
||||
#include "ConnectActivity.h"
|
||||
#include "resource.h"
|
||||
#include "api.h"
|
||||
#include <strsafe.h>
|
||||
|
||||
BOOL ConnectActivity::GetActive()
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL ConnectActivity::GetCancelable()
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
HRESULT ConnectActivity::GetProgress(unsigned int *percentCompleted)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
HRESULT ConnectActivity::GetDisplayName(wchar_t *buffer, size_t bufferMax)
|
||||
{
|
||||
if (NULL == buffer)
|
||||
return E_POINTER;
|
||||
|
||||
WASABI_API_LNGSTRINGW_BUF(IDS_ACTIVITY_CONNECT, buffer, bufferMax);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT ConnectActivity::GetStatus(wchar_t *buffer, size_t bufferMax)
|
||||
{
|
||||
if (NULL == buffer)
|
||||
return E_POINTER;
|
||||
|
||||
WASABI_API_LNGSTRINGW_BUF(IDS_ACTIVITY_CONNECT_DESC, buffer, bufferMax);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT ConnectActivity::Cancel(HWND hostWindow)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
#define CBCLASS ConnectActivity
|
||||
START_DISPATCH;
|
||||
CB(API_GETACTIVE, GetActive);
|
||||
CB(API_GETCANCELABLE, GetCancelable);
|
||||
CB(API_GETPROGRESS, GetProgress);
|
||||
CB(API_GETDISPLAYNAME, GetDisplayName);
|
||||
CB(API_GETSTATUS, GetStatus);
|
||||
CB(API_CANCEL, Cancel);
|
||||
END_DISPATCH;
|
||||
#undef CBCLASS
|
Reference in New Issue
Block a user