mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
refs #526, category/statusmessage
* new categories * utility functions in status message
This commit is contained in:
@@ -71,13 +71,27 @@ namespace BlackMisc
|
||||
return cat;
|
||||
}
|
||||
|
||||
//! Downloading
|
||||
//! Generic downloads
|
||||
static const CLogCategory &download()
|
||||
{
|
||||
static const CLogCategory cat { "swift.download" };
|
||||
return cat;
|
||||
}
|
||||
|
||||
//! Webservice
|
||||
static const CLogCategory &webservice()
|
||||
{
|
||||
static const CLogCategory cat { "swift.webservice" };
|
||||
return cat;
|
||||
}
|
||||
|
||||
//! Webservice with swift DB
|
||||
static const CLogCategory &swiftDbWebservice()
|
||||
{
|
||||
static const CLogCategory cat { "swift.db.webservice" };
|
||||
return cat;
|
||||
}
|
||||
|
||||
//! All predefined special categories
|
||||
//! \note Human readable patterns are defined in CLogPattern::allHumanReadablePatterns
|
||||
static const QList<CLogCategory> &allSpecialCategories()
|
||||
@@ -89,7 +103,9 @@ namespace BlackMisc
|
||||
context(),
|
||||
contextSlot(),
|
||||
guiComponent(),
|
||||
download()
|
||||
download(),
|
||||
webservice(),
|
||||
swiftDbWebservice(),
|
||||
};
|
||||
return cats;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user