添加CMakelist.txt的改动
This commit is contained in:
parent
463122af71
commit
7f36e1e3a4
|
@ -77,6 +77,7 @@ set(EXTRA_LIBS
|
||||||
-lrt
|
-lrt
|
||||||
-lpthread
|
-lpthread
|
||||||
-llibnm-icon-kylin
|
-llibnm-icon-kylin
|
||||||
|
-lukuiinputgatherclient
|
||||||
)
|
)
|
||||||
|
|
||||||
#qt5_wrap_ui(dialog_SRC
|
#qt5_wrap_ui(dialog_SRC
|
||||||
|
@ -162,6 +163,8 @@ set(backend_SRC
|
||||||
dbusifs/freedesktophelper.cpp
|
dbusifs/freedesktophelper.cpp
|
||||||
dbusifs/giodbus.cpp
|
dbusifs/giodbus.cpp
|
||||||
dbusifs/kglobalaccelhelper.cpp
|
dbusifs/kglobalaccelhelper.cpp
|
||||||
|
dbusifs/machinemodel.cpp
|
||||||
|
dbusifs/libinputswitchevent.cpp
|
||||||
userinfo.cpp
|
userinfo.cpp
|
||||||
agreementinfo.cpp
|
agreementinfo.cpp
|
||||||
common/global_utils.cpp
|
common/global_utils.cpp
|
||||||
|
@ -182,6 +185,7 @@ target_link_libraries(ukui-screensaver-backend
|
||||||
ukui-log4qt
|
ukui-log4qt
|
||||||
-ldl
|
-ldl
|
||||||
-lcrypto
|
-lcrypto
|
||||||
|
-lukuiinputgatherclient
|
||||||
)
|
)
|
||||||
|
|
||||||
set(command_SRC
|
set(command_SRC
|
||||||
|
|
|
@ -403,6 +403,11 @@ void LockDialogModel::onUsdMediaKeysChanged(const QString &key, const QString &v
|
||||||
Q_EMIT usdMediaKeysChanged(key, value);
|
Q_EMIT usdMediaKeysChanged(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LockDialogModel::onTabletModeChanged(bool tabletMode)
|
||||||
|
{
|
||||||
|
Q_EMIT tabletModeChanged(tabletMode);
|
||||||
|
}
|
||||||
|
|
||||||
void LockDialogModel::updateCapslockState(bool capslockState)
|
void LockDialogModel::updateCapslockState(bool capslockState)
|
||||||
{
|
{
|
||||||
m_capslockState = capslockState;
|
m_capslockState = capslockState;
|
||||||
|
@ -522,3 +527,8 @@ void LockDialogModel::updateLoggedInUsersCount()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LockDialogModel::updateTabletMode(bool tabletMode)
|
||||||
|
{
|
||||||
|
m_tabletMode = tabletMode;
|
||||||
|
}
|
||||||
|
|
|
@ -102,6 +102,8 @@ public:
|
||||||
void updateShutdownLockcheck(QStringList shutdownLockcheck);
|
void updateShutdownLockcheck(QStringList shutdownLockcheck);
|
||||||
|
|
||||||
void updateLoggedInUsersCount();
|
void updateLoggedInUsersCount();
|
||||||
|
|
||||||
|
void updateTabletMode(bool tabletMode);
|
||||||
/**
|
/**
|
||||||
* @brief 获取用户信息列表
|
* @brief 获取用户信息列表
|
||||||
*
|
*
|
||||||
|
@ -194,6 +196,8 @@ public:
|
||||||
|
|
||||||
inline bool getLockEnabled() {return m_lockEnabled; }
|
inline bool getLockEnabled() {return m_lockEnabled; }
|
||||||
|
|
||||||
|
inline bool getTabletMode() { return m_tabletMode; }
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
/**
|
/**
|
||||||
* @brief 会话激活状态改变
|
* @brief 会话激活状态改变
|
||||||
|
@ -234,6 +238,8 @@ public Q_SLOTS:
|
||||||
|
|
||||||
void onThemeStyleConfChanged(const QString &key, QVariant value);
|
void onThemeStyleConfChanged(const QString &key, QVariant value);
|
||||||
|
|
||||||
|
void onTabletModeChanged(bool tabletMode);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
/**
|
/**
|
||||||
* @brief 请求解锁会话
|
* @brief 请求解锁会话
|
||||||
|
@ -358,6 +364,8 @@ Q_SIGNALS:
|
||||||
QString getPublicEncrypt();
|
QString getPublicEncrypt();
|
||||||
bool sendPassword(const QString username,QByteArray password);
|
bool sendPassword(const QString username,QByteArray password);
|
||||||
|
|
||||||
|
void tabletModeChanged(bool tabletMode);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString getXScreensaverPath(const QString &theme);
|
QString getXScreensaverPath(const QString &theme);
|
||||||
private:
|
private:
|
||||||
|
@ -397,6 +405,8 @@ private:
|
||||||
int m_lockTimeout = 10;
|
int m_lockTimeout = 10;
|
||||||
bool m_lockEnabled = true;
|
bool m_lockEnabled = true;
|
||||||
double m_curFontSize;
|
double m_curFontSize;
|
||||||
|
|
||||||
|
bool m_tabletMode = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LOCKDIALOGMODEL_H
|
#endif // LOCKDIALOGMODEL_H
|
||||||
|
|
Loading…
Reference in New Issue