nim_duilib/tool_kits/shared/ring.h

72 lines
1.2 KiB
C
Raw Normal View History

2019-04-19 17:19:57 +08:00
#pragma once
#include <Vfw.h>
enum RingType
{
RING_NEW_MESSAGE = 0,
RING_VOIP_CONNTETING,
RING_VOIP_NORESPONSE,
RING_VOIP_PEERBUSY,
RING_VOIP_PEERREJECT,
RING_VOIP_RING,
};
namespace shared
{
/** @class Ring
* @brief
* @copyright (c) 2016, NetEase Inc. All rights reserved
* @date 2016/09/18
*/
class Ring
{
public:
Ring();
virtual ~Ring();
/**
*
* @param[in] hwnd
* @return bool true false
*/
bool Init(HWND hwnd);
/**
*
* @param[in] type
* @param[in] replay
* @return void
*/
void Play(RingType type, bool replay = false);
/**
*
* @return void
*/
void Replay();
/**
*
* @return void
*/
void Stop();
/**
*
* @param[in] uMsg
* @param[in] wParam
* @param[in] lParam
* @return LRESULT
*/
LRESULT Notify(UINT uMsg, WPARAM wParam, LPARAM lParam);
private:
/**
*
* @return void
*/
void Destroy();
private:
HWND hwnd_;
bool replay_;
};
}