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 9 #ifndef _TIME_ZONE_LIST_ITEM_H 10 #define _TIME_ZONE_LIST_ITEM_H 11 12 13 #include <StringItem.h> 14 15 16 class BBitmap; 17 class BCountry; 18 class BTimeZone; 19 20 21 class TimeZoneListItem : public BStringItem { 22 public: 23 TimeZoneListItem(const char* text, 24 BCountry* country, BTimeZone* timeZone); 25 ~TimeZoneListItem(); 26 27 void DrawItem(BView* owner, BRect frame, 28 bool complete = false); 29 30 bool HasTimeZone() const; 31 const BTimeZone& TimeZone() const; 32 const BString& ID() const; 33 const BString& Name() const; 34 int OffsetFromGMT() const; 35 36 private: 37 BBitmap* fIcon; 38 BTimeZone* fTimeZone; 39 }; 40 41 42 #endif // _TIME_ZONE_LIST_ITEM_H 43