refs #246 refactored construction of the network context into a factory method

This commit is contained in:
Mathew Sutcliffe
2014-06-11 22:36:53 +01:00
parent 695eb5c41c
commit cdca7343e4
5 changed files with 33 additions and 13 deletions

View File

@@ -46,6 +46,9 @@ namespace BlackCore
//! \copydoc CContext::getPathAndContextId()
virtual QString getPathAndContextId() const { return this->buildPathAndContextId(ObjectPath()); }
//! Factory method
static IContextNetwork *create(CRuntime *parent, CRuntimeConfig::ContextMode mode, CDBusServer *server, QDBusConnection &conn);
//! Destructor
virtual ~IContextNetwork() {}