Tizen 2.1 base
[platform/upstream/glib2.0.git] / docs / reference / gio / html / GSimplePermission.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GSimplePermission</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GIO Reference Manual">
8 <link rel="up" href="permissions.html" title="Permissions">
9 <link rel="prev" href="GPermission.html" title="GPermission">
10 <link rel="next" href="application.html" title="Application support">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16 <tr valign="middle">
17 <td><a accesskey="p" href="GPermission.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="permissions.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GIO Reference Manual</th>
21 <td><a accesskey="n" href="application.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GSimplePermission.synopsis" class="shortcut">Top</a>
25                    | 
26                   <a href="#GSimplePermission.description" class="shortcut">Description</a>
27                    | 
28                   <a href="#GSimplePermission.object-hierarchy" class="shortcut">Object Hierarchy</a>
29 </td></tr>
30 </table>
31 <div class="refentry">
32 <a name="GSimplePermission"></a><div class="titlepage"></div>
33 <div class="refnamediv"><table width="100%"><tr>
34 <td valign="top">
35 <h2><span class="refentrytitle"><a name="GSimplePermission.top_of_page"></a>GSimplePermission</span></h2>
36 <p>GSimplePermission — A GPermission that doesn't change value</p>
37 </td>
38 <td valign="top" align="right"></td>
39 </tr></table></div>
40 <div class="refsynopsisdiv">
41 <a name="GSimplePermission.synopsis"></a><h2>Synopsis</h2>
42 <pre class="synopsis">                    <a class="link" href="GSimplePermission.html#GSimplePermission-struct" title="GSimplePermission">GSimplePermission</a>;
43 <a class="link" href="GPermission.html" title="GPermission"><span class="returnvalue">GPermission</span></a> *       <a class="link" href="GSimplePermission.html#g-simple-permission-new" title="g_simple_permission_new ()">g_simple_permission_new</a>             (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> allowed</code></em>);
44 </pre>
45 </div>
46 <div class="refsect1">
47 <a name="GSimplePermission.object-hierarchy"></a><h2>Object Hierarchy</h2>
48 <pre class="synopsis">
49   <a href="./../gobject/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
50    +----<a class="link" href="GPermission.html" title="GPermission">GPermission</a>
51          +----GSimplePermission
52 </pre>
53 </div>
54 <div class="refsect1">
55 <a name="GSimplePermission.description"></a><h2>Description</h2>
56 <p>
57 <a class="link" href="GSimplePermission.html" title="GSimplePermission"><span class="type">GSimplePermission</span></a> is a trivial implementation of <a class="link" href="GPermission.html" title="GPermission"><span class="type">GPermission</span></a> that
58 represents a permission that is either always or never allowed.  The
59 value is given at construction and doesn't change.
60 </p>
61 <p>
62 Calling request or release will result in errors.
63 </p>
64 </div>
65 <div class="refsect1">
66 <a name="GSimplePermission.details"></a><h2>Details</h2>
67 <div class="refsect2">
68 <a name="GSimplePermission-struct"></a><h3>GSimplePermission</h3>
69 <pre class="programlisting">typedef struct _GSimplePermission GSimplePermission;</pre>
70 <p>
71 <a class="link" href="GSimplePermission.html" title="GSimplePermission"><span class="type">GSimplePermission</span></a> is an opaque data structure.  There are no methods
72 except for those defined by <a class="link" href="GPermission.html" title="GPermission"><span class="type">GPermission</span></a>.
73 </p>
74 </div>
75 <hr>
76 <div class="refsect2">
77 <a name="g-simple-permission-new"></a><h3>g_simple_permission_new ()</h3>
78 <pre class="programlisting"><a class="link" href="GPermission.html" title="GPermission"><span class="returnvalue">GPermission</span></a> *       g_simple_permission_new             (<em class="parameter"><code><a href="./../glib/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> allowed</code></em>);</pre>
79 <p>
80 Creates a new <a class="link" href="GPermission.html" title="GPermission"><span class="type">GPermission</span></a> instance that represents an action that is
81 either always or never allowed.
82 </p>
83 <div class="variablelist"><table border="0">
84 <col align="left" valign="top">
85 <tbody>
86 <tr>
87 <td><p><span class="term"><em class="parameter"><code>allowed</code></em> :</span></p></td>
88 <td>
89 <a href="./../glib/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the action is allowed</td>
90 </tr>
91 <tr>
92 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
93 <td>the <a class="link" href="GSimplePermission.html" title="GSimplePermission"><span class="type">GSimplePermission</span></a>, as a <a class="link" href="GPermission.html" title="GPermission"><span class="type">GPermission</span></a>
94 </td>
95 </tr>
96 </tbody>
97 </table></div>
98 <p class="since">Since 2.26</p>
99 </div>
100 </div>
101 </div>
102 <div class="footer">
103 <hr>
104           Generated by GTK-Doc V1.18</div>
105 </body>
106 </html>