mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
40 lines
874 B
C++
40 lines
874 B
C++
#include "datacontext.h"
|
|
|
|
namespace BlackMiscTest
|
|
{
|
|
|
|
const QString CDataContext::ServiceName = QString(BLACKMISCKTEST_DATACONTEXT_INTERFACENAME);
|
|
const QString CDataContext::ServicePath = QString(BLACKMISCKTEST_DATACONTEXT_SERVICEPATH);
|
|
|
|
/*
|
|
* Init this context
|
|
*/
|
|
CDataContext::CDataContext(BlackCore::CDBusServer *server)
|
|
{
|
|
// 1. Register with the server
|
|
server->addObject(CDataContext::ServicePath, this);
|
|
|
|
// 2. Next I would wire all signals and slots of this context
|
|
// belonging together
|
|
}
|
|
|
|
/*
|
|
* FooSlot
|
|
*/
|
|
void CDataContext::fooSlot(const QString &baz)
|
|
{
|
|
qDebug() << "foo slot" << baz;
|
|
}
|
|
|
|
|
|
/*
|
|
* FooSlot
|
|
* \return
|
|
*/
|
|
QString CDataContext::fooSlotRet(const QString &baz)
|
|
{
|
|
qDebug() << "foo slot" << baz;
|
|
return baz;
|
|
}
|
|
}
|