mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #315 Removed old/deprecated CRuntime::logSlot, changed contexts to use new CRuntime::logSlot.
Network context was already using new CRuntime::logSlot as of commit:81c68058.
This commit is contained in:
@@ -49,7 +49,7 @@ namespace BlackCore
|
||||
*/
|
||||
void CContextApplication::notifyAboutComponentChange(uint component, uint action)
|
||||
{
|
||||
if (this->getRuntime()->isSlotLogForApplicationEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, QString::number(component), QString::number(action));
|
||||
this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, { QString::number(component), QString::number(action) });
|
||||
this->componentChanged(component, action);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace BlackCore
|
||||
*/
|
||||
bool CContextApplication::writeToFile(const QString &fileName, const QString &content)
|
||||
{
|
||||
if (this->getRuntime()->isSlotLogForApplicationEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, fileName, content.left(25));
|
||||
this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, { fileName, content.left(25) });
|
||||
if (fileName.isEmpty()) return false;
|
||||
QFile file(fileName);
|
||||
bool success = false;
|
||||
@@ -76,7 +76,7 @@ namespace BlackCore
|
||||
*/
|
||||
QString CContextApplication::readFromFile(const QString &fileName)
|
||||
{
|
||||
if (this->getRuntime()->isSlotLogForApplicationEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, fileName);
|
||||
this->getRuntime()->logSlot(c_logContext, Q_FUNC_INFO, fileName);
|
||||
QFile file(fileName);
|
||||
QString content;
|
||||
if (fileName.isEmpty()) return content;
|
||||
|
||||
Reference in New Issue
Block a user