[haiku-commits] r43156 - in haiku/trunk/src/apps/debugger: . user_interface user_interface/cli

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 3 Nov 2011 11:42:57 +0100 (CET)

Author: anevilyak
Date: 2011-11-03 11:42:56 +0100 (Thu, 03 Nov 2011)
New Revision: 43156
Changeset: https://dev.haiku-os.org/changeset/43156

Added:
   haiku/trunk/src/apps/debugger/user_interface/cli/
   haiku/trunk/src/apps/debugger/user_interface/cli/CommandLineUserInterface.cpp
   haiku/trunk/src/apps/debugger/user_interface/cli/CommandLineUserInterface.h
Modified:
   haiku/trunk/src/apps/debugger/Jamfile
Log:
Add stubs for the eventual command line interface.



Modified: haiku/trunk/src/apps/debugger/Jamfile
===================================================================
--- haiku/trunk/src/apps/debugger/Jamfile       2011-11-03 10:42:05 UTC (rev 
43155)
+++ haiku/trunk/src/apps/debugger/Jamfile       2011-11-03 10:42:56 UTC (rev 
43156)
@@ -19,6 +19,7 @@
 SEARCH_SOURCE += [ FDirName $(SUBDIR) source_language ] ;
 SEARCH_SOURCE += [ FDirName $(SUBDIR) types ] ;
 SEARCH_SOURCE += [ FDirName $(SUBDIR) user_interface ] ;
+SEARCH_SOURCE += [ FDirName $(SUBDIR) user_interface cli ] ;
 SEARCH_SOURCE += [ FDirName $(SUBDIR) user_interface gui ] ;
 SEARCH_SOURCE += [ FDirName $(SUBDIR) user_interface gui inspector_window ] ;
 SEARCH_SOURCE += [ FDirName $(SUBDIR) user_interface gui model ] ;
@@ -171,6 +172,9 @@
        # user_interface/gui
        GraphicalUserInterface.cpp
 
+       # user_interface/cli
+       CommandLineUserInterface.cpp
+
        # user_interface/gui/model
        VariablesViewState.cpp
        VariablesViewStateHistory.cpp

Added: 
haiku/trunk/src/apps/debugger/user_interface/cli/CommandLineUserInterface.cpp
===================================================================
--- 
haiku/trunk/src/apps/debugger/user_interface/cli/CommandLineUserInterface.cpp   
                            (rev 0)
+++ 
haiku/trunk/src/apps/debugger/user_interface/cli/CommandLineUserInterface.cpp   
    2011-11-03 10:42:56 UTC (rev 43156)
@@ -0,0 +1,73 @@
+/*
+ * Copyright 2011, Rene Gollent, rene@xxxxxxxxxxxx
+ * Distributed under the terms of the MIT License.
+ */
+
+
+#include "CommandLineUserInterface.h"
+
+
+CommandLineUserInterface::CommandLineUserInterface()
+{
+}
+
+
+CommandLineUserInterface::~CommandLineUserInterface()
+{
+}
+
+
+const char*
+CommandLineUserInterface::ID() const
+{
+       return "BasicCommandLineUserInterface";
+}
+
+
+status_t
+CommandLineUserInterface::Init(Team* team, UserInterfaceListener* listener)
+{
+       return B_UNSUPPORTED;
+}
+
+
+void
+CommandLineUserInterface::Show()
+{
+}
+
+
+void
+CommandLineUserInterface::Terminate()
+{
+}
+
+
+status_t
+CommandLineUserInterface::LoadSettings(const TeamUISettings* settings)
+{
+       return B_UNSUPPORTED;
+}
+
+
+status_t
+CommandLineUserInterface::SaveSettings(TeamUISettings*& settings) const
+{
+       return B_UNSUPPORTED;;
+}
+
+
+void
+CommandLineUserInterface::NotifyUser(const char* title, const char* message,
+       user_notification_type type)
+{
+}
+
+
+int32
+CommandLineUserInterface::SynchronouslyAskUser(const char* title,
+       const char* message, const char* choice1, const char* choice2,
+       const char* choice3)
+{
+       return 0;
+}

Added: 
haiku/trunk/src/apps/debugger/user_interface/cli/CommandLineUserInterface.h
===================================================================
--- haiku/trunk/src/apps/debugger/user_interface/cli/CommandLineUserInterface.h 
                        (rev 0)
+++ haiku/trunk/src/apps/debugger/user_interface/cli/CommandLineUserInterface.h 
2011-11-03 10:42:56 UTC (rev 43156)
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2011, Rene Gollent, rene@xxxxxxxxxxxx
+ * Distributed under the terms of the MIT License.
+ */
+#ifndef COMMAND_LINE_USER_INTERFACE_H
+#define COMMAND_LINE_USER_INTERFACE_H
+
+
+#include "UserInterface.h"
+
+
+class CommandLineUserInterface : public UserInterface {
+public:
+                                                               
CommandLineUserInterface();
+       virtual                                         
~CommandLineUserInterface();
+
+       virtual const char*                     ID() const;
+
+       virtual status_t                        Init(Team* team,
+                                                                       
UserInterfaceListener* listener);
+       virtual void                            Show();
+       virtual void                            Terminate();
+                                                                       // shut 
down the UI *now* -- no more user
+                                                                       // 
feedback
+
+       virtual status_t                        LoadSettings(const 
TeamUISettings* settings);
+       virtual status_t                        SaveSettings(TeamUISettings*& 
settings) const;
+
+       virtual void                            NotifyUser(const char* title,
+                                                                       const 
char* message,
+                                                                       
user_notification_type type);
+       virtual int32                           SynchronouslyAskUser(const 
char* title,
+                                                                       const 
char* message, const char* choice1,
+                                                                       const 
char* choice2, const char* choice3);
+
+};
+
+
+#endif // COMMAND_LINE_USER_INTERFACE_H


Other related posts:

  • » [haiku-commits] r43156 - in haiku/trunk/src/apps/debugger: . user_interface user_interface/cli - anevilyak