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

List:       kde-commits
Subject:    kdenonbeta/frontman/plugins/basicprocess
From:       Ravikiran Rajagopal <ravi () kde ! org>
Date:       2004-02-04 23:06:09
Message-ID: 20040204230609.685CB9907 () office ! kde ! org
[Download RAW message or body]

CVS commit by ravi: 

Let controller know that a line of input has been submitted.


  M +8 -0      fmbasicprocess.cpp   1.3
  M +1 -0      fmbasicprocess.h   1.3


--- kdenonbeta/frontman/plugins/basicprocess/fmbasicprocess.cpp  #1.2:1.3
@@ -78,4 +78,7 @@ namespace FM
     connect( mProcess, SIGNAL( readReady( KProcIO* ) ), SLOT( readOutput( \
                KProcIO* ) ) );
     connect( mProcess, SIGNAL( receivedStdout( KProcess*, char*, int ) ), \
SLOT( partialTextAvailable() ) ); +    // Since we only send lines of input \
to the process, whenever KProcess emits a wroteStdin() signal, it implies \
that a full input +    // line has been sent to the process. We are relying \
on an undocumented feature of KProcIO here. +    connect( mProcess, SIGNAL( \
wroteStdin( KProcess* ) ), SLOT( lineWritten() ) );  
     bool result = mProcess->start( KProcess::NotifyOnExit, true );
@@ -180,3 +183,8 @@ namespace FM
       mTimer->start( 300, true );
   }
+
+  void BasicProcess::lineWritten()
+  {
+    emit oneInputLineWritten( this );
+  }
 }

--- kdenonbeta/frontman/plugins/basicprocess/fmbasicprocess.h  #1.2:1.3
@@ -52,4 +52,5 @@ namespace FM
     void checkForPartial();
     void partialTextAvailable();
+    void lineWritten();
 
   private:


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

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