/[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 462 by capela, Tue Mar 15 11:39:12 2005 UTC revision 463 by capela, Tue Mar 15 15:32:29 2005 UTC
# Line 34  Line 34 
34  // Special QListViewItem::rtti() unique return value.  // Special QListViewItem::rtti() unique return value.
35  #define QSAMPLER_DEVICE_ITEM    1001  #define QSAMPLER_DEVICE_ITEM    1001
36    
37    // Early forward declaration.
38    class qsamplerDevicePort;
39    
40    
41  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
42  // qsamplerDeviceParam - MIDI/Audio Device parameter structure.  // qsamplerDeviceParam - MIDI/Audio Device parameter structure.
# Line 67  public: Line 70  public:
70          QString         value;          QString         value;
71  };  };
72    
73  // A typedef'd parameter QMap.  // Typedef'd parameter QMap.
74  typedef QMap<QString, qsamplerDeviceParam> qsamplerDeviceParamMap;  typedef QMap<QString, qsamplerDeviceParam> qsamplerDeviceParamMap;
75    
76    // Typedef'd device port/channels QptrList.
77    typedef QPtrList<qsamplerDevicePort> qsamplerDevicePortList;
78    
79    
80  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
81  // qsamplerDevice - MIDI/Audio Device structure.  // qsamplerDevice - MIDI/Audio Device structure.
# Line 103  public: Line 109  public:
109          const QString&      driverName() const;          const QString&      driverName() const;
110          const QString&      deviceName() const;          const QString&      deviceName() const;
111    
112            // Set the proper device parameter value.
113            void setParam (const QString& sParam, const QString& sValue);
114    
115          // Device parameters accessor.          // Device parameters accessor.
116          const qsamplerDeviceParamMap& params() const;          const qsamplerDeviceParamMap& params() const;
117    
118          // Set the proper device parameter value.          // Device port/channel list accessor.
119          void setParam (const QString& sParam, const QString& sValue);          qsamplerDevicePortList& ports();
120    
121            // Device port/channel list refreshner.
122            void refresh(lscp_client_t *pClient);
123            
124          // Device ids enumerator.          // Device ids enumerator.
125          static int *getDevices(lscp_client_t *pClient,          static int *getDevices(lscp_client_t *pClient,
126                  qsamplerDeviceType deviceType);                  qsamplerDeviceType deviceType);
# Line 128  private: Line 140  private:
140    
141          // Device parameter list.          // Device parameter list.
142          qsamplerDeviceParamMap m_params;          qsamplerDeviceParamMap m_params;
143            
144            // Device port/channel list.
145            qsamplerDevicePortList m_ports;
146  };  };
147    
148    

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

  ViewVC Help
Powered by ViewVC