You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
polkit-tqt/examples/agent/pkagentexample.cpp

18 lines
465 B

#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
#include <polkitagent/polkitagent.h>
#include "pkagentexample.h"
#include <glib-object.h>
#include <TQtCore/TQDebug>
#include "polkittqt1-subject.h"
PkAgentExample::PkAgentExample(int &argc, char **argv)
: TQCoreApplication(argc, argv)
{
g_type_init();
PolkitTQt1::UnixSessionSubject session(getpid());
m_listener.registerListener(session, "/org/kde/PolicyKit1/AuthenticationAgent");
}