File indexing completed on 2024-05-12 16:16:47
0001 #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1 0002 0003 #include <polkitagent/polkitagent.h> 0004 #include "pkagentexample.h" 0005 #include <glib-object.h> 0006 #include <QDebug> 0007 #include <polkitqt1-subject.h> 0008 0009 PkAgentExample::PkAgentExample(int &argc, char **argv) 0010 : QCoreApplication(argc, argv) 0011 { 0012 PolkitQt1::UnixSessionSubject session(getpid()); 0013 0014 m_listener.registerListener(session, "/org/kde/PolicyKit1/AuthenticationAgent"); 0015 }