mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
refs #316 Changed blackcore to use CLogMessage to emit messages.
Also changed functions which always returned CStatusMessageList containing a single CStatusMessage, to return CStatusMessage instead for simplicity.
This commit is contained in:
@@ -43,6 +43,9 @@ namespace BlackCore
|
||||
Q_CLASSINFO("D-Bus Interface", BLACKCORE_CONTEXTNETWORK_INTERFACENAME)
|
||||
|
||||
public:
|
||||
//! Log message category
|
||||
static QString getMessageCategory() { return "swift.context.network"; }
|
||||
|
||||
//! DBus interface name
|
||||
static const QString &InterfaceName()
|
||||
{
|
||||
@@ -144,13 +147,13 @@ namespace BlackCore
|
||||
* \return messages gererated during connecting
|
||||
* \see INetwork::LoginMode
|
||||
*/
|
||||
virtual BlackMisc::CStatusMessageList connectToNetwork(uint loginMode) = 0;
|
||||
virtual BlackMisc::CStatusMessage connectToNetwork(uint loginMode) = 0;
|
||||
|
||||
/*!
|
||||
* Disconnect from network
|
||||
* \return messages generated during disconnecting
|
||||
*/
|
||||
virtual BlackMisc::CStatusMessageList disconnectFromNetwork() = 0;
|
||||
virtual BlackMisc::CStatusMessage disconnectFromNetwork() = 0;
|
||||
|
||||
//! Network connected?
|
||||
virtual bool isConnected() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user