[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kdesktop
From:       Ralf Hoelzer <ralf () well ! com>
Date:       2003-06-25 12:30:51
[Download RAW message or body]

CVS commit by rhoezler: 

Added a clearCommandHistory() DCOP call (used by kcm_privacy).


  M +4 -0      KDesktopIface.h   1.23
  M +5 -0      desktop.cc   1.275
  M +1 -0      desktop.h   1.122
  M +6 -0      minicli.cpp   1.154
  M +1 -0      minicli.h   1.43


--- kdebase/kdesktop/minicli.h  #1.42:1.43
@@ -51,4 +51,5 @@ public:
   void reset();
   void saveConfig();
+  void clearHistory();
 
 protected slots:

--- kdebase/kdesktop/minicli.cpp  #1.153:1.154
@@ -269,4 +269,10 @@ void Minicli::saveConfig()
 }
 
+void Minicli::clearHistory()
+{
+  m_dlg->cbCommand->clearHistory();
+  saveConfig();
+}
+
 void Minicli::accept()
 {

--- kdebase/kdesktop/desktop.h  #1.121:1.122
@@ -67,4 +67,5 @@ public:
   virtual void refresh();
   virtual void logout();
+  virtual void clearCommandHistory();
 
   void logout( KApplication::ShutdownConfirm confirm, KApplication::ShutdownType sdtype );

--- kdebase/kdesktop/desktop.cc  #1.274:1.275
@@ -737,4 +737,9 @@ void KDesktop::setVRoot( bool enable )
 }
 
+void KDesktop::clearCommandHistory()
+{
+    m_miniCli->clearHistory();
+}
+
 void KDesktop::setIconsEnabled( bool enable )
 {

--- kdebase/kdesktop/KDesktopIface.h  #1.22:1.23
@@ -75,4 +75,8 @@ k_dcop:
     virtual void setVRoot( bool enable )= 0;
     /**
+     * Clears the command history and completion items
+     */
+    virtual void clearCommandHistory() = 0;
+    /**
      * Returns whether icons are enabled on the desktop
      */


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic