serverplug.h

来自「This a framework to test new ideas in tr」· C头文件 代码 · 共 67 行

H
67
字号
/***************************************************************************                 ServerPlug.h  -  Interface to the channel-Server                            -------------------    begin                :  2003    authors              :  Linus Gasser    emails               :  linus.gasser@epfl.ch ***************************************************************************//***************************************************************************                                 Changes                                 ------- date - name - description 03/01/20 - ineiti - begin **************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#ifndef SERVERPLUG_H__#define SERVERPLUG_H__#include <qwidget.h>#include <qvaluelist.h>#include <qfile.h>class ServerPlug : public QWidget {  Q_OBJECT    public:  // Initialises the ServerPlug with a given path  ServerPlug( QString path );  ~ServerPlug();  // Reads the number of channels  int getNbrChannels();    // Reads the maximal length of the filter  int getMaxFilterLength();  // Don't know why the ordinary flush doesn't work...  void flush();  // To send a command. The result string is given back.  QStringList sendCmd( QString send );  public slots:  // Sets the filter for a given channel  void setChannel( int index, QValueList<double> *h ); protected:  QTextStream *cmd, *result;  QFile *f_cmd, *f_result;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?