libyui  3.0.10
YProperty Class Reference

#include <YProperty.h>

List of all members.

Public Member Functions

 YProperty (const std::string &name, YPropertyType type, bool isReadOnly=false)
std::string name () const
YPropertyType type () const
bool isReadOnly () const
std::string typeAsStr () const

Static Public Member Functions

static std::string typeAsStr (YPropertyType type)

Detailed Description

Class for widget properties.

Definition at line 51 of file YProperty.h.


Constructor & Destructor Documentation

YProperty::YProperty ( const std::string &  name,
YPropertyType  type,
bool  isReadOnly = false 
) [inline]

Constructor: Create a property with the specified name and type. 'isReadOnly' is for properties that cannot be set, only retrieved.

Definition at line 58 of file YProperty.h.


Member Function Documentation

bool YProperty::isReadOnly ( ) const [inline]

Returns 'true' if this property cannot be changed, only retrieved.

Definition at line 77 of file YProperty.h.

std::string YProperty::name ( ) const [inline]

Returns the name of this property.

Definition at line 67 of file YProperty.h.

YPropertyType YProperty::type ( ) const [inline]

Returns the type of this property.

Definition at line 72 of file YProperty.h.

std::string YProperty::typeAsStr ( ) const [inline]

Returns the type of this property as string.

Definition at line 82 of file YProperty.h.

std::string YProperty::typeAsStr ( YPropertyType  type) [static]

Returns a string description of a property type.

Definition at line 31 of file YProperty.cc.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends