~phablet-team/telephony-service/trunk

« back to all changes in this revision

Viewing changes to handler/handler.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:
21
21
 */
22
22
 
23
23
#include "handler.h"
 
24
#include "protocolmanager.h"
24
25
#include "telepathyhelper.h"
25
26
 
26
27
#include <TelepathyQt/MethodInvocationContext>
52
53
    Q_UNUSED(userActionTime)
53
54
    Q_UNUSED(handlerInfo)
54
55
 
55
 
    if (!TelepathyHelper::instance()->supportedProtocols().contains(account->protocolName())) {
 
56
    if (!ProtocolManager::instance()->isProtocolSupported(account->protocolName())) {
56
57
        context->setFinishedWithError(TP_QT_ERROR_NOT_CAPABLE, "The account for this request is not supported.");
57
58
        return;
58
59
    }