X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fsignalbase.hpp;h=6667dd76847cab8ce3235c99d6ec19deb73544fb;hp=a682a56e1f52cadbb60a8a3a1dba9a80e2eacbc2;hb=efdec55aec1a137460fa362a381ed1904182bfed;hpb=bb7dd726eb7159ddd80d94ede791f2e2a9eaef0f diff --git a/pv/data/signalbase.hpp b/pv/data/signalbase.hpp index a682a56..6667dd7 100644 --- a/pv/data/signalbase.hpp +++ b/pv/data/signalbase.hpp @@ -15,8 +15,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #ifndef PULSEVIEW_PV_DATA_SIGNALBASE_HPP @@ -24,6 +23,7 @@ #include #include +#include #include #include @@ -85,6 +85,11 @@ public: */ QString name() const; + /** + * Gets the internal name of this signal, i.e. how the device calls it. + */ + QString internal_name() const; + /** * Sets the name of the signal. */ @@ -129,6 +134,10 @@ public: decoder_stack); #endif + void save_settings(QSettings &settings) const; + + void restore_settings(QSettings &settings); + Q_SIGNALS: void enabled_changed(const bool &value); @@ -144,7 +153,7 @@ private: std::shared_ptr decoder_stack_; #endif - QString name_; + QString internal_name_, name_; QColor colour_, bgcolour_; };