![]()  | 
  
    Songbook-Client
    0.7
    
   This application is a manager of customguitar songbooks 
   | 
 
CMakeSongbookProcess calls songbook's external processes. More...
#include <make-songbook-process.hh>
Public Slots | |
| void | execute () | 
| void | setCommand (const QString &command) | 
| void | setStartMessage (const QString &message) | 
| void | setSuccessMessage (const QString &message) | 
| void | setErrorMessage (const QString &message) | 
| void | setUrlToOpen (const QUrl &url) | 
Signals | |
| void | aboutToStart () | 
| void | message (const QString &message, int timeout) | 
| void | readOnStandardOutput (const QString &output) | 
| void | readOnStandardError (const QString &error) | 
Public Member Functions | |
| CMakeSongbookProcess (QObject *parent=0) | |
| Constructor.  | |
| virtual | ~CMakeSongbookProcess () | 
| Destructor.  | |
| QString | command () const | 
| const QString & | startMessage () const | 
| const QString & | successMessage () const | 
| const QString & | errorMessage () const | 
| const QUrl & | urlToOpen () const | 
Properties | |
| QString | command | 
| QString | program | 
| QStringList | arguments | 
| QString | startMessage | 
| QString | successMessage | 
| QString | errorMessage | 
| QUrl | urlToOpen | 
CMakeSongbookProcess calls songbook's external processes.
Three processes can be called:
These commands are defined in preferences.hh. For Linux platforms, it directly uses makefile (with or without arguments). For MacOS and Windows platforms, it uses specific scripts that are respectively located into windows/ and macos/ subdirectories of the songbook directory.
      
  | 
  signal | 
This signal is emitted before the process is executed.
| QString CMakeSongbookProcess::command | ( | ) | const | 
Returns the whole command to be executed.
| const QString& CMakeSongbookProcess::errorMessage | ( | ) | const | 
Returns the message that is displayed when the process exits with failure.
      
  | 
  slot | 
Execute the process once all parameters have been set. The signal aboutToStart is emitted before the execution.
      
  | 
  signal | 
Emits a message when the process starts and exits after a delay of timeout.
      
  | 
  signal | 
This signal is emitted when information is available on error output.
      
  | 
  signal | 
This signal is emitted when information is available on standard output.
      
  | 
  slot | 
Sets the command that should be executed. For instance: "make songbook.pdf".
      
  | 
  slot | 
Sets the message that should displayed when the process exits with failure. The message is displayed within the status bar.
      
  | 
  slot | 
Sets the message that should displayed when the process starts. The message is displayed within the status bar.
      
  | 
  slot | 
Sets the message that should displayed when the process successfully exits. The message is displayed within the status bar.
      
  | 
  slot | 
Sets an url that should be opened after the process successfully exits. The message is displayed within the status bar.
| const QString& CMakeSongbookProcess::startMessage | ( | ) | const | 
Returns the message that is displayed when the process starts.
| const QString& CMakeSongbookProcess::successMessage | ( | ) | const | 
Returns the message that is displayed when the process successfully exits.
| const QUrl& CMakeSongbookProcess::urlToOpen | ( | ) | const | 
Returns the url that should be opened when the process successfully exits.
 1.8.1.1