| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef SETTING_H
- #define SETTING_H
- #include <QObject>
- #include <QCoreApplication>
- #include "ark_api.h"
- class Setting : public QObject
- {
- Q_OBJECT
- #ifdef g_Setting
- #undef g_Setting
- #endif
- #define g_Setting (Setting::instance())
- public:
- inline static Setting* instance() {
- static Setting *setting(new Setting(qApp));
- return setting;
- }
- enum WidgetType {
- WIDGET_UNDEFINE = -1,
- WIDGET_HOME,
- WIDGET_MULTIMUSIC,
- WIDGET_PHONELINK,
- WIDGET_BTTELEPHONE,
- WIDGET_VIDEOPICTURE,
- WIDGET_SETTING,
- };
- public:
- void setDisplayMode(int mode);
- void setWidgetType(WidgetType type);
- void setUsbMusicFileName(QString fileName);
- WidgetType getWidgetType();
- disp_handle* getUIDispLayer();
- disp_handle* getVideoDispLayer();
- QString getUsbMusicFileName();
- private:
- explicit Setting(QObject *parent = NULL);
- ~Setting();
- WidgetType m_WidgetType;
- QString m_UsbMusicFileName;
- };
- #endif // SETTING_H
|