Show
Ignore:
Timestamp:
12/01/09 14:54:27 (11 years ago)
Author:
arnonym
Message:

Extend the interface of the MatrixMixer?:

  • Have booleans indicating if names and/or connections are supported. These functions are pure virtual.
  • Allow names and connections to be read and written, the default implementations of these (not anymore pure) virtual functions do nothing and return false or nothing.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libcontrol/MatrixMixer.cpp

    r1158 r1742  
    2525 
    2626namespace Control { 
    27 // no implementation 
     27 
     28    std::string MatrixMixer::getRowName(const int) { 
     29        return ""; 
     30    } 
     31    std::string MatrixMixer::getColName(const int) { 
     32        return ""; 
     33    } 
     34    bool MatrixMixer::setRowName(const int, const std::string&) { 
     35        return false; 
     36    } 
     37    bool MatrixMixer::setColName(const int, const std::string&) { 
     38        return false; 
     39    } 
     40 
     41    std::vector<std::string> MatrixMixer::availableConnectionsForRow(const int) { 
     42        return std::vector<std::string>(); 
     43    } 
     44    std::vector<std::string> MatrixMixer::availableConnectionsForCol(const int) { 
     45        return std::vector<std::string>(); 
     46    } 
     47    bool MatrixMixer::connectRowTo(const int, const std::string&) { 
     48        return false; 
     49    } 
     50    bool MatrixMixer::connectColTo(const int, const std::string&) { 
     51        return false; 
     52    } 
     53 
    2854} // namespace Control