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

« back to all changes in this revision

Viewing changes to agent/polkitqtlistener.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-12-13 09:08:07 UTC
  • Revision ID: james.westby@ubuntu.com-20091213090807-ibl3mdtee5964009
Tags: upstream-0.95.0~svn1057107
ImportĀ upstreamĀ versionĀ 0.95.0~svn1057107

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of the Polkit-qt project
 
3
 * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Library General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
13
 * Library General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Library General Public License
 
16
 * along with this library; see the file COPYING.LIB. If not, write to
 
17
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
18
 * Boston, MA 02110-1301, USA.
 
19
 *
 
20
 * polkit-qt-listener based on code by David Zeuthen <davidz@redhat.com>
 
21
 */
 
22
 
 
23
#ifndef POLKIT_QT_LISTENER_H
 
24
#define POLKIT_QT_LISTENER_H
 
25
 
 
26
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
 
27
 
 
28
#include "listeneradapter.h"
 
29
 
 
30
#include <polkitagent/polkitagent.h>
 
31
 
 
32
G_BEGIN_DECLS
 
33
 
 
34
#define POLKIT_QT_TYPE_LISTENER          (polkit_qt_listener_get_type())
 
35
#define POLKIT_QT_LISTENER(o)            (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_QT_TYPE_LISTENER, PolkitQtListener))
 
36
#define POLKIT_QT_LISTENER_CLASS(k)      (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_QT_TYPE_LISTENER, PolkitQtListenerClass))
 
37
#define POLKIT_QT_LISTENER_GET_CLASS(o)  (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_QT_TYPE_LISTENER, PolkitQtListenerClass))
 
38
#define POLKIT_QT_IS_LISTENER(o)         (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_QT_TYPE_LISTENER))
 
39
#define POLKIT_QT_IS_LISTENER_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_QT_TYPE_LISTENER))
 
40
 
 
41
typedef struct _PolkitQtListener PolkitQtListener;
 
42
typedef struct _PolkitQtListenerClass PolkitQtListenerClass;
 
43
 
 
44
GType                 polkit_qt_listener_get_type   (void) G_GNUC_CONST;
 
45
PolkitAgentListener  *polkit_qt_listener_new        (void);
 
46
 
 
47
G_END_DECLS
 
48
 
 
49
#endif /* POLKIT_QT_LISTENER_H */