Polkit.UnixGroup

g GObject.GInterface GObject.GInterface Polkit.Identity Polkit.Identity GObject.GInterface->Polkit.Identity GObject.Object GObject.Object Polkit.UnixGroup Polkit.UnixGroup GObject.Object->Polkit.UnixGroup Polkit.Identity->Polkit.UnixGroup

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Polkit.Identity (4)

Structs:

GObject.ObjectClass (5)

class

new (gid)

class

new_for_name (name)

get_gid ()

set_gid (gid)

Virtual Methods

Inherited:

GObject.Object (7), Polkit.Identity (3)

Properties

Name

Type

Flags

Short Description

gid

int

r/w/c

The UNIX group ID

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Polkit.UnixGroup(**kwargs)
Bases:

GObject.Object, Polkit.Identity

Abstract:

No

Structure:

Polkit.UnixGroupClass

An object representing a group identity on a UNIX system.

classmethod new(gid)
Parameters:

gid (int) – A UNIX group id.

Returns:

A Polkit.UnixGroup object. Free with GObject.Object.unref().

Return type:

Polkit.Identity

Creates a new Polkit.UnixGroup object for gid.

classmethod new_for_name(name)
Parameters:

name (str) – A UNIX group name.

Raises:

GLib.Error

Returns:

A Polkit.UnixGroup object or None if error is set.

Return type:

Polkit.Identity or None

Creates a new Polkit.UnixGroup object for a group with the group name name.

get_gid()
Returns:

A UNIX group id.

Return type:

int

Gets the UNIX group id for self.

set_gid(gid)
Parameters:

gid (int) – A UNIX group id.

Sets gid for self.

Property Details

Polkit.UnixGroup.props.gid
Name:

gid

Type:

int

Default Value:

-1

Flags:

READABLE, WRITABLE, CONSTRUCT

The UNIX group id.