PartIter

A MIME part iterator.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gmime.object.ObjectWrap toplevel)

Creates a new #GMimePartIter for iterating over toplevel's subparts.

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
clone
gmime.part_iter.PartIter clone()

Clones the iter, including its current state.

getCurrent
gmime.object.ObjectWrap getCurrent()

Gets the #GMimeObject at the current #GMimePartIter position.

getParent
gmime.object.ObjectWrap getParent()

Gets the parent of the #GMimeObject at the current #GMimePartIter position.

getPath
string getPath()

Gets the path of the current #GMimeObject in the MIME structure used to initialize iter.

getToplevel
gmime.object.ObjectWrap getToplevel()

Gets the toplevel #GMimeObject used to initialize iter.

isValid
bool isValid()

Checks that the current state of iter is valid.

jumpTo
bool jumpTo(string path)

Updates the state of iter to point to the #GMimeObject specified by path.

next
bool next()

Advances to the next part in the MIME structure used to initialize iter.

prev
bool prev()

Rewinds to the previous part in the MIME structure used to initialize iter.

remove
bool remove()

Removes the #GMimeObject at the current position from its parent. If successful, iter is advanced to the next position (since the current position will become invalid).

replace
bool replace(gmime.object.ObjectWrap replacement)

Replaces the #GMimeObject at the current position with replacement.

reset
void reset()

Resets the state of iter to its initial state.

self
PartIter self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()

Inherited Members

From Boxed

_cInstancePtr
void* _cInstancePtr;

Pointer to the C boxed value

_getGType
GType _getGType()

Get the GType of this boxed type.

_gType
GType _gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

boxCopy
void* boxCopy()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.