refs #526, category/statusmessage

* new categories
* utility functions in status message
This commit is contained in:
Klaus Basan
2016-01-02 20:42:06 +01:00
parent 4e0e2cddf8
commit 6fc39fb2d5
5 changed files with 44 additions and 7 deletions

View File

@@ -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;
}