1/* 2 * Copyright 2004-2008, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * J��r��me Duval 7 */ 8#ifndef TEAM_LIST_ITEM_H 9#define TEAM_LIST_ITEM_H 10 11 12#include <Bitmap.h> 13#include <ListItem.h> 14#include <Path.h> 15#include <Roster.h> 16#include <String.h> 17 18 19extern bool gLocalizedNamePreferred; 20 21 22class TeamListItem : public BListItem { 23public: 24 TeamListItem(team_info& info); 25 virtual ~TeamListItem(); 26 27 virtual void DrawItem(BView* owner, BRect frame, 28 bool complete = false); 29 virtual void Update(BView* owner, const BFont* font); 30 31 void CacheLocalizedName(); 32 33 const team_info* GetInfo(); 34 const BBitmap* LargeIcon() { return &fLargeIcon; }; 35 const BPath* Path() { return &fPath; }; 36 const char* AppSignature() { return fAppInfo.signature; }; 37 38 bool IsSystemServer(); 39 bool IsApplication() const; 40 41 bool Found() const { return fFound; } 42 void SetFound(bool found) { fFound = found; } 43 44 void SetRefusingToQuit(bool refusing); 45 bool IsRefusingToQuit(); 46 47 int32 MinimalHeight(); 48 49private: 50 team_info fTeamInfo; 51 app_info fAppInfo; 52 BBitmap fMiniIcon; 53 BBitmap fLargeIcon; 54 BPath fPath; 55 BString fLocalizedName; 56 bool fFound; 57 bool fRefusingToQuit; 58}; 59 60 61#endif // TEAM_LIST_ITEM_H 62