libyui
YTimezoneSelector.h
1 /*
2  Copyright (C) 2000-2012 Novell, Inc
3  This library is free software; you can redistribute it and/or modify
4  it under the terms of the GNU Lesser General Public License as
5  published by the Free Software Foundation; either version 2.1 of the
6  License, or (at your option) version 3.0 of the License. This library
7  is distributed in the hope that it will be useful, but WITHOUT ANY
8  WARRANTY; without even the implied warranty of MERCHANTABILITY or
9  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10  License for more details. You should have received a copy of the GNU
11  Lesser General Public License along with this library; if not, write
12  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13  Floor, Boston, MA 02110-1301 USA
14 */
15 
16 
17 /*-/
18 
19  File: YTimezoneSelector.h
20 
21  Author: Stephan Kulow <coolo@suse.de>
22 
23 /-*/
24 
25 #ifndef YTimezoneSelector_h
26 #define YTimezoneSelector_h
27 
28 #include <map>
29 #include "YWidget.h"
30 
31 
33 
34 
38 class YTimezoneSelector : public YWidget
39 {
40 protected:
50  const std::string & pixmap,
51  const std::map<std::string, std::string> & timezones );
52 
53 public:
57  virtual ~YTimezoneSelector();
58 
63  virtual const char * widgetClass() const { return "YTimezoneSelector"; }
64 
75  virtual bool setProperty( const std::string & propertyName,
76  const YPropertyValue & val );
77 
84  virtual YPropertyValue getProperty( const std::string & propertyName );
85 
92  virtual const YPropertySet & propertySet();
93 
97  virtual std::string currentZone() const = 0;
98 
102  virtual void setCurrentZone( const std::string & zone, bool zoom ) = 0;
103 
104 private:
106 
107 };
108 
109 
110 #endif // YMultiProgressMeter_h
Definition: YProperty.h:104
Definition: YTimezoneSelector.cc:35
Definition: YProperty.h:197
YWidget * parent() const
Definition: YWidget.cc:271
virtual ~YTimezoneSelector()
Definition: YTimezoneSelector.cc:51
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition: YTimezoneSelector.cc:74
Definition: YTimezoneSelector.h:38
virtual const YPropertySet & propertySet()
Definition: YTimezoneSelector.cc:58
virtual std::string currentZone() const =0
Definition: YWidget.h:54
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition: YTimezoneSelector.cc:93
virtual void setCurrentZone(const std::string &zone, bool zoom)=0
virtual const char * widgetClass() const
Definition: YTimezoneSelector.h:63
YTimezoneSelector(YWidget *parent, const std::string &pixmap, const std::map< std::string, std::string > &timezones)
Definition: YTimezoneSelector.cc:43