1 /* 2 * Copyright 2010, Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Adrien Destugues <pulkomandy@pulkomandy.ath.cx> 7 */ 8 #ifndef _TIME_ZONE_LIST_ITEM_H 9 #define _TIME_ZONE_LIST_ITEM_H 10 11 12 #include <StringItem.h> 13 14 15 class BBitmap; 16 class BCountry; 17 class BTimeZone; 18 19 20 class TimeZoneListItem : public BStringItem { 21 public: 22 TimeZoneListItem(const char* text, 23 BCountry* country, BTimeZone* timeZone); 24 ~TimeZoneListItem(); 25 26 void DrawItem(BView* owner, BRect frame, 27 bool complete = false); 28 29 bool HasTimeZone() const; 30 const BTimeZone& TimeZone() const; 31 const BString& ID() const; 32 const BString& Name() const; 33 int OffsetFromGMT() const; 34 35 private: 36 BBitmap* fIcon; 37 BTimeZone* fTimeZone; 38 }; 39 40 41 #endif // _TIME_ZONE_LIST_ITEM_H 42