~ci-train-bot/online-accounts-api/online-accounts-api-ubuntu-yakkety-landing-090

« back to all changes in this revision

Viewing changes to src/daemon/aacontext.cpp

  • Committer: Alberto Mardegan
  • Date: 2015-02-10 10:24:08 UTC
  • mfrom: (3.1.3 accounts-daemon)
  • Revision ID: alberto.mardegan@canonical.com-20150210102408-alscglcpix51p1vj
Add AccountInfo class to group the account ID plus details

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    }
20
20
 
21
21
    QString peer_address = message.service();
22
 
    qWarning() << "Peer address is " << peer_address;
23
 
 
24
22
    try {
25
23
        return contexts.at(peer_address);
26
24
    } catch (const std::out_of_range &e) {
27
25
    }
28
26
 
29
 
    qWarning() << "Address wasn't in cache";
30
27
    QDBusMessage msg = QDBusMessage::createMethodCall(
31
28
        "org.freedesktop.DBus", "/org/freedesktop/DBus",
32
29
        "org.freedesktop.DBus", "GetConnectionAppArmorSecurityContext");
33
30
    msg << peer_address;
34
 
    qWarning() << "Calling GetConnectionAppArmorSecurityContext";
35
31
    QDBusMessage reply = bus.call(msg, QDBus::Block);
36
32
 
37
33
    QString context;