00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: YDate.h 00014 00015 Author: Anas Nashif <nashif@suse.de> 00016 00017 /-*/ 00018 00019 #ifndef YDate_h 00020 #define YDate_h 00021 00022 #include "YWidget.h" 00023 #include <ycp/YCPString.h> 00024 00028 class YDate : public YWidget 00029 { 00030 public: 00031 00036 YDate( const YWidgetOpt & opt, const YCPString & label ); 00037 00042 virtual char *widgetClass() { return "YDate"; } 00043 00047 YCPValue changeWidget( const YCPSymbol & property, const YCPValue & newvalue ); 00048 00052 YCPValue queryWidget( const YCPSymbol & property ); 00053 00054 00058 virtual void setNewDate( const YCPString & text ) = 0; 00059 00063 virtual YCPString getDate() = 0; 00064 00069 virtual void setLabel( const YCPString & label ); 00070 00071 00072 protected: 00076 YCPString label; 00077 00078 00079 }; 00080 00081 00082 #endif // YDate_h