mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
* we can use forward declaration for m_voiceClient * make IContextAudio -> BlackMisc::CIdentifiable * removed delayedInitMicrophone, RR will move it to another place
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
/* Copyright (C) 2013
|
|
* swift Project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution. No part of swift project, including this file, may be copied, modified, propagated,
|
|
* or distributed except according to the terms contained in the LICENSE file.
|
|
*/
|
|
|
|
#include "blackcore/context/contextaudioimpl.h"
|
|
#include "blackmisc/dbusserver.h"
|
|
|
|
#include <QTimer>
|
|
#include <QtGlobal>
|
|
#include <QPointer>
|
|
|
|
|
|
using namespace BlackMisc;
|
|
|
|
namespace BlackCore
|
|
{
|
|
namespace Context
|
|
{
|
|
CContextAudio::CContextAudio(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime) :
|
|
IContextAudio(mode, runtime)
|
|
{ }
|
|
|
|
CContextAudio *CContextAudio::registerWithDBus(CDBusServer *server)
|
|
{
|
|
if (!server || m_mode != CCoreFacadeConfig::LocalInDBusServer) { return this; }
|
|
server->addObject(IContextAudio::ObjectPath(), this);
|
|
return this;
|
|
}
|
|
|
|
} // namespace
|
|
} // namespace
|