You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWATI/Include/iBase/Interface/IxSystem.h

47 lines
1.0 KiB
C++

#pragma once
#include <QIcon>
#include "IxInterface.h"
class QSettings;
class QString;
// ZxSystem对象接口
class IxSystem
: virtual public IxInterface
{
public:
// 初始化
virtual bool init() = 0;
// 获取指定模块的QSettings对象
virtual QSettings* getSettings(const QString& sModule, \
bool bResetIfExists = false) = 0;
// 获取软件版本
virtual QString getAppVer() const = 0;
// 动态加载图标
virtual QIcon loadIcon(const QString& name, \
int wh = -1) const = 0;
// 加载css
virtual void loadCss(const QString& cssFile = "", \
QApplication* pApp = NULL) const = 0;
};
// 权宜之计,没有更好的方式
#ifndef I_BASE_EXPORT
# include <QtGlobal>
# if defined(I_BASE_LIBRARY)
# define I_BASE_EXPORT Q_DECL_EXPORT
# else
# define I_BASE_EXPORT Q_DECL_IMPORT
# endif
#endif
// 整个System变量
I_BASE_EXPORT IxSystem* getZxSystem();