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