/[svn]/qsampler/trunk/src/qsamplerUtilities.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerUtilities.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1402 by schoenebeck, Fri Oct 12 00:03:27 2007 UTC revision 1476 by senoner, Sun Nov 11 23:07:06 2007 UTC
# Line 2  Line 2 
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.
5       Copyright (C) 2007, Christian Schoenebeck
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 26  Line 27 
27  #include <stdio.h>  #include <stdio.h>
28  #include <qregexp.h>  #include <qregexp.h>
29    
30    using namespace QSampler;
31    
32  namespace qsamplerUtilities {  namespace qsamplerUtilities {
33    
34  static int _hexToNumber(char hex_digit) {  static int _hexToNumber(char hex_digit) {
# Line 106  QString lscpEscapePath ( const QString& Line 109  QString lscpEscapePath ( const QString&
109                  !(c >= '0' && c <= '9') &&                  !(c >= '0' && c <= '9') &&
110                  !(c >= 'a' && c <= 'z') &&                  !(c >= 'a' && c <= 'z') &&
111                  !(c >= 'A' && c <= 'Z') &&                  !(c >= 'A' && c <= 'Z') &&
112                    #if defined(WIN32)
113                    !(c == ':') &&
114                    #endif
115                  !(c == pathSeparator)                  !(c == pathSeparator)
116              ) {              ) {
117                  // convert the non-basic character into a LSCP escape sequence                  // convert the non-basic character into a LSCP escape sequence
# Line 167  lscpVersion_t getRemoteLscpVersion (void Line 173  lscpVersion_t getRemoteLscpVersion (void
173  {  {
174      lscpVersion_t result = { 0, 0 };      lscpVersion_t result = { 0, 0 };
175    
176      qsamplerMainForm *pMainForm = qsamplerMainForm::getInstance();      MainForm* pMainForm = MainForm::getInstance();
177      if (pMainForm == NULL)      if (pMainForm == NULL)
178          return result;          return result;
179      if (pMainForm->client() == NULL)      if (pMainForm->client() == NULL)
# Line 183  lscpVersion_t getRemoteLscpVersion (void Line 189  lscpVersion_t getRemoteLscpVersion (void
189  }  }
190    
191  } // namespace qsamplerUtilities  } // namespace qsamplerUtilities
192    
193    
194    // end of qsamplerUtilities.cpp

Legend:
Removed from v.1402  
changed lines
  Added in v.1476

  ViewVC Help
Powered by ViewVC