1 /* 2 * Copyright 2011, Rene Gollent, rene@gollent.com. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef COMMAND_LINE_USER_INTERFACE_H 6 #define COMMAND_LINE_USER_INTERFACE_H 7 8 9 #include "UserInterface.h" 10 11 12 class CommandLineUserInterface : public UserInterface { 13 public: 14 CommandLineUserInterface(); 15 virtual ~CommandLineUserInterface(); 16 17 virtual const char* ID() const; 18 19 virtual status_t Init(Team* team, 20 UserInterfaceListener* listener); 21 virtual void Show(); 22 virtual void Terminate(); 23 // shut down the UI *now* -- no more user 24 // feedback 25 26 virtual status_t LoadSettings(const TeamUISettings* settings); 27 virtual status_t SaveSettings(TeamUISettings*& settings) const; 28 29 virtual void NotifyUser(const char* title, 30 const char* message, 31 user_notification_type type); 32 virtual int32 SynchronouslyAskUser(const char* title, 33 const char* message, const char* choice1, 34 const char* choice2, const char* choice3); 35 36 }; 37 38 39 #endif // COMMAND_LINE_USER_INTERFACE_H 40