1 /* 2 * Copyright 2009-2010, Philippe Houdoin, phoudoin@haiku-os.org. All rights reserved. 3 * Copyright 2013, Rene Gollent, rene@gollent.com. 4 * Distributed under the terms of the MIT License. 5 */ 6 #ifndef TEAMS_WINDOW_H 7 #define TEAMS_WINDOW_H 8 9 10 #include <Window.h> 11 12 class BButton; 13 class BListView; 14 class BFile; 15 class BMessage; 16 class SettingsManager; 17 class TeamsListView; 18 19 class TeamsWindow : public BWindow { 20 public: 21 TeamsWindow(SettingsManager* settingsManager); 22 virtual ~TeamsWindow(); 23 24 static TeamsWindow* Create(SettingsManager* settingsManager); 25 // throws 26 27 virtual void MessageReceived(BMessage* message); 28 virtual bool QuitRequested(); 29 30 private: 31 void _Init(); 32 status_t _OpenSettings(BFile& file, uint32 mode); 33 status_t _LoadSettings(BMessage& settings); 34 status_t _SaveSettings(); 35 36 private: 37 team_id fCurrentTeam; 38 TeamsListView* fTeamsListView; 39 BButton* fAttachTeamButton; 40 BButton* fCreateTeamButton; 41 SettingsManager* fSettingsManager; 42 43 }; 44 45 46 #endif // TEAMS_WINDOW_H 47