X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsignal.h;h=789b43601deff51dbe36c477a24b0c79f3df7b15;hp=b4c4244ca3fc438f7a71441bfc0a7de80fec0674;hb=ce6e73a8e2a2a353233b440f4bbbd53007602e1a;hpb=ed6f0f4f84a26aadacfd4d3a745a8d7f1094efc5 diff --git a/pv/signal.h b/pv/signal.h index b4c4244c..789b4360 100644 --- a/pv/signal.h +++ b/pv/signal.h @@ -18,6 +18,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef PULSEVIEW_PV_SIGNAL_H +#define PULSEVIEW_PV_SIGNAL_H + #include #include @@ -40,8 +43,16 @@ protected: Signal(QString name); public: + /** + * Gets the name of this signal. + */ QString get_name() const; + /** + * Sets the name of the signal. + */ + void set_name(QString name); + /** * Paints the signal with a QPainter * @param p the QPainter to paint into. @@ -103,3 +114,5 @@ protected: }; } // namespace pv + +#endif // PULSEVIEW_PV_SIGNAL_H