/[svn]/qsampler/trunk/src/qsamplerDevice.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerDevice.h

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

revision 461 by capela, Thu Mar 10 20:45:42 2005 UTC revision 462 by capela, Tue Mar 15 11:39:12 2005 UTC
# Line 104  public: Line 104  public:
104          const QString&      deviceName() const;          const QString&      deviceName() const;
105    
106          // Device parameters accessor.          // Device parameters accessor.
107          qsamplerDeviceParamMap& params();          const qsamplerDeviceParamMap& params() const;
108    
109          // Update/refresh device/driver data.          // Set the proper device parameter value.
110          void refresh();          void setParam (const QString& sParam, const QString& sValue);
111    
112          // Device ids enumerator.          // Device ids enumerator.
113          static int *getDevices(lscp_client_t *pClient,          static int *getDevices(lscp_client_t *pClient,
# Line 132  private: Line 132  private:
132    
133    
134  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
135    // qsamplerDevicePort - MIDI/Audio Device port/channel structure.
136    //
137    
138    class qsamplerDevicePort
139    {
140    public:
141    
142            // Constructor.
143            qsamplerDevicePort(lscp_client_t *pClient,
144                    const qsamplerDevice& device, int iPortID);
145            // Default destructor.
146            ~qsamplerDevicePort();
147    
148            // Initializer.
149            void setDevicePort(lscp_client_t *pClient,
150                    const qsamplerDevice& device, int iPortID);
151    
152            // Device port property accessors.
153            int            portID()   const;
154            const QString& portName() const;
155    
156            // Device port parameters accessor.
157            const qsamplerDeviceParamMap& params() const;
158    
159            // Set the proper device port/channel parameter value.
160            void setParam (const QString& sParam, const QString& sValue);
161    
162    private:
163    
164            // Instance variables.
165            int     m_iPortID;
166            QString m_sPortName;
167    
168            // Device port parameter list.
169            qsamplerDeviceParamMap m_params;
170    };
171    
172    
173    //-------------------------------------------------------------------------
174  // qsamplerDeviceItem - QListView device item.  // qsamplerDeviceItem - QListView device item.
175  //  //
176    
# Line 175  public: Line 214  public:
214          // Default destructor.          // Default destructor.
215          ~qsamplerDeviceParamTable();          ~qsamplerDeviceParamTable();
216    
217          // Client/device descriptor selector.          // Common parameter table renderer.
218          void refresh(qsamplerDevice& device);          void refresh(const qsamplerDeviceParamMap& params, bool bEditable);
219  };  };
220    
221    

Legend:
Removed from v.461  
changed lines
  Added in v.462

  ViewVC Help
Powered by ViewVC