GMime.SignatureList

g GMime.SignatureList GMime.SignatureList GObject.Object GObject.Object GObject.Object->GMime.SignatureList

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add (sig)

clear ()

contains (sig)

get_signature (index)

index_of (sig)

insert (index, sig)

length ()

remove (sig)

remove_at (index)

set_signature (index, sig)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

array

[object]

r

parent_object

GObject.Object

r

parent GObject.Object

Class Details

class GMime.SignatureList(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GMime.SignatureListClass

A collection of GMime.Signature objects.

classmethod new()
Returns:

a new GMime.SignatureList.

Return type:

GMime.SignatureList

Creates a new GMime.SignatureList.

add(sig)
Parameters:

sig (GMime.Signature) – a GMime.Signature

Returns:

the index of the added GMime.Signature.

Return type:

int

Adds a GMime.Signature to the GMime.SignatureList.

clear()

Clears the list of addresses.

contains(sig)
Parameters:

sig (GMime.Signature) – a GMime.Signature

Returns:

True if the specified GMime.Signature is contained within the specified GMime.SignatureList or False otherwise.

Return type:

bool

Checks whether or not the specified GMime.Signature is contained within the GMime.SignatureList.

get_signature(index)
Parameters:

index (int) – index of GMime.Signature to get

Returns:

the GMime.Signature at the specified index or None if the index is out of range.

Return type:

GMime.Signature

Gets the GMime.Signature at the specified index.

index_of(sig)
Parameters:

sig (GMime.Signature) – a GMime.Signature

Returns:

the index of the requested GMime.Signature within the GMime.SignatureList or %-1 if it is not contained within the GMime.SignatureList.

Return type:

int

Gets the index of the specified GMime.Signature inside the GMime.SignatureList.

insert(index, sig)
Parameters:

Inserts a GMime.Signature into the GMime.SignatureList at the specified index.

length()
Returns:

the number of GMime.Signature objects in the list.

Return type:

int

Gets the length of the list.

remove(sig)
Parameters:

sig (GMime.Signature) – a GMime.Signature

Returns:

True if the specified GMime.Signature was removed or False otherwise.

Return type:

bool

Removes a GMime.Signature from the GMime.SignatureList.

remove_at(index)
Parameters:

index (int) – index to remove

Returns:

True if an GMime.Signature was removed or False otherwise.

Return type:

bool

Removes a GMime.Signature from the GMime.SignatureList at the specified index.

set_signature(index, sig)
Parameters:

Sets the GMime.Signature at the specified index to sig.