| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #include "Setting.h"
- Setting::Setting(QObject *parent) : QObject(parent)
- {
- m_WidgetType = WIDGET_HOME;
- m_UsbMusicFileName = QString("");
- }
- Setting::~Setting(){
- }
- void Setting::setDisplayMode(int mode){
- arkapi_video_set_display_mode(mode);
- return;
- }
- void Setting::setWidgetType(Setting::WidgetType type)
- {
- m_WidgetType = type;
- return;
- }
- void Setting::setUsbMusicFileName(QString fileName)
- {
- m_UsbMusicFileName = fileName;
- }
- Setting::WidgetType Setting::getWidgetType()
- {
- return m_WidgetType;
- }
- disp_handle *Setting::getUIDispLayer()
- {
- disp_handle* disp_layer_ui = arkapi_display_open_layer(PRIMARY_LAYER); //UI
- if (disp_layer_ui != NULL) {
- return disp_layer_ui;
- }
- return NULL;
- }
- disp_handle *Setting::getVideoDispLayer()
- {
- disp_handle* disp_layer_video = arkapi_display_open_layer(VIDEO_LAYER); //video
- if (disp_layer_video != NULL) {
- return disp_layer_video;
- }
- return NULL;
- }
- QString Setting::getUsbMusicFileName()
- {
- return m_UsbMusicFileName;
- }
|