~phablet-team/telephony-service/trunk

« back to all changes in this revision

Viewing changes to libtelephonyservice/channelobserver.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:
20
20
 */
21
21
 
22
22
#include "channelobserver.h"
 
23
#include "protocolmanager.h"
23
24
#include "telepathyhelper.h"
24
25
#include <TelepathyQt/CallChannel>
25
26
#include <TelepathyQt/ChannelClassSpecList>
56
57
    Q_UNUSED(requestsSatisfied)
57
58
    Q_UNUSED(observerInfo)
58
59
 
59
 
    if (!TelepathyHelper::instance()->supportedProtocols().contains(account->protocolName())) {
 
60
    if (!ProtocolManager::instance()->isProtocolSupported(account->protocolName())) {
60
61
        context->setFinishedWithError(TP_QT_ERROR_NOT_CAPABLE, "The account for this request is not supported.");
61
62
        return;
62
63
    }