~ubuntu-branches/ubuntu/oneiric/polkit-qt-1/oneiric

« back to all changes in this revision

Viewing changes to examples/PkExampleHelper.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-11-07 01:18:28 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101107011828-qf5lzf950ih0l250
Tags: 0.98.1~git20101107-0ubuntu1
* New upstream snapshot:
  - Drop kubuntu_01_fix_glib_ftbfs.diff, accepted upstream
  - Bump build-depend versions on polkit to >= 0.98

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
    // message().service() is the service name of the caller
67
67
    // We can check if the caller is authorized to the following action
68
68
    Authority::Result result;
69
 
    SystemBusNameSubject *subject;
70
 
 
71
 
    subject = new SystemBusNameSubject(message().service());
 
69
    SystemBusNameSubject subject(message().service());
72
70
 
73
71
    result = Authority::instance()->checkAuthorizationSync("org.qt.policykit.examples.set",
74
72
             subject , Authority::AllowUserInteraction);