SmartAudio/package/allwinner/dlna-service/service/include/DLNAService.h

40 lines
768 B
C
Raw Normal View History

2018-07-13 01:31:50 +00:00
#ifndef __DLNA_SERVICE_H__
#define __DLNA_SERVICE_H__
#include "Info.h"
#include "EventListener.h"
namespace softwinner{
class CedarXPlayerAdapter;
class DLNAController;
class DLNAService{
public:
DLNAService();
~DLNAService();
void setDeviceInfo(DLNADeviceInfo info);
int startDMR();
int stopDMR();
void setEventListener(EventListener* l);
void updateVolume(int volume);
void setPlayer(void* player);
private:
static const int STATUS_START = 0;
static const int STATUS_STOP = 1;
EventListener* mEventListener;
DLNADeviceInfo mDeviceInfo;
int mStatus;
void* mPlayer;
CedarXPlayerAdapter* mCedarXPlayerAdapter;
DLNAController* mDlnaController;
};
}/* namespace softwinner */
#endif /* __DLNA_SERVICE_H__ */