logplus/Workflow/WFCrystal/Crystal/include/PaiSettings.h
2026-01-16 17:18:41 +08:00

51 lines
1.1 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @file PaiSettings.h
* @brief 用来替代QSettings他可以自动按登录用户区分组
* 相应的存储文件名为applicationName_userID.conf,
* Linux存储路径~/.config/organizationName/
* @date 2013-05-16
*/
#ifndef PAI_FRAME_CRYSTAL_PAISETTINGS_H
#define PAI_FRAME_CRYSTAL_PAISETTINGS_H
#include <QSettings>
#include <QString>
#include "Turtle.h"
namespace pai
{
namespace gui
{
/**
* @class PaiSettings
* @brief 用来替代QSettings他可以自动按登录用户区分组
*/
class PAI_CRYSTAL_EXPORT PaiSettings : public QSettings
{
public:
/**
* @brief 构造函数
* @param[in] pParent 父对象
* @param[in] share 对其它用户是否是共享的
*/
PaiSettings(bool share = false, QObject *pParent = NULL);
/**
* @brief 析构函数
*/
virtual ~PaiSettings();
/**
* @brief 设置配置文件名的后缀
* @param[in] nameSuffix 配置文件名的后缀
*/
static void SetNameSuffix(const QString & nameSuffix);
private:
static QString m_NameSuffix; ///< 配置文件名的后缀
};
}
}
#endif ///< PAI_FRAME_CRYSTAL_PAISETTINGS_H