Y2UIFunction Class Reference

#include <Y2UINamespace.h>

Inheritance diagram for Y2UIFunction:

Y2Function Y2UIOverloadedFunction

List of all members.

Public Member Functions

 Y2UIFunction (Y2UINamespace *instance, YUIComponent *comp, unsigned int pos, bool play_macro_blocks)
bool attachParameter (const YCPValue &arg, const int position)
constTypePtr wantedParameterType () const
bool appendParameter (const YCPValue &arg)
bool finishParameters ()
YCPValue evaluateCall ()
YCPValue evaluateCall_int ()
bool reset ()
string name () const

Protected Attributes

unsigned int m_position
Y2UINamespacem_instance
YUIComponentm_comp
bool m_play_macro_blocks
YCPValue m_param1
YCPValue m_param2
YCPValue m_param3
YCPValue m_param4
YCPValue m_param5


Detailed Description

A call of a UI:: function

Constructor & Destructor Documentation

Y2UIFunction::Y2UIFunction ( Y2UINamespace instance,
YUIComponent comp,
unsigned int  pos,
bool  play_macro_blocks 
)


Member Function Documentation

bool Y2UIFunction::attachParameter ( const YCPValue arg,
const int  position 
) [virtual]

Attaches a parameter to a given position to the call.

Returns:
false if there was a type mismatch

Implements Y2Function.

constTypePtr Y2UIFunction::wantedParameterType (  )  const [virtual]

What type is expected for the next appendParameter (val) ? (Used when calling from Perl, to be able to convert from the simple type system of Perl to the elaborate type system of YCP)

Returns:
Type::Any if number of parameters exceeded

Implements Y2Function.

bool Y2UIFunction::appendParameter ( const YCPValue arg  )  [virtual]

Appends a parameter to the call.

Returns:
false if there was a type mismatch

Implements Y2Function.

bool Y2UIFunction::finishParameters (  )  [virtual]

Signal that we're done adding parameters.

Returns:
false if there was a parameter missing

Implements Y2Function.

Reimplemented in Y2UIOverloadedFunction.

YCPValue Y2UIFunction::evaluateCall (  )  [virtual]

Executes the call

Implements Y2Function.

YCPValue Y2UIFunction::evaluateCall_int (  ) 

bool Y2UIFunction::reset (  )  [virtual]

Reset the currecn parameters, so the instance can be reused for the next call (appendParameter etc)

Implements Y2Function.

string Y2UIFunction::name (  )  const [virtual]

Implements Y2Function.


Member Data Documentation

unsigned int Y2UIFunction::m_position [protected]

Y2UINamespace* Y2UIFunction::m_instance [protected]

YUIComponent* Y2UIFunction::m_comp [protected]

bool Y2UIFunction::m_play_macro_blocks [protected]

YCPValue Y2UIFunction::m_param1 [protected]

YCPValue Y2UIFunction::m_param2 [protected]

YCPValue Y2UIFunction::m_param3 [protected]

YCPValue Y2UIFunction::m_param4 [protected]

YCPValue Y2UIFunction::m_param5 [protected]


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 01:27:48 2007 for yast2-core by  doxygen 1.5.3