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

« back to all changes in this revision

Viewing changes to core/polkitqt1-actiondescription.h

  • 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:
1
1
/*
2
2
 * This file is part of the Polkit-qt project
3
3
 * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
 
4
 * Copyright (C) 2010 Dario Freddi <drf@kde.org>
4
5
 *
5
6
 * This library is free software; you can redistribute it and/or
6
7
 * modify it under the terms of the GNU Library General Public
25
26
 
26
27
#include <QtCore/QList>
27
28
#include <QtCore/QMetaType>
 
29
#include <QtCore/QSharedData>
28
30
 
29
31
typedef struct _PolkitActionDescription PolkitActionDescription;
30
32
 
33
35
/**
34
36
 * \class ActionDescription polkitqt1-actiondescription.h ActionDescription
35
37
 * \author Jaroslav Reznik <jreznik@redhat.com>
 
38
 * \author Dario Freddi <drf@kde.org>
36
39
 *
37
40
 * \brief Class used to encapsulate a registered action.
38
41
 */
56
59
        Authorized = 5
57
60
    };
58
61
 
59
 
    typedef QList<ActionDescription *> List;
 
62
    typedef QList< ActionDescription > List;
60
63
 
 
64
    ActionDescription();
61
65
    /**
62
66
     * \brief Constructor of ActionDescription object from PolkitActionDescription
63
67
     *
65
69
     *
66
70
     * \param actionDesciption PolkitActionDescription
67
71
     */
68
 
    ActionDescription(PolkitActionDescription *actionDescription);
 
72
    explicit ActionDescription(PolkitActionDescription *actionDescription);
 
73
    ActionDescription(const ActionDescription &other);
69
74
    ~ActionDescription();
70
75
 
 
76
    ActionDescription &operator=(const ActionDescription &other);
 
77
 
71
78
    /**
72
79
     * \brief Gets the action id for ActionDescription
73
80
     *
132
139
    ActionDescription::ImplicitAuthorization implicitActive() const;
133
140
 
134
141
private:
135
 
    class Private;
136
 
    Private * const d;
 
142
    class Data;
 
143
    QSharedDataPointer< Data > d;
137
144
};
138
145
}
139
146