~phablet-team/telephony-service/trunk

« back to all changes in this revision

Viewing changes to approver/approver.cpp

  • Committer: Gustavo Pichorim Boiko
  • Date: 2015-06-10 21:05:50 UTC
  • mto: This revision was merged to the branch mainline in revision 1086.
  • Revision ID: gustavo.boiko@canonical.com-20150610210550-td4j0wn63babz0ej
Finish implementing dynamic protocol support loading.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include "ringtone.h"
32
32
#include "callmanager.h"
33
33
#include "callentry.h"
 
34
#include "protocolmanager.h"
34
35
#include "tonegenerator.h"
35
36
#include "telepathyhelper.h"
36
37
#include "accountentry.h"
147
148
void Approver::addDispatchOperation(const Tp::MethodInvocationContextPtr<> &context,
148
149
                                        const Tp::ChannelDispatchOperationPtr &dispatchOperation)
149
150
{
150
 
    if (!TelepathyHelper::instance()->supportedProtocols().contains(dispatchOperation->account()->protocolName())) {
 
151
    if (!ProtocolManager::instance()->isProtocolSupported(dispatchOperation->account()->protocolName())) {
151
152
        context->setFinishedWithError(TP_QT_ERROR_NOT_CAPABLE, "The account for this request is not supported.");
152
153
        return;
153
154
    }