Class SieveCommand.

Inherits SieveProduction

The SieveCommand class models the RFC 5228 "command" production.

SieveArgumentList * SieveCommand::arguments() const

Returns what setArguments() set, or a null pointer if setArguments() has not been called.

SieveBlock * SieveCommand::block() const

Returns what setBlock() set, or 0 if setBlock() has not been called.

EString SieveCommand::identifier() const

Returns what setIdentifier() set, or an empty string if setIdentifier() has not been called.

void SieveCommand::parse( const EString & previous )

Performs second-phase parsing of this command. Checks that its name is supported and that the arguments fit the command. Assumes that the previous command is, well, previous and uses that to verify that there's no if/elsif/else mismatch.

void SieveCommand::parseAsAddress( const UString & s, const char * t )

Parses s as a single address, and records an error related to tag t if there's any problem.

void SieveCommand::setArguments( SieveArgumentList * l )

Notifies this command that l is a list of its arguments. Does nothing if l is a null pointer.

void SieveCommand::setBlock( SieveBlock * b )

Notifies this command that b is its subsidiary block. Does nothing if b is 0.

void SieveCommand::setIdentifier( const EString & i )

Notifies this command that its identifier if i. The initial value is an empty string, which is not valid.

void SieveCommand::setRequirePermitted( bool p )

Notifies this command that in this position, "require" is either permitted or not, depending on p. The initial value is false.

This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.