#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1

#include <polkitagent/polkitagent.h>
#include "pkagentexample.h"
#include <glib-object.h>
#include <QtCore/QDebug>
#include "polkitqt1-subject.h"

PkAgentExample::PkAgentExample(int &argc, char **argv)
        : QCoreApplication(argc, argv)
{
    g_type_init();

    PolkitQt1::UnixSessionSubject *session;
    session = new PolkitQt1::UnixSessionSubject(getpid());

    m_listener.registerListener(session, "/org/kde/PolicyKit1/AuthenticationAgent");
}
