Msg.MessageService

g GObject.Object GObject.Object Msg.Service Msg.Service GObject.Object->Msg.Service Msg.MessageService Msg.MessageService Msg.Service->Msg.MessageService

Subclasses:

None

Methods

Inherited:

Msg.Service (11), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (authorizer)

create_draft (message, cancellable)

delete (message, cancellable)

get_mail_folder (type, cancellable)

get_mail_folders (cancellable)

get_messages (cancellable)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Msg.Service (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Msg.MessageService(**kwargs)
Bases:

Msg.Service

Abstract:

No

Structure:

Msg.MessageServiceClass

classmethod new(authorizer)
Parameters:

authorizer (Msg.Authorizer) –

Return type:

Msg.MessageService

create_draft(message, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

a new Msg.Message

Return type:

Msg.Message

Create new draft message #message and return new message object.

delete(message, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True for succes, else &:obj:False

Return type:

bool

Delets #message.

get_mail_folder(type, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

a Msg.MailFolder

Return type:

Msg.MailFolder

Get a specific mail folder for given service

get_mail_folders(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – a Gio.Cancellable

Raises:

GLib.Error

Returns:

all mail folders the user can access

Return type:

[Msg.MailFolder]

Get all folders for given service

get_messages(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – a Gio.Cancellable

Raises:

GLib.Error

Returns:

all messages the user can access

Return type:

[Msg.Message]

Get all messages for given service